Visual Studio 2003 and Visual Studio Beta1 on the same machine – Auto-Attach error

Number of Views : 3081

I have installed visual studio Beta1 and found some issues when developing in the VS2003 IDE.
Specifically when trying to debug or compile. The exact error looks like : “Auto-attach to process ‘aspnet_wp.exe’ on machine failed”
After some googling I was able to find my issue. The main problem is that the app I am deleloping was using IIS and the specific IIS virtual directory was using the wrong / new version of ASP.net framework. To correct this issue you will have to do the following:

1. Determine the IIS virtual directory you are using for this specific applicaiton
Here is my example info
Example : IISusers
IIS Manager

Open iismanager in the MMC
Go to the specific Virtual Directory
Right click and open properties

2. Select the ASP.net tab
It will currently be set the the 2.0 framework
IIS Manger before

3. Change the Framework to 1.1.4322.0
IIS manage after
4. restart iis
Open a command prompt (start | run | cmd)
type iisreset

This should correct that issue. So far I am enjoying the new beta.

I found a few other solutions – Here this solution uses the regiis settings to remove 2.0 mapping from IIS. I decided that I may develop in the beta and did not want to remove all associations, so I chose to only remove it for the virtual directory. Have fun with the new version of VS. So far I installed it for the screensaver RSS reader. I have made some updates and will post it here when done.

Leave a Reply

Your email address will not be published. Required fields are marked *