So I have an old project that my client has which is .NET 1.1 and cannot be upgraded to even .NET 2.0 as bare minimum.
So I am using a VM environment with WS2008R2 + all updates and have VS .NET 2003 installed and IIS 7.5
I managed to get it to talk to IIS 7.5 and setting the apppool to run 32 bit apps. I can now create web projects - great!
But when I run within VS.NET 2003, I ALWAYS get this error and not sure where to go from here:
--------------------------- Microsoft Development Environment ---------------------------
Error while trying to run project: 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.
Click Help for more information. --------------------------- OK Help ---------------------------
of course, if I open up IE and browse to the website - it runs fine but I NEED it to run within VS.NET 2003 so I can debug....
Thanks. I already have done this however this does not answer the question about being able to debug within VS2003/run the web project with debugging on WS2008R2 (which has .NET 1.1 installed and configured).
running the web site request works just fine. serves the page fine. but when running VS2003 and you are debugging - it fails with the error message stated in my opening thread :)
I still got a compatibility warning, but chose “Run Program” to continue.
Installing Service Pack 1 is likely to require a reboot.
3 – Enable ASP.Net 1.1 ISAPI Extension
Following the steps in option 2 made ASP.NET v1.1.4322 available on my ISAPI and CGI Restrictions dialog, but was disabled by default. Open Internet Explorer, click on your server name and choose ISAPI and CGI Restrictions from the IIS section. Enable ASP.Net
v1.1.4322 as a valid ISAPI extension.
4 – Adjust machine.config
We need ASP.NET 1.1 to ignore IIS configuration sections, so open machine.config for Framework 1.1 (%windir%\Microsoft.NET\Framework\v1.1.4322\config\machine.config) and add the following towards the end of configSections.
I now needed to tell my application to use the application pool ASP.NET 1.1. Use IIS Manager, choose the site that you are working with and choose “Advanced Settings”. Adjust the application pool to use ASP.NET 1.1 which will use .Net Framework 1.1.
6 – Fix applicationHost.config bug
IIS runtime detected that I was running on a 64 bit operating system, so it attempted to load .net framework configuration from Microsoft.Net\Framework64, but this doesn’t exist for .Net Framework 1.1. The solution is to copy the 32 bit version into the
appropriate 64 bit folder.
ahmedilyas
Member
414 Points
586 Posts
No managed code running in the process? IIS and .NET 1.1
Nov 28, 2012 02:30 AM|LINK
So I have an old project that my client has which is .NET 1.1 and cannot be upgraded to even .NET 2.0 as bare minimum.
So I am using a VM environment with WS2008R2 + all updates and have VS .NET 2003 installed and IIS 7.5
I managed to get it to talk to IIS 7.5 and setting the apppool to run 32 bit apps. I can now create web projects - great!
But when I run within VS.NET 2003, I ALWAYS get this error and not sure where to go from here:
--------------------------- Microsoft Development Environment ---------------------------
Error while trying to run project: 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.
Click Help for more information. --------------------------- OK Help ---------------------------
of course, if I open up IE and browse to the website - it runs fine but I NEED it to run within VS.NET 2003 so I can debug....
any thoughts?
ahmedilyas
Member
414 Points
586 Posts
Re: No managed code running in the process? IIS and .NET 1.1
Nov 28, 2012 05:37 PM|LINK
anyone?
Angie xu - M...
All-Star
18045 Points
1550 Posts
Microsoft
Re: No managed code running in the process? IIS and .NET 1.1
Nov 29, 2012 08:15 AM|LINK
Hi
ASP.NET 1.1 is not supported or compatible with IIS 7.5, but Virtual Machine can prevent changes to system.
So whether there is something wrong with .NET 1.1 on Windows 2008 R2, you could try this about installing .NET 1.1 on Windows 2008 R2.
And check whether helpful to you.
Kind regards
Feedback to us
Develop and promote your apps in Windows Store
ahmedilyas
Member
414 Points
586 Posts
Re: No managed code running in the process? IIS and .NET 1.1
Dec 06, 2012 08:11 AM|LINK
Thanks. I already have done this however this does not answer the question about being able to debug within VS2003/run the web project with debugging on WS2008R2 (which has .NET 1.1 installed and configured).
running the web site request works just fine. serves the page fine. but when running VS2003 and you are debugging - it fails with the error message stated in my opening thread :)
ahmedilyas
Member
414 Points
586 Posts
Re: No managed code running in the process? IIS and .NET 1.1
Dec 06, 2012 09:30 AM|LINK
this fixed it:
http://blogs.charteris.com/blogs/ivorb/archive/2010/07/15/installing-net-1-1-applications-on-windows-server-2008-r2.aspx
copying/pasting article:
1 - Install IIS Metabase Compatibility
To install on Windows 2008 Server – click Start and then “Server Manager”.
Under Web Server (IIS), click Add Role Services.
Ensure that IIS Metabase Compatibility is installed.
2 - Install .Net 1.1
I installed .Net 1.1 in the following order:
I still got a compatibility warning, but chose “Run Program” to continue.
Installing Service Pack 1 is likely to require a reboot.
3 – Enable ASP.Net 1.1 ISAPI Extension
Following the steps in option 2 made ASP.NET v1.1.4322 available on my ISAPI and CGI Restrictions dialog, but was disabled by default. Open Internet Explorer, click on your server name and choose ISAPI and CGI Restrictions from the IIS section. Enable ASP.Net v1.1.4322 as a valid ISAPI extension.
4 – Adjust machine.config
We need ASP.NET 1.1 to ignore IIS configuration sections, so open machine.config for Framework 1.1 (%windir%\Microsoft.NET\Framework\v1.1.4322\config\machine.config) and add the following towards the end of configSections.
2: System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
5 – Adjust the Application pool
I now needed to tell my application to use the application pool ASP.NET 1.1. Use IIS Manager, choose the site that you are working with and choose “Advanced Settings”. Adjust the application pool to use ASP.NET 1.1 which will use .Net Framework 1.1.
6 – Fix applicationHost.config bug
IIS runtime detected that I was running on a 64 bit operating system, so it attempted to load .net framework configuration from Microsoft.Net\Framework64, but this doesn’t exist for .Net Framework 1.1. The solution is to copy the 32 bit version into the appropriate 64 bit folder.