使用 Cassini 和 IIS 本地服务器未找到 DNS 错误页面
我有一个现有的 asp.net 项目,我正在尝试将其转移到新的开发机器上。我遇到的问题是,即使项目构建没有错误,我也无法在浏览器中预览页面。 IE 和 Chrome 都会返回 DNS 错误页面未找到。这是我在用头撞墙大约两周后迄今为止所做的事情。
- 将本地主机文件编辑为 取消注释 127.0.0.1 localhost 行(:: 行已经 正如许多博客所说的那样评论掉了 应该是)
- 尝试使用IIS本地开发服务器而不是卡西尼
- 禁用IPv6(我读过的一些文章表明它会导致冲突...我在它无法解决我的问题后重新启用它)
- 重新安装.NET 4.0
- 重新复制 我的 VS 的新图片 它运行的其他机器 正确
- 搜索 Stackoverflow 和 MSDN 了解其他可能的情况 解决方案
有人对我还应该尝试什么有任何建议吗?
PS - 我使用的是 Windows 7 机器
更新: 我将原来的项目从旧机器复制到新机器。项目构建时出现错误,但 Cassini 成功加载了 default.aspx 页面。然而,当我修复了对作为解决方案一部分的缺失 DLL 的引用时,问题再次出现。有趣的是,当我删除了有问题的引用时,它仍然不起作用。引用的 DLL 中的某些内容是否会导致主项目中断且无法正确加载?我检查了源代码(主要是操作数据的逻辑),没有看到任何必然导致 default.aspx 无法加载的内容。
I have an existing asp.net project that I'm attempting to move to a new development machine. The issue I'm encountering is that even though the project builds without error I cannot preview the page in a browser. Both IE and Chrome return a DNS Error Page Not Found. Here's what I've done thus far after about two weeks of banging my head against the wall.
- Edited local hosts file to
uncomment the 127.0.0.1 localhost
line (the :: line was already
commented out as many blogs said it
should be) - Attempted using IIS Local Development Server instead of Cassini
- Disabled IPv6 (some articles I read suggested that it causes a conflict...I re-enabled it after it failed to remedy my issue)
- Reinstalled .NET 4.0
- Recopied
a fresh image of the VS from my
other machine where it runs
correctly - Scoured Stackoverflow
and MSDN for other possible
solutions
Does anyone have any suggestions as to what else I should try?
PS - I'm using a Windows 7 machine
UPDATE:
I recopied the original project from the old machine to the new machine. The project built with errors but Cassini loaded the default.aspx page successfully. However, when I then fixed the reference to missing DLLs that are part of the solution the problem reoccurred. And interestingly when I then removed the offending references it still did not work. Could something in the referenced DLLs be causing the main project to break and not load correctly? I examined the source code (mostly logic for manipulating data) and don't see anything that would necessarily cause default.aspx not to load.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论