简体   繁体   English

无法访问此站点 [站点] 的服务器 DNS 地址找不到。 ERR_NAME_NOT_RESOLVED

[英]This site can’t be reached [site]'s server DNS address could not be found. ERR_NAME_NOT_RESOLVED

I'm running windows 10 and IIS version 1511(build 10586.164) I have the default app pools running and the the default html displayed.我正在运行 Windows 10 和 IIS 版本 1511(内部版本 10586.164)我运行了默认应用程序池并显示了默认 html。 All of the other sites I've added give the same我添加的所有其他网站都给出了相同的

This site can't be reached [site]'s server DNS address could not be found.无法访问此站点 [站点] 的服务器 DNS 地址找不到。 ERR_NAME_NOT_RESOLVED ERR_NAME_NOT_RESOLVED

I have used both visual studio 2012 and VS community 15. The MVC 4 version of my project site had been running fine.我使用了 Visual Studio 2012 和 VS community 15。我的项目站点的 MVC 4 版本一直运行良好。

I am rebuilding in asp.net 4.61 MVC 5, to avoid the regular clashes with version types and stopping nuget updating me into a problem.我正在 asp.net 4.61 MVC 5 中重建,以避免与版本类型的常规冲突并停止 nuget 将我更新为问题。

Using the default template for 4.61 MVC 5 I have an app that VS 15 can run.使用 4.61 MVC 5 的默认模板,我有一个 VS 15 可以运行的应用程序。

The old site gives the following error and displays the favicon when run through VS and IIS.旧站点在通过 VS 和 IIS 运行时出现以下错误并显示 favicon。

Could not load file or assembly 'System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.无法加载文件或程序集“System.Web.Razor,Version=2.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或其依赖项之一。 The located assembly's manifest definition does not match the assembly reference.定位的程序集的清单定义与程序集引用不匹配。 (Exception from HRESULT: 0x80131040) error, so I'm parking it rather than getting archaeological. (来自 HRESULT 的异常:0x80131040)错误,所以我将其停放而不是进行考古。

Currently the sites are bound to a host name and port number, * IP Address.当前站点绑定到主机名和端口号,* IP 地址。

I have checked SO questions:我已经检查过这样的问题:

IIS 10 500.19 error and How to run ASP.NET MVC app in IIS 10 on Windows 10 IIS 10 500.19 错误以及如何在 Windows 10 上的 IIS 10 中运行 ASP.NET MVC 应用程序

among others.其中。

Any ideas?有什么想法吗? It feels like it's something simple but I can't see it for trying.感觉这很简单,但我看不到尝试。

尝试从命令行运行ipconfig /flushdns ,对我ipconfig /flushdns

Did you check security for your app folder?您是否检查了应用程序文件夹的安全性? IIS_IUSRS must have read and execute rights, at least. IIS_IUSRS 必须至少具有读取和执行权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM