Unexpected occurrence of asp.net page due to unhandled server-side code

Source: Internet
Author: User
Tags iis net visual studio
Asp.net| Server

Symptoms
Symptoms that are displayed at run time
When you view an. aspx page in a Microsoft asp.net Web application, you may experience the following symptoms:
• Blank pages may appear in the browser.
• You may receive instructions to download the. aspx page.
The typical phenomenon 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 original form.

Symptoms that are displayed when you use Visual Studio. NET to debug asp.net
When you debug your 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.

You could also want to refer to the ASP.net and ATL Server debugging topic in the online documentation. Would To disable future attempts to debug ASP.net pages for this project?

Reason
After you install the Microsoft. NET Framework Software Development Kit (SDK) or Microsoft Visual Studio. NET, you will create a Microsoft Internet Information Services (IIS) map to associate with ASP. NET's new file name extension and new settings.

If any of the following statements are appropriate for your situation, the new setting does not exist.
• IIS is not installed when you run the. NET Framework SDK or Visual Studio. NET setup.
• After you run the. NET Framework SDK installer or Visual Studio. NET setup, remove IIS, and then reinstall IIS.


Solution
To resolve this issue, repair the IIS mappings so that the asp.net file name extension is correctly associated. There are two ways to fix asp.net IIS mappings.
To fix the ASP.net IIS mappings, run the Aspnet_regiis.exe utility. To do this, follow these steps:
1. Click Start, and then click Run.
2. Type cmd, and then click OK.
3. Run the following command at a command prompt, and then click OK:
"\<windows folder >\Microsoft.NET\Framework\< version number >\aspnet_regiis.exe"-I.
Note: Replace the <windows folder with the name of the directory where the operating system is installed, replacing < version number > with the. NET Framework version installed on your computer.

To repair the ASP.net IIS mappings, you must register the aspnet_isapi.dll. To do this, follow these steps:
1. Click Start, and then click Run.
2. Type the regsvr32 <windows folder >\Microsoft.NET\Framework\< version number >\aspnet_isapi.dll, and then click OK. Regsvr32 will return the registration results.







Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.