ASP.NET pages exhibit unexpected behavior because the server-side code is not processed (325093)
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 Studio .NET (2003), Professional Edition
- Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2003), Academic Edition
- Microsoft Visual Studio .NET (2002), Professional Edition
- Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
- Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
- Microsoft Visual Studio .NET (2002), Academic Edition
- Microsoft Internet Information Services version 6.0
- Microsoft Internet Information Services version 5.1
- Microsoft Internet Information Services 5.0
This article was previously published under Q325093 SYMPTOMSSymptoms that are exhibited at run time When you view an .aspx page in a Microsoft ASP.NET Web
application, you may experience the following symptoms:
- A blank page may appear in the browser.
- You may receive an instruction to download the .aspx
page.
The typical behavior is that the server-side code for the .aspx
page is processed, and then the code is not sent to the Web browser in its raw
form. Symptoms that are exhibited when you use Visual Studio .NET to debug ASP.NET When you debug an ASP.NET application in Microsoft Visual Studio
.NET, you may receive the following error message in the IDE:
Error while trying to run project: Unable to start
debugging on the Web server. The server does not support debugging of ASP.NET
or ATL Server applications. Run setup to install the Visual Studio .NET server
components. If setup has been run, verify that a valid URL has been specified.
You may also want to refer to the ASP.NET and ATL Server debugging
topic in the online documentation. Would you like to disable future attempts to
debug ASP.NET pages for this project? CAUSE After you install the Microsoft .NET Framework Software
Development Kit (SDK) or Microsoft Visual Studio .NET, Microsoft Internet
Information Services (IIS) mappings are created to associate new file name
extensions and new settings for ASP.NET. The new settings are not in
place if either of the following statements applies to your situation:
- IIS was not installed when you ran the .NET Framework SDK
or Visual Studio .NET Setup.
- You removed and then reinstalled IIS after you ran the .NET
Framework SDK Setup or the Visual Studio .NET Setup.
RESOLUTION To resolve this issue, repair the IIS mappings so that the
file name extensions for ASP.NET are properly associated. There are two ways to
fix IIS mappings for ASP.NET. To repair IIS mappings for ASP.NET, run
the Aspnet_regiis.exe utlity. To do so, follow these steps:
- Click Start, and then click Run.
- Type cmd, and then click OK.
- At the command prompt, type the following command, and then
press ENTER:
"\WindowsFolder\Microsoft.NET\Framework\VersionNumber>\aspnet_regiis.exe" -i Note Replace
WindowsFolder with the name of the directory where the operating system is
installed. Replace VersionNumber with the .NET Framework version installed on your computer.
To repair IIS mappings for ASP.NET, you must register
Aspnet_isapi.dll. To do so, follow these steps:
- Click Start, and then click Run.
- Type regsvr32 WindowsFolder\Microsoft.NET\Framework\VersionNumber\aspnet_isapi.dll, and then
click OK. Regsvr32 returns the results of the registration.
STATUSThis
behavior is by design.REFERENCES The resolution to repair IIS mappings for ASP.NET is
derived from Microsoft Knowledge Base article Q306005.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
306005
How to repair IIS mapping after you remove and reinstall IIS
The following article offers more in-depth
information about the debugging scenario described previously in this document:
318465 Cannot debug ASP.NET Web application
Modification Type: | Major | Last Reviewed: | 4/13/2006 |
---|
Keywords: | kbConfig kbDebug kbprb kbsetup kbWebForms KB325093 kbAudDeveloper |
---|
|