473,698 Members | 2,179 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
14 1409
Yes - I have tried that but without any luck :(

Thanks anyway!
Thomas

"JStemper" wrote:
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 #11
Hi WenJun,

Here is the complete IIS log for when I try to open the project causing the
error:

#Software: Microsoft Internet Information Services 5.1
#Version: 1.0
#Date: 2004-12-10 10:42:40
#Fields: time cs-method cs-uri-stem sc-status sc-win32-status
10:42:40 GET /MyWebProject/vs-121175536296792 68_tmp.htm 200 0
10:42:40 GET /_vti_inf.html 404 2
10:42:40 POST /MyWebProject/_vti_bin/shtml.exe/_vti_rpc 405 1
10:42:40 GET /_vti_inf.html 404 2
10:42:40 POST /_vti_bin/shtml.exe/_vti_rpc 405 1
10:42:46 GET /MyWebProject/get_aspx_ver.as px 302 0
10:42:46 GET /MyWebProject/myWebPage.aspx 302 0

2 comments I've got here:
- I have no idea what the "get_aspx_ver.a spx" is. It is not in my web
directory or project!
- I have many pages in MyWebProject but it seems to stop after the
myWebPage.aspx.

Thanks
Thomas

""WenJun Zhang[msft]"" wrote:
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 #12
> - I have no idea what the "get_aspx_ver.a spx" is. It is not in my web
directory or project!


It's a trick that is used by vs.net to test what .net version is installed.
The file doesn't need to exist but you could add an empty file with this name.
The headers returned by IIS hold the information that is used, any content
is ignored.

Hans Kesting
Nov 19 '05 #13
"Thomas Andersson" <1q************ ****@newsgroup. nospam> wrote in message
news:DE******** *************** ***********@mic rosoft.com...
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.


Nothing in particular that you _know_ about. ;-)
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


The technical term for this is "a clue".
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...


I don't know what shtml.exe is (that can be an exercise for the OP), but 405
is "Method not allowed".

I'd follow up on this if I were you.

John Saunders
Nov 19 '05 #14
Puh FINALLY - I got it!

This was definetly no bug - it was my own fault! Here is what happend:

Last day I was editing my web.config and changed the authorization element
to the "<deny users="?"/> (this was what I meant by "I haven't done anyhing
particular" - sorry). I normally don't have this line on my development
machine and I forgot to give access to one single aspx-file in my project.
Then of course when I tried to open my web project I didn't have access
rights to this file and VS prompt me my good old friend "A connection with
the server could not be established". And since I have had this error message
many times before I assumed that one of the other fixes should help me out
this time as well - but of course they didn't help in this case.

I found the problem by studying my IIS logs (thanks John!)

So this was my mistake - but I would appreciate another more informative
error message saying something like "myWebPage. aspx could not be loaded due
to your web.config settings bla bla".

Ok until next time.... thank you guys for your help!

Thomas
Nov 19 '05 #15

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

Similar topics

13
2346
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. It is also interesting that the recently introduced bundle-files option, which allows to build...
1
1196
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
1197
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
1638
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 a lot!
1
1603
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>' tag name is dynamic (the XML file is generated by something else), everything else stays
1
1575
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 Aware.Baycouples.com. We guarantee you that once you meet your perfect match; you will surely enjoy and might have...
5
1657
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 been organized on my laptop... What is the matter at the moment is that most mp3's, ripped from cd's...
1
3094
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 resource editor is touch, a new resource.h is generated and I have to add that line again...I'm...
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8604
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8895
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8861
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6518
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4369
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3046
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
2
2330
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.