安装 Oracle 和环回适配器后无法访问 localhost/iis

发布于 2024-07-21 03:42:56 字数 671 浏览 8 评论 0原文

最近我安装了 Oracle 和所需的 Microsoft Loopback 适配器,运行良好。 然而,这似乎以某种方式搞砸了 IIS(或者至少是它与 Visual Studio 的交互)。 我无法再连接到 localhost 或 127.0.0.1,甚至无法在 Visual Studio 2008 中打开 Web 项目(以前工作正常),出现错误“本地 IIS URL http://localhost/MyProject 为 Web 项目 MyProject 指定的尚未配置。为了打开此项目,需要配置虚拟目录。将您想现在创建这个目录吗?” 我单击“是”,然后出现错误“在当前计算机上找不到服务器 http://localhost”。

IIS 正在运行,我可以连接到 localhost:1122 上的默认 IIS 网站和 inetput/wwwroot 的其他内容。

我尝试禁用环回适配器并注释掉我需要添加到主机以使 Oracle 工作的行,虽然这已阻止 Oracle 工作,但它对 IIS/localhost 没有帮助。

编辑:事实证明,这是通过从备份恢复项目来解决的,所以它一定是项目本身的某种问题。

Recently I installed Oracle and the required Microsoft Loopback Adaptor, which worked fine. However, this seems to have screwed up IIS (or at least its interaction with Visual Studio) somehow. I can't connect to localhost or 127.0.0.1 anymore, and I can't even open a web project in Visual Studio 2008 (which used to work fine), getting the error "The local IIS URL http://localhost/MyProject specified for the Web project MyProject has not been configured. In order to open this project the virtual directory needs to be configured. Would you like to create this directory now?" I click yes, then it gives an error that it "could not find the server http://localhost on the current machine".

IIS is running and I can connect to the default IIS website and other contents of inetput/wwwroot on localhost:1122.

I tried to disable the loopback adaptor and comment out the line I needed to add to hosts to get Oracle working, and while this has stopped Oracle from working, it hasn't helped with IIS/localhost.

edit: this turned out to be fixed by restoring the project from a backup, so it must have been an issue with the project itself of some sort.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

遇见了你 2024-07-28 03:42:56

我猜这是环回适配器的问题。 您可能必须正确恢复连接设置。 从“控制面板”->“网络连接”检查环回适配器是否已正确禁用以及连接设置是否正确。
编辑:
另外,在设置中进行所有必要的更改后,最好重新启动系统。

I am guessing it's a problem with the loopback adaptor. You might have to restore your Connection settings properly. Check whether the loopback adaptor is properly disabled and whether Connection settings are correct from Control Panel->Network Connections.
Edit:
Also it would be better to restart the system after you have made all the necessary changes in the settings.

泪之魂 2024-07-28 03:42:56

您可以将本地 IIS 配置为侦听不同的端口。 右键单击“默认网站”,选项卡“网站”,然后单击“高级”。 例如添加 1234 作为 TCP 端口。

然后您可以像 http://localhost:1234/YourProject 一样进行连接

您可以从 Visual Studio 中打开该网站文件系统,并在Project -> 中指定新的URL 属性页 -> 启动选项-> 使用自定义服务器。

You could configure your local IIS to listen on a different port. Right click Default website, tab Web site, then Advanced. Add for example 1234 as a TCP port.

Then you can connect like http://localhost:1234/YourProject

You can open the website in Visual Studio from the file system, and specify the new URL in Project -> Property Pages -> Start Options -> Use custom server.

放肆 2024-07-28 03:42:56

好吧,我终于通过删除项目并从备份中恢复来成功完成这项工作。 我猜想是项目配置不知何故搞砸了,导致了我收到的错误,而不是 IIS 本身有问题。 抱歉误报。

Ok, I finally managed to get this working by deleting the project and restoring from a backup. I guess the project configuration had somehow become screwed up in such a way as to cause the error I got, rather than there being a problem with IIS itself. Sorry for the false alarm.

原来是傀儡 2024-07-28 03:42:56

今天我在 Windows XP 和 IIS 5 上也发生了类似的事情。不管是什么。 问题是我安装的工具在默认网站下创建了一些没有应用程序名称的虚拟目录。

解决方法是打开IIS管理单元,右键单击有问题的虚拟目录并选择“属性”,并在弹出的“属性”对话框的“虚拟目录”选项卡下填写“应用程序名称”。 我给它命名什么并不重要,只要默认网站下不存在应用程序名称为空的虚拟目录即可。

Something similar happened to me today on Windows XP and IIS 5.whatever-it-is. The problem is that a tool I installed had created some Virtual Directories without an Application Name under the Default Web Site.

The solution was to open up the IIS snap-in, right-click and choose Properties for the offending virtual directories, and make up an "Application name" under the "Virtual Directory" tab of the Properties dialog that pops up. It didn't matter what I named it, as long as there was no virtual directory under the Default Web Site with a blank application name.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文