473,566 Members | 2,776 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

So tired of this bug

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 "Distribute d Transaction Coordinator" service is running
reinstall IIS
regsvr32 aspnet_isapi.dl l
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
Nov 19 '05 #1
14 1401
I don't know what firewall you may be using on that machine, but my copy of
Zonealarm always causes VS.NET to throw this error when creating a new
ASP.NET web app. I kill Zonealarm and it works fine.
Nov 19 '05 #2
"Thomas Andersson" <1q************ ****@newsgroup. nospam> wrote in message
news:82******** *************** ***********@mic rosoft.com...
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


You gave a list of things you try to fix this, but no information on what
troubleshooting techniques you use. Given the list of fixes you've tried, I
recommend you start from scratch. I further recommend that you try keeping
this simple.

Start with: what does the IIS log say? Do you have Frontpage extensions
installed and enabled? Is this happening on existing web projects? Are these
projects all local? If so, try to keep a record of the date/time when
opening one of these projects succeeds. Then, when one fails, you can maybe
try to figure out what happened between the time it last succeeded and the
time it failed. You can also try some of the other web projects which have
succeeded in order to determine whether any of those now fail. It will be
interesting to see what the failures have in common with each other.
I used to have problems like this with VS2002. I have gotten down to a
pattern that works all of the time:

1) Create the file system folderfor the web project
2) Right-click the folder and choose "Properties "
3) Choose the Web Sharing tab
4) Enable web sharing on the default web site
5) Open or create the project
I used to go though hell with Frontpage Server Extensions and web folders
and whatever else felt right, but that just doesn't happen any more. I think
that's because I simplified things and reduced the number of different
things I was doing to my server machine. That made it more likely that I
would find the problem, not less likely.

John Saunders
Nov 19 '05 #3
As I described in my question - I unistalled my zonealarm firewall - and it
actually did the trick for a couple of weeks. Then the problem came back.

/Thomas
"Jeff Evans" wrote:
I don't know what firewall you may be using on that machine, but my copy of
Zonealarm always causes VS.NET to throw this error when creating a new
ASP.NET web app. I kill Zonealarm and it works fine.

Nov 19 '05 #4
My apologies for not reading more thoroughly.
Nov 19 '05 #5
Thomas Andersson wrote:
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 "Distribute d Transaction Coordinator" service is running
reinstall IIS
regsvr32 aspnet_isapi.dl l
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


You might want to try this post-sp2 hotfix:
http://www.microsoft.com/downloads/d...d-ad8430a1f7c8

It's supposed to correct problems with the loopback adaptor introduced
with sp2.

Matt
Nov 19 '05 #6
Hej John and thank you for your reply!
You gave a list of things you try to fix this, but no information on what
troubleshooting techniques you use. Given the list of fixes you've tried, I
recommend you start from scratch. I further recommend that you try keeping
this simple. I promise you I try to keep things as simple as possible. But it seems like
this problem can appear even if I haven't done anyhing particular.
Start with: what does the IIS log say? Thats one thing I haven't looked at before. And here is a line from the web
project I cannot open:
17:47:18 127.0.0.1 POST /MyWebPath/_vti_bin/shtml.exe/_vti_rpc 405
What is shtml.exe??? Hmm I thought shtml.exe was a FrontPage thing? But I
don't have Frontpage Extension installed - or at least it is not checked when
I look under my IIS in the windows component dialouge...
Do you have Frontpage extensions installed and enabled? No it should not be installed
Is this happening on existing web projects? Currently - there is only one project I can not open! I can create new web
projects as I like, and it seems like I can open every existing web project
except one.
projects all local? If so, try to keep a record of the date/time when
opening one of these projects succeeds. Then, when one fails, you can maybe
try to figure out what happened between the time it last succeeded and the
time it failed. You can also try some of the other web projects which have
succeeded in order to determine whether any of those now fail. It will be
interesting to see what the failures have in common with each other. These are all local web projects and I try to compare the projects why some
work and some don't. I look at the project dependencis, IIS settings, all I
can think of...
I used to have problems like this with VS2002. I have gotten down to a
pattern that works all of the time:

1) Create the file system folderfor the web project
2) Right-click the folder and choose "Properties "
3) Choose the Web Sharing tab
4) Enable web sharing on the default web site
5) Open or create the project I will take a look at this - and add it to my "collection " if it helps ;)
I used to go though hell with Frontpage Server Extensions and web folders
and whatever else felt right, but that just doesn't happen any more. I think
that's because I simplified things and reduced the number of different
things I was doing to my server machine. That made it more likely that I
would find the problem, not less likely.


