PRB: WebForm in the Bin Folder of an ASP.NET Application Is Accessible in Windows Server 2003 (815188)
The information in this article applies to:
- Microsoft ASP.NET (included with the .NET Framework 1.1)
- Microsoft ASP.NET (included with the .NET Framework) 1.0
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
- Microsoft Visual C# .NET (2003)
- Microsoft Visual C# .NET (2002)
- Microsoft Windows Server 2003, Datacenter Edition
- Microsoft Windows Server 2003, Enterprise Edition
- Microsoft Windows Server 2003, Standard Edition
- Microsoft Windows Server 2003, Web Edition
- Microsoft Windows Small Business Server 2003, Premium Edition
- Microsoft Windows Small Business Server 2003, Standard Edition
- Microsoft Windows XP 64-Bit Edition Version 2003
SYMPTOMSWhen you request a WebForm in Internet Explorer from
the Bin folder of an ASP.NET Web application, and your computer is running Windows Server 2003, the WebForm appears successfully (you do not receive an error
message). However, when you request the WebForm from an application that is hosted on a computer running
Windows 2000 or Windows XP, you receive one of the following error messages: The page cannot be displayed -or- HTTP 403.1 Forbidden: Execute Access Forbidden CAUSE By default, when you create an ASP.NET application on a
computer running Microsoft Internet Information Server 5.0 (IIS 5.0), the Execute permissions for the Bin folder in IIS are set to None. Also, the Bin folder does not have Read permissions in IIS. Because of these settings, you receive an error message when you try to gain access
to a WebForm in the Bin folder.
By default in IIS 6.0, the Execute
permissions of the Bin folder are set to Scripts only.
Therefore, you can gain access to the WebForm that is located in the Bin folder of your
Web application.WORKAROUNDTo work around this problem, set the Execute
permissions of the Bin folder in IIS 6.0 to
None. To do this, follow these steps: - Click start, and then click
Run.
- In the Open text box, type inetmgr, and then click
OK.
- Expand (local computer), and then
expand Web Sites.
- Expand Default Web Site. Locate
your Web application, and then expand it.
- Right-click bin, and then click
Properties.
- Click the Directory tab. In the Execute
permissions drop-down list box, click None.
- Verify that the Read check box is
not selected.
- Click OK to save the settings.
Note Microsoft does not recommend that you use the Bin folder to store uncompelled ASPX pages. The Bin folder stores the
binary files that are not included in the global assembly cache. STATUS This
behavior is by design.REFERENCESFor more information, visit the following Microsoft Web
site:
Modification Type: | Major | Last Reviewed: | 10/28/2003 |
---|
Keywords: | kbdisplay kbWebServer kbWebForms kbWebBrowser kbBrowse kbprb KB815188 kbAudDeveloper |
---|
|