博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Visual Studio不能启动ASP.NET或ATL SERVER调试
阅读量:4114 次
发布时间:2019-05-25

本文共 3940 字,大约阅读时间需要 13 分钟。

SYMPTOMS

<script type=text/javascript>loadTOCNode(1, 'symptoms');</script>
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?

CAUSE

<script type=text/javascript>loadTOCNode(1, 'cause');</script>
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.

RESOLUTION

<script type=text/javascript>loadTOCNode(1, 'resolution');</script>
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.

REFERENCES

<script type=text/javascript>loadTOCNode(1, 'references');</script>
For additional information about other ASP.NET debugging problems, click the article number below to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/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.
(http://support.microsoft.com/kb/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)
For more general information about ASP.NET, see the following MSDN newsgroup:
(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)

转载地址:http://tgkpi.baihongyu.com/

你可能感兴趣的文章
20个关于程序员的笑话,看懂了,你就不会笑了,也不会羡慕他们工资高了!...
查看>>
你应该知道的3个强大的CSS功能
查看>>
12个Web开发工程师会犯的错误,有你吗?
查看>>
华为一夜裁掉7000员工:别在最好的年纪,活得太安逸!
查看>>
5个你可能不知道的很棒CSS功能
查看>>
6种你应该知道的强大JavaScript对象方法
查看>>
在职场,这10句话千万不能在公司说,任何一句,就足以毁掉你的职场生涯!...
查看>>
11个你不应该错过的JavaScript库
查看>>
7个你可能不知道但有用的HTML属性
查看>>
JavaScript 执行环境与作用域、函数的创建和调用
查看>>
董明珠:没有人才,一切归零;没有道德,人才归零
查看>>
设计模式之策略模式
查看>>
31个很棒的JavaScript库
查看>>
给老板打工的心态,让你与成功无缘,建议你多看几遍
查看>>
【前端面试题】—30道常见React基础面试题(附答案)
查看>>
15个有用的React动画库,马上让你的项目变得高大上
查看>>
13个小秘诀帮你改善网页设计的视觉与用户体验效果
查看>>
当你想抱怨或辞职的时候,请看看这个故事
查看>>
9个你可能从未听说过的HTML功能
查看>>
20个改善网站设计的简单技巧
查看>>