tags:

views:

234

answers:

5
+1  Q: 

asp.net with IIS

I have develop a small ASP.NET application. It runs fine when running it with the small IIS installation that comes with Visual Studio 2005, but not when trying with IIS. I created the virtual directory in ISS where the application is located (done it though both IIS and VS 2005) but it does not work. In the begginning I though it might be caused by the web.config file, but after a few tests, i think that the problem lies with IIS (not certain about it). Some of the error that I get are "Unable to start debugging on the web server. The underlying connection was closed: An unexpected error ocurred on a reciever. Click help for more information"

Can anyone point me in some direction?? Many thanks in advanced!!!!

A: 

The site won't load at all or you can't debug remotely?

palmsey
It sounds like it won't load at all.
Jeff
+5  A: 

Have you run aspnet_regiis?

Here's an overview site for different IIS versions setup and should help if there are other questions/issues

curtisk
Good point...that's one of those things you do once and then forget about.
Jeff
I've done it before! :p
curtisk
A: 

Some thoughts:

  1. Make sure you've got debugging enabled in your web.config, if you're trying to debug. Otherwise, build in 'Release' mode.
  2. Make sure your project is set as an application, and is running as the correct version of .NET
  3. More description of your setup and the error message would be useful.
Jeff
A: 

Make sure that the customErrors is set to off in the web.config. That should show the actual exception.

Make sure that your virtual directory in IIS is set to the correct version of the .NET framework.

Look at the properties in the virtual directory and see that the correct default documents are the ones that you are using in your dev project.

Also look at the url headers for the website in IIS.

hectorsosajr
A: 

On some of our servers we have both versions of the .NET framework. In IIS I typically have to set what version the virtual directory should be using. This can cause problems running it on the server.

osp70