ASP.NET和IIS7 Winsock错误(ASP.NET and IIS7 Winsock Er

2019-10-16 14:32发布

我最近安装了新开发PC,这是64位,并具有IIS 7我开发一个Web应用程序,这是我会定期部署到我的旧PC的发展。 在我的新开发PC,我提示以下错误:

[SocketException (0x273b): The requested protocol has not been configured into the system, or no implementation for it exists]
System.Net.Dns.InternalGetHostByAddress(IPAddress address, Boolean includeIPv6, Boolean throwOnFailure) +1576906
System.Net.Dns.GetHostByAddress(String address) +117
_Default.Page_Load(Object sender, EventArgs e) +154
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

我已经调试错误,我有它追踪到下面一行:

System.Net.Dns.GetHostByAddress(Request.ServerVariables.Item("REMOTE_HOST")).HostName

如果我注释掉这一行,那么它完美的作品。 什么是这一行的问题?

Answer 1:

GetHostByAddress已经过时了,现在使用GetHostEntry,请查看以下链接

http://msdn.microsoft.com/en-us/library/dat0fbe2%28v=vs.80%29.aspx



文章来源: ASP.NET and IIS7 Winsock Error
标签: asp.net iis-7