Model view controller SocketException(0x2afc):请求的名称有效,但未找到请求类型的数据

Model view controller SocketException(0x2afc):请求的名称有效,但未找到请求类型的数据,model-view-controller,socketexception,Model View Controller,Socketexception,我刚刚将我的一个客户的软件从一个非常旧的版本升级到了最新的版本。当软件的Windows应用程序端工作时,新的MVC应用程序出现上述错误。Windows和Web应用程序都使用.NET远程处理连接到服务器组件 我在网上搜索过这个错误,但我能找到的都是与DNS相关的问题(这也反映在发布的堆栈跟踪中),所以我的问题似乎与DNS问题无关。此外,本例中的web应用程序与应用程序连接到的服务器组件以及my Windows位于同一服务器上,web应用程序使用的配置文件完全相同。Windows应用程序通过服务器自

我刚刚将我的一个客户的软件从一个非常旧的版本升级到了最新的版本。当软件的Windows应用程序端工作时,新的MVC应用程序出现上述错误。Windows和Web应用程序都使用.NET远程处理连接到服务器组件

我在网上搜索过这个错误,但我能找到的都是与DNS相关的问题(这也反映在发布的堆栈跟踪中),所以我的问题似乎与DNS问题无关。此外,本例中的web应用程序与应用程序连接到的服务器组件以及my Windows位于同一服务器上,web应用程序使用的配置文件完全相同。Windows应用程序通过服务器自身和VPN连接工作

这是我的堆栈跟踪:

Server Error in '/MyApp' Application.

The requested name is valid, but no data of the requested type was found

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Net.Sockets.SocketException: The requested name is valid, but no data of the requested type was found

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[SocketException (0x2afc): The requested name is valid, but no data of the requested type was found]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +14799926
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +622
MyApp.Common.ServerInterfaces.IGeneral.GetStartupData(String CurrentVersion, Boolean CompressResults, ProgramModuleEnum Caller) +0
MyApp.Web.Infrastructure.BaseController.GetAppData(Boolean ForceRefresh) +388
ASP._Page_Views_Security_Login_vbhtml.Execute() +228
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +126
System.Web.WebPages.StartPage.ExecutePageHierarchy() +143
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +110
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +380
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +109
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +890
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +890
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +97
System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +241
System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +111
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +19
System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +51
System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +111
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288
“/MyApp”应用程序中出现服务器错误。 请求的名称有效,但未找到请求类型的数据 描述:执行当前web请求期间发生未处理的异常。请查看堆栈跟踪以了解有关错误的更多信息以及错误在代码中的起源。 异常详细信息:System.Net.Sockets.SocketException:请求的名称有效,但未找到请求类型的数据 源错误: 在执行当前web请求期间生成了未经处理的异常。有关异常的起源和位置的信息可以使用下面的异常堆栈跟踪来识别。 堆栈跟踪: [SocketException(0x2afc):请求的名称有效,但未找到请求类型的数据] System.Runtime.Remoting.proxy.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)+14799926 System.Runtime.Remoting.proxy.RealProxy.PrivateInvoke(MessageData&msgData,Int32类型)+622 MyApp.Common.ServerInterfaces.IGeneral.GetStartupData(字符串CurrentVersion,布尔压缩结果,ProgramModuleNum调用者)+0 MyApp.Web.Infrastructure.BaseController.GetAppData(布尔ForceRefresh)+388 ASP.\页面\视图\安全性\登录\ vbhtml.Execute()+228 System.Web.WebPages.WebPageBase.ExecutePageHierarchy()+280 System.Web.Mvc.WebViewPage.ExecutePageHierarchy()+126 System.Web.WebPages.StartPage.ExecutePageHierarchy()+143 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext、TextWriter writer、WebPageRenderingBase startPage)+110 System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext上下文)+380 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1过滤器、Int32过滤器索引、ResultExecutingContext预文本、ControllerContext ControllerContext、ActionResult ActionResult)+109 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1过滤器、Int32过滤器索引、ResultExecutingContext预文本、ControllerContext ControllerContext、ActionResult ActionResult)+890 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1过滤器、Int32过滤器索引、ResultExecutingContext预文本、ControllerContext ControllerContext、ActionResult ActionResult)+890 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext ControllerContext,IList`1过滤器,ActionResult ActionResult)+97 System.Web.Mvc.Async.c__显示类21.b__1e(IAsyncResult asyncResult)+241 System.Web.Mvc.Controller.b_u1d(IAsyncResult asyncResult,ExecuteCorerate innerState)+29 System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)+111 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)+53 System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)+19 System.Web.Mvc.MvcHandler.b_uu5(IAsyncResult asyncResult,ProcessRequestState innerState)+51 System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)+111 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+606 System.Web.HttpApplication.ExecuteStep(IExecutionStep步骤,布尔值&同步完成)+288
这是一个已建立的应用程序,也是我第一次遇到此错误(仅针对此特定客户端)。服务器仍然在.NET 4.0上,所以我升级到了.NET 4.5.1(我的应用程序的最新版本需要),并重新启动了服务器,这使我的Windows应用程序正常工作,但网络仍然无法正常工作。

好的,不知道发生了什么。周末过后,我又尝试了一次web应用程序,它就这样工作了。根本没有服务器重新启动或更新服务器。(虽然在安装.NET 4.5.1后,我上周确实重新启动了服务器,但这也没有解决问题)


抱歉,但这似乎对其他有类似错误的人没有帮助。

有人吗?在上发现类似问题,但也未得到回答。