G
Guest
Hi,
I am so so tired of getting this error message when I try to open a web
project or create a new one:
The web server reported the following error when attempting to create ot
open the web project located at the following URL: 'http://localhost/...'
A connection with the server could not be established
I usually fix it somehow (see my collection of solutions at the bottom of
this message) but it allways comes back with minor changes in the error
messages. And it allways comes either when I try to open or create a web
project. By some stange reason it never happens with my web service projects!
I've been looking for this problem around the Internet and there are many
many developers who have had this or similair problem - I can't believe why
Microsoft doesn't fix this issue. It cost me and many other developers out
there a lot of money to fix this problem each time we want to open (or in
some cases create a web project).
My computer uses Win XP SP2, IIS 5.1, VS. 2003
These are my toplist of fixes I have learn during the past year to
open/create a web project (I don't want to think about how much time I have
spent on this):
Sometimes I need to do these steps (my most common solution):
uninstall IIS
delete (rename) the inetpub directory
Make sure the "Distributed Transaction Coordinator" service is running
reinstall IIS
regsvr32 aspnet_isapi.dll
perform aspnet_regiis -i
Sometimes this is enough (very seldom - just worked a few times during last
year):
aspnet_regiis -i
A few times I have reinstalled my whole .NET environment. This usually works
if I reinstall my IIS as well.
Of course - check that the user for aspnet has enough rights.
And yes - I unistalled my zonealarm firewall - and it actually did the trick
for a couple of weeks.
This last one is my favorite - I have no ide why, but it usally does work.
This one I have to do when I must recreate my web project and move my web
pages from the old project to this one (this happens when I cant open my web
project and some of the other solutions doesn't work):
- Remove the virt dir in IIS
- IISReset
- Rename the physical path of your souce dir
- Create a new virt dir with the old path (IMPORTANT: you must create the
physical dir inside IIS - otherwise it won't work)
- Try create your new web project with the original name inside VS .NET - if
your lucky you have a new empty web project. Now we should try to move the
files from the old project...
- So start with deleting all your files from your newly created web project
- DO NOT SAVE (if you do that it will not work!)
- Then open explorer and move the files from your old project to this new
projects directory (only the source files - if you move the bin unexpected
things might happend).
- Then open your new web project file in NOTEPAD and copy the references
from the old project file and put them here. Make sure it looks ok and save
the new project file.
- Hopefully VS. NET will prompt you a windows - choose 'Discard' among the
options.
If you are lucky - you can begin to work with your project now!
Can anyone help me with this problems?
Thomas
I am so so tired of getting this error message when I try to open a web
project or create a new one:
The web server reported the following error when attempting to create ot
open the web project located at the following URL: 'http://localhost/...'
A connection with the server could not be established
I usually fix it somehow (see my collection of solutions at the bottom of
this message) but it allways comes back with minor changes in the error
messages. And it allways comes either when I try to open or create a web
project. By some stange reason it never happens with my web service projects!
I've been looking for this problem around the Internet and there are many
many developers who have had this or similair problem - I can't believe why
Microsoft doesn't fix this issue. It cost me and many other developers out
there a lot of money to fix this problem each time we want to open (or in
some cases create a web project).
My computer uses Win XP SP2, IIS 5.1, VS. 2003
These are my toplist of fixes I have learn during the past year to
open/create a web project (I don't want to think about how much time I have
spent on this):
Sometimes I need to do these steps (my most common solution):
uninstall IIS
delete (rename) the inetpub directory
Make sure the "Distributed Transaction Coordinator" service is running
reinstall IIS
regsvr32 aspnet_isapi.dll
perform aspnet_regiis -i
Sometimes this is enough (very seldom - just worked a few times during last
year):
aspnet_regiis -i
A few times I have reinstalled my whole .NET environment. This usually works
if I reinstall my IIS as well.
Of course - check that the user for aspnet has enough rights.
And yes - I unistalled my zonealarm firewall - and it actually did the trick
for a couple of weeks.
This last one is my favorite - I have no ide why, but it usally does work.
This one I have to do when I must recreate my web project and move my web
pages from the old project to this one (this happens when I cant open my web
project and some of the other solutions doesn't work):
- Remove the virt dir in IIS
- IISReset
- Rename the physical path of your souce dir
- Create a new virt dir with the old path (IMPORTANT: you must create the
physical dir inside IIS - otherwise it won't work)
- Try create your new web project with the original name inside VS .NET - if
your lucky you have a new empty web project. Now we should try to move the
files from the old project...
- So start with deleting all your files from your newly created web project
- DO NOT SAVE (if you do that it will not work!)
- Then open explorer and move the files from your old project to this new
projects directory (only the source files - if you move the bin unexpected
things might happend).
- Then open your new web project file in NOTEPAD and copy the references
from the old project file and put them here. Make sure it looks ok and save
the new project file.
- Hopefully VS. NET will prompt you a windows - choose 'Discard' among the
options.
If you are lucky - you can begin to work with your project now!
Can anyone help me with this problems?
Thomas