After each time I get a fix working I try to keep everything as simple as
possible, but it allways turns out to run into the same problem. And it is
only on this computer it happens! On my other computer I never experience
this problem - but there I use Win 2000.

Nov 19 '05 #7
Hi Matt,

I just tested that hotfix but that didn't help. Thank you anyway!
Thomas

"MattB" wrote:

You might want to try this post-sp2 hotfix:
http://www.microsoft.com/downloads/d...d-ad8430a1f7c8

It's supposed to correct problems with the loopback adaptor introduced
with sp2.

Matt

Nov 19 '05 #8
You might try deleting the C:\Documents and Settings\"usern ame"\VSWebCach e
folder. (put the appropriate path in for the username).

I've had the problem off and on over the years and the last time I had it
deleting the VSWebCache seemed to fix it right up.

John

"Thomas Andersson" wrote:
Hi Matt,

I just tested that hotfix but that didn't help. Thank you anyway!
Thomas

"MattB" wrote:

You might want to try this post-sp2 hotfix:
http://www.microsoft.com/downloads/d...d-ad8430a1f7c8

It's supposed to correct problems with the loopback adaptor introduced
with sp2.

Matt

Nov 19 '05 #9
Hi Thomas,

Could you please reproduce the create project error again in VS.net
and then collect its corresponding IIS log? I believe this can be the
start point for us to looks into the problem. Please take care
sometimes the logging will be a few mins delayed after the request.

Wait for your update.
Thanks.

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security

Nov 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
2338
by: Thomas Heller | last post by:
I'm slowly getting tired maintaining py2exe. It is far from perfect, although it has interesting features (I would say). The problem, apart from the work, is that it is good enough for me - I can do everything that I need with it. But I assume I use far less libaries than other Python programmers, so a lot of bugs will never bite me. ...
1
1194
by: Roy | last post by:
Hey all, Yeah, I'm tired of the same old, boring datagrids. Does anyone out there have links on how to "spruce up" a datagrid using style sheets or something else so that they aren't as blocky and well... "gridlike" as they typically are? Thanks, Roy
9
1193
by: Mat | last post by:
i reinstalled everything but the problem still persists. Really, i am tired to restart the IDE every 10 mn. -classes doesn't have constructors but i have 5 constructors -Variable xxx is not declared but variable xxx is declared -Component is private.....etc
1
1635
by: Burganovsky | last post by:
Hi! I'm new in aspnet, and i'm already tired to write MapPath("") for every System.IO operation, where (in config maybe) i can set once, that cwd = server root path, not winnt\system32\? I mean f.e. this: File.OpenRead ("logo.gif") <- this file is in application server root directory i.e. c:\inetpub\wwwroot\aspnetproject\logo.gif Thanks...
1
1600
by: nickjaffe | last post by:
Hi all, I've spent literally hours trying to figure this one out. I'm re-developing an app from vb6 to vb.net, and I cannot get my XML code working. I've just started using .NET. I'm tired, highly annoyed and this is my problem (I know it is very easy for someone who has done this before): My entire XML file is here - The '<CALL_12260>'...
1
1569
by: irresistibleangela2 | last post by:
Are you tired of being a single? Do you feel lonely and boredom in your life. Worry no more! Because we have great news for you!! We have the right site that waits just for you, Aware.Baycouples.com will give you the chance to meet people and experience the excitement of dating someone. Feel the thrill and pleasure here at...
5
1653
by: BurnTard | last post by:
Hi guys. It's been ages since I tried making anything halfway useful in python, and back when I did, I was almost never successful... Anyways, the thing is: I'm finally finished moving my mp3's from a great heap in a folder called "miscellany", and I'm dead tired of organizing stuff that should have been organized ages ago, and have already...
1
3084
by: ccon67 | last post by:
In a win32 project I have several compile errors for the resource *.rc. The first fews errors look like this error RC2144 : PRIMARY LANGUAGE ID not a number error RC2135 : file not found: MAIN_MENU error RC2164 : unexpected value in RCDATA To overcome all of these errors, I include <windows.hat the top of "resource.h". But verytime the...
0
7584
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7644
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7951
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2083
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.