问题描述
对于这个项目,我需要安装和Windows使用IIS 6.0 7我断绝运行VS 2003与框架1.1,因为有老VS2003 C#code,它需要更新,没有VS 2003安装在远程服务器上只有该DLL,PDB,ASPX,和aspx.cs文件。在移植的code,使我的本地服务器上的必要的修改后,我发现,虽然我可以浏览网页,我无法运行与调试器的页面,并得到这个错误:......无法启动调试上Web服务器,没有管理$ C $ C在运行的过程中,为了在装有.NET调试器的过程中,管理code必须在运行的过程中连接了。然后我开始应用程序而不调试器,并为了安装过程中选择的w3wp.exe进程的CLR,但我注意到,这一进程会议设置为0,我仍然再次得到了这个错误。
For this project I needed to install and run VS 2003 on Windows 7 using IIS 6.0 with Framework 1.1 on my sever because there was old VS2003 C# code on a remote server that needed updating and did not have VS 2003 installed only the DLL, PDB, aspx, and aspx.cs files. After porting the code over and making the needed changes on my local server, I discovered that while I could browse the page, I could not run the page with debugger and got this error: "... Unable to start debugging on the web server. There is no managed code running in the process. In order to attach to a process with the .NET debugger, managed code must be running in the process before attaching." I then started the application without Debugger and selected the w3wp.exe process for CLR in order to attach the process but I noticed that the process session was set to 0 and I still got that error again.
下面是在IIS6做:
Application created.
DefaultAppPool (.NET framework 1.1 Integrated)(ApplicationPoolIdentity) is used
Browsing the web page works OK.
Authentication has Integrated Windows and ASP.NET Impersonation enabled.
I have runned aspnet_regiis from all the .net version in order
Set debug="true" in the web.config.
感谢很多的帮助。
Thanks much for your help
推荐答案
解决方法:
- 右键单击ASP.Net项目>属性
- 选择配置属性>调试
- 启用调试框下面所述的条目。
- ASP.Net调试
- 未管理code调试。
- Right click the ASP.Net project > Properties
- select Configuration Properties > Debugging
- Enable the below mentioned entries in 'Debuggers' frame.
- ASP.Net Debugging
- Unmanaged code debugging.
这篇关于无法启动调试基于Visual Studio(2003年)的旧版本在Windows 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!