Delen via


Unit Testing on Vista's IIS

Ok you are now unit testing your web service and everything is going fine. So now you decide that you want to try out RC1 of Vista so you set it up and make sure IIS is installed. So now you try and create an ASP.Net app in the localhost only to find that it does not work. Don’t worry check out the following blog that explains what you need to do so you can create ASP.Net websites on IIS in Vista with VS 2005

https://blogs.msdn.com/jorman/archive/2006/06/06/619246.aspx

 

Cool so now you are coding away and you go to test your unit test only to get the following error: “The web site could not be configured correctly; getting ASP.NET process information failed. The server may not be running a version of Asp.Net version 2.0 or greater.  Requesting 'https://localhost/website/VSEnterpriseHelper.axd' returned an error: The remote server returned an error: (500) Internal Server Error.”

 

What is this I have Asp.Net 2.0 install! Ok don’t worry. You can easily fix this by doing the following.

 

1.       Start/Run “InetMgr”

2.       Navigate to the website.

3.       Choose “Advanced settings…”

4.       Set the application pool to "Classic .NET AppPool".

5.       Restart IIS.

6.       Run you unit tests again.

 

Enjoy and have fun!