厌倦了这个bug [英] So tired of this bug

查看:56
本文介绍了厌倦了这个bug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




当我尝试打开一个网站

项目或创建一个新项目时,我非常厌倦收到此错误消息:


尝试创建时,Web服务器报告了以下错误:
打开位于以下URL的Web项目:''http:// localhost /。 ..''

无法建立与服务器的连接


我通常以某种方式修复它(请参阅我在
这条消息)但它总是回来,错误

消息的微小变化。当我尝试打开或创建一个web $ $
项目时,它总是来的。由于某些原因,我的网络服务项目从未发生过这样的事情!


我一直在互联网上寻找这个问题并且有很多

很多有这个或类似问题的开发人员 - 我不能相信为什么

微软并没有解决这个问题。我花了很多其他开发人员花了很多钱来解决这个问题每次我们想要打开(或者在某些情况下创建一个Web项目)。


我的电脑使用的是Win XP SP2,IIS 5.1,VS. 2003年


这些是我在过去一年中学到的最重要的修复工具

打开/创建一个网络项目(我不想思考)我有多少时间花在这上面了:
$

有时候我需要做这些步骤(我最常见的解决方案):

卸载IIS

删除(重命名)inetpub目录

确保分布式事务处理协调器服务正在运行

重新安装IIS

regsvr32 aspnet_isapi.dll

执行aspnet_regiis -i


有时候这已经足够了(很少 - 只是在最后一次工作了几次

年):

aspnet_regiis -i


一些我重新安装了整个.NET环境。如果我重新安装我的IIS,这通常可以工作




当然 - 检查aspnet的用户是否有足够的权利。


是的 - 我没有阻止我的zonealarm防火墙 - 它实际上已经完成了几个星期的工作




最后一个是我最喜欢的 - 我不知道为什么,但它通常都有效。

当我必须重新创建我的网络项目并移动我的网页时,我必须这样做

页面从旧项目到这个项目(当我无法打开我的网站时会发生这种情况

项目,其他一些解决方案也不起作用):


- 删除IIS中的virt目录

- IISReset

- 重命名你的源目录的物理路径

- 创建一个新的virt目录旧路径(重要提示:您必须在IIS中创建

物理目录 - 否则它将无法正常工作)

- 尝试使用原始名称创建新的Web项目VS .NET - 如果

,你很幸运一个新的空Web项目。现在我们应该尝试从旧项目中移动

文件......

- 首先从新创建的Web项目中删除所有文件

- 不要保存(如果你这样做它将无法工作!)

- 然后打开资源管理器并将旧项目中的文件移动到新的

项目目录(只有源文件 - 如果你移动bin意外

可能发生的事情)。

- 然后在NOTEPAD中打开你的新web项目文件并复制引用并将它们放在这里。确保它看起来没问题并保存

新项目文件。

- 希望VS. NET会提示你一个窗口 - 在

选项中选择''丢弃'。

如果你很幸运 - 你现在就可以开始使用你的项目了! />

有谁可以帮我解决这个问题?

Thomas

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

推荐答案

我不知道我不知道你可能在那台机器上使用了什么防火墙,但我的副本

Zonealarm总是会导致VS.NET在创建新的
ASP时抛出此错误。 NET网络应用程序。我杀了Zonealarm并且它工作正常。
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.


" Thomas Andersson" < 1Q **************** @ newsgroup.nospam>在消息中写道

news:82 ********************************** @ microsof t.com ...
"Thomas Andersson" <1q****************@newsgroup.nospam> wrote in message
news:82**********************************@microsof t.com...


当我尝试打开一个web
项目或创建一个新项目时,我已经厌倦了这个错误消息一:

Web服务器在尝试创建以下错误时报告了以下错误:''http:// localhost / ...''<无法建立与服务器的连接
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




你给出了一个你尝试解决这个问题的清单,但没有关于什么的信息

您使用的故障排除技术。鉴于您尝试过的修复列表,我建议您从头开始。我进一步建议您尽量保持

这个简单。


开头:IIS日志说什么?你有Frontpage扩展

安装和启用?这是在现有的Web项目上发生的吗?这些

项目都是本地的吗?如果是这样,请尝试记录日期/时间

打开其中一个项目成功。然后,当一个失败时,你可以试着弄清楚它上次成功的时间和它失败的时间之间发生了什么。您还可以尝试其他一些已成功完成

的Web项目,以确定其中任何一个现在是否失败。看看失败之间的相互关系会很有趣。

我曾经遇到类似VS2002这样的问题。我已经得到了一直有效的

模式:


1)为web项目创建文件系统文件夹

2)右键单击文件夹并选择属性

3)选择网络共享选项卡

4)在默认网站上启用网络共享

5)打开或创建项目

我过去常常使用Frontpage Server Extensions和web文件夹

以及其他任何感觉正确,但是只是不再发生了。我认为这是因为我简化了事情并减少了我在服务器机器上做的不同的事情。这使我更有可能发现问题,而不是更不可能。


John Saunders



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


正如我在我的问题中描述的那样 - 我取消了我的zonealarm防火墙 - 而且它实际上已经花费了几周时间。然后问题又回来了。


/ Thomas

Jeff Evans写道:
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:
我不知道你在那台机器上可能使用的是什么防火墙,但我的版本的Zonealarm总是会导致VS.NET在创建时抛出此错误一个新的ASP.NET Web应用程序。我杀了Zonealarm并且工作正常。
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.



这篇关于厌倦了这个bug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