Microsoft Knowledge Base Email Alertz

KBAlertz.com: (318465) - When you debug an ASP.NET application in Microsoft Visual Studio .NET, you may receive the following Microsoft Development Environment error message: Error while trying to run project: Unable to start debugging on the web server. The server does not...

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 2.0 Web Hosting with SQL 2005: Click Here!
Discount ASP.NET Hosting


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




PRB: Cannot Debug ASP.NET Web Application

Article ID:318465
Last Review:March 27, 2007
Revision:4.4
This article was previously published under Q318465

SYMPTOMS

When you debug an ASP.NET application in Microsoft Visual Studio .NET, you may receive the following Microsoft Development Environment error message:
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?

Back to the top

CAUSE

This error may occur if the Microsoft .NET Framework setup or installation was not completed correctly. When this occurs, the application mappings for ASP.NET file name extensions (such as .aspx) are not configured correctly in Microsoft Internet Information Services (IIS).

To check whether the application mappings are correct, follow these steps:
1.Click Start, point to Programs, point to Administrative Tools, and then click Internet Services Manager.
2.Expand the node that corresponds to the local host (computer name), and then expand the Default Web Site node.
3.Right-click your Web application directory, and then click Properties.
4.On the Directory tab, under Application Settings, click Configuration.
5.Click the App Mappings tab.
6.On the App Mappings tab, under Application Mappings, check whether the .aspx extension is mapped to the following dynamic-link library (DLL):
C:\Windows Directory\Microsoft.Net\Framework\<Version>\aspnet_isapi.dll
NOTE: You must replace Windows Directory in this path with the correct directory for your system and replace Version with the version of the .NET Frame work installed on your system.
7.If the application mapping entry is not found, follow the steps in the "Resolution" section.

Back to the top

RESOLUTION

To resolve this problem, use the Aspnet_regiis.exe administration utility that manages the installation and uninstallation of multiple versions of ASP.NET on a single computer.

To use the Aspnet_regiis.exe utility, follow these steps:
1.Click Start, and then click Run.
2.Type cmd in the Open box, and then click OK to open a command prompt.
3.At the command prompt, use the cd command to change to the following directory:
C:\Windows Directory\Microsoft.Net\Framework\Version
Note: You must replace Windows Directory in this path with the correct directory for your system and replace Version with the version of the .NET Frame work installed on your system.
4.Type aspnet_regiis -i to configure the required application mappings correctly.

Back to the top

REFERENCES

For additional information about other ASP.NET debugging problems, click the article number below to view the article in the Microsoft Knowledge Base:
306172 (http://kbalertz.com/Feedback.aspx?kbNumber=306172/EN-US/) INFO: Common Errors When You Debug ASP.NET Applications in Visual Studio .NET
For a description of symptoms typically related to ASP.NET and IIS application mappings that are not configured properly, see Microsoft Knowledge Base article Q325093.
325093 (http://kbalertz.com/Feedback.aspx?kbNumber=325093/EN-US/) PRB: ASP.NET Pages Exhibit Unexpected Behavior Because the Server-Side Code Is Not Processed
For more information about ASP.NET debugging, see the following MSDN Web site:
Debugging ASP.NET Web Applications
http://msdn2.microsoft.com/en-us/library/w2faa92k(vs.71).aspx (http://msdn2.microsoft.com/en-us/library/w2faa92k(vs.71).aspx)
For more general information about ASP.NET, see the following MSDN newsgroup:
microsoft.public.dotnet.framework.aspnet (http://msdn.microsoft.com/newsgroups/default.aspx?query=ASP.NET&dg=&cat=en-us-msdn&lang=en&cr=US&pt=&catlist=774F24A2-F71F-425F-AC2B-DC48AB0DA5C9&dglist=&ptlist=&exp=&sloc=en-us)

Back to the top


APPLIES TO
•Microsoft ASP.NET 1.1
•Microsoft Visual Studio .NET 2003 Academic Edition
•Microsoft Visual Studio .NET 2003 Enterprise Architect
•Microsoft Visual Studio .NET 2003 Enterprise Developer
•Microsoft Visual Studio .NET 2003 Professional Edition
•Microsoft ASP.NET 1.0
•Microsoft Visual Studio .NET 2002 Professional Edition
•Microsoft Visual Studio .NET 2002 Enterprise Architect
•Microsoft Visual Studio .NET 2002 Enterprise Developer
•Microsoft Visual Studio .NET 2002 Academic Edition

Back to the top

Keywords: 
kbdebug kberrmsg kbideproject kbprb KB318465

Back to the top

       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Anonymous User Report As Irrelevant  
Written: 11/21/2004 3:08 PM
Solved my Problem, Thank you very much! I haden't tried editting any of my older ASP.NET pages since installing the new 2005 express beta, didn't think it changed my IIS settings.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please