Skip to main content

Home/ Agency Oasis Developers/ Group items tagged iis

Rss Feed Group items tagged

4More

ASP.NET QuickStart Tutorials - 0 views

  • Securing Non-ASP.NET Files
  • ASP.NET handles requests for file extensions that are normally associated with ASP.NET, while IIS handles requests for all other file extensions. By default this means common file extensions such as .aspx and .asmx are processed by ASP.NET. This processing includes authentication and authorization to ASP.NET files. Sometimes though, a developer wants non-ASP.NET resources to be processed by ASP.NET. One reason for processing non-ASP.NET files through ASP.NET is to allow ASP.NET authentication and authorization to control access to these types of files. The combination of IIS6 on Windows Server 2003 and ASP.NET 2.0 provides the most flexibility for running the ASP.NET pipeline as part of processing a request for a non-ASP.NET resource. IIS6 includes support that allows ASP.NET 2.0 to perform authentication and authorization steps, and to then hand off the remainder of the processing of a non-ASP.NET resource back to IIS6. For example, it is possible to authenticate access to an ASP page using ASP.NET forms authentication, authorize access with ASP.NET's Url authorization and still allow the ASP ISAPI extension (asp.dll) to execute the ASP page. This support is possible because IIS6 introduced a new server support function for ISAPI extensions: HSE_REQ_EXEC_URL. Assume that a directory structure contains a mix of both ASP and ASP.NET files. The ASP.NET pages are used to log a user in with forms authentication, while the ASP pages represent the rest of the application. Using the IIS6 MMC, right-click on directory and create an application (this is the same step that is necessary when setting up a standard ASP.NET application). After an application has been created, click on the Configuration button that is located on the Directory property page. This will cause the Application Configuration dialog to be displayed. New to IIS6 is a feature called wildcard application mapping. The bottom of the Application Configuration dialog allows you to configure this feature. First determine the path for the ASP.NET ISAPI extension that processes ASP.NET files such as .aspx files. You can find this path by looking at the extensions that are listed in the Application Extensions list shown in the top half of the Application Configuration dialog. Click on the row in the list that maps the .aspx extension, and select the Edit button. In the dialog that pops up, highlight the text in the Executable textbox and copy it to the clipboard. Then cancel out of the dialog. Next, click the Insert button that is in the bottom half of the Application Configuration dialog. A dialog box titled Add/Edit Application Extension Mapping will be displayed. In the Executable text box, enter the path to the ASP.NET ISAPI extension that you copied to the clipboard earlier. The end result should look something like the screenshot below.
  • Click OK to close out all of the dialogs. Now whenever a request is made for any file, the request will first be processed by ASP.NET. If the web.config for your ASP.NET application has enabled forms authentication, an unauthenticated request for a .asp file will first trigger a redirect to the login page configured for forms authentication. After a user has successfully logged in, they will be redirected back to the original .asp page. When the now-authenticated user requests the .asp page, ASP.NET will first run through the FormsAuthenticationModule to verify that the forms authentication cookie exists and is still valid. If this check passes, ASP.NET will hand processing of the .asp page back to IIS6, at which point IIS6 will pass the request on to the ISAPI extension that normally process .asp pages. In this case the extension is asp.dll and the ASP page will then run to completion. The reason ASP.NET will pass the request back to IIS6 is that non-ASP.NET resources will fall through the list of configured <httpHandlers> to the following entry: <add path="*" verb="GET,HEAD,POST" type="System.Web.DefaultHttpHandler" validate="True" /> The DefaultHttpHandler is responsible for handing requests back to IIS6 for further processing.
  •  
    "Securing Non-ASP.NET Files"
1More

IIS7 & Trend Micro Officescan 8 : The Official Microsoft IIS Site - 0 views

  •  
    "Hey. Had this problem myself. Just turns out had to install the CGI feature. You can do this by going to the server manager, expanding Rolls, right clicking on IIS and clicking the add feature option. CGI should be listed under 'Application Development'. You may also want to go to the root IIS7 (server) node and click ISAPI Permissions and make sure that any cgi files have execute permissions. -Keith "
1More

How to Fix "PageHandlerFactory-Integrated" bad module "ManagedPipelineHandler in IIS7 - 0 views

  •  
    Apparently, the reason I was recieving the Internal Server error message was that I had installed SQL Server 2008, after installing Visual Studio 2010, and because of this it corrupted the IIS Machine level configuration files ("If you install VS2010 and then install VS2008 and VS2008 SP1, the configuration files for ASP.NET in IIS only include about 1/2 of the correct .Net 4.0 configuration sections." read more here).
1More

Classic ASP Script Error Messages No Longer Shown in Web Browser by Default : Running C... - 0 views

  •  
    "Classic ASP Script Error Messages No Longer Shown in Web Browser by Default"
1More

How to install Web Management Service (WMSvc) : The Official Microsoft IIS Site - 0 views

  •  
    On the server you need to install a Role Service called Management Service. You find this by going to ServerManager->Roles->WebServer(IIS) and then looking in right panel, section RoleServices. There it is, and there you can click to add it to the config.
1More

IIS Search Engine Optimization Toolkit - 0 views

  •  
    An add-on for II7 to scan your site and report SEO tips!
1More

Add a Script Map Handler Mapping (IIS 7) - 0 views

  •  
    "Add a Script Map Handler Mapping (IIS 7)"
1More

Custom 404 page ignored by IIS 7 - 1 views

  •  
    Custom 404 page ignored by IIS 7 - TrySkipIisCustomErrors
1More

Running Sitecore 6 on Windows 7's IIS | WimHaanstra.com - 1 views

shared by mgraber on 11 Aug 10 - Cached
  •  
    "Running Sitecore 6 on Windows 7's IIS"
1More

Free SEO Toolkit - Microsoft - 0 views

  •  
    Free plug-in for IIS7
1More

Logging ASP.NET Application Shutdown Events - 0 views

  •  
    Useful code snippet to log what is causing IIS site shutdowns. BOOM
1 - 20 of 53 Next › Last »
Showing 20 items per page