ICode9

精准搜索请尝试: 精确搜索
首页 > 编程语言> 文章详细

c#-尚无此类主机,ClientDependency

2019-12-09 00:18:51  阅读:252  来源: 互联网

标签:asp-net c asp-net-mvc


我将项目托管在测试服务器(proyectos.legendsoft.com.ve)中,但是由于我需要该项目才能从其他主机访问某些Cookie,因此我不得不在本地计算机上更改主机文件:

 75.125.228.200     legendsoft.batanga.com

现在,这似乎导致ClientDependendy库出现问题,即使它在我的本地主机上也可以正常工作:

127.0.0.1     localhost.batanga.com

任何人都知道解决此问题的任何方法,或者我只需要删除此库?

这是完整的错误:

Server Error in '/Batanga' Application.
No such host is known

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: No such host is known

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 (0x2af9): No such host is known]
   System.Net.Dns.GetAddrInfo(String name) +250
   System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6) +144
   System.Net.Dns.GetHostAddresses(String hostNameOrAddress) +435
   ClientDependency.Core.UriExtensions.IsLocalUri(Uri uri) +76
   ClientDependency.Core.Module.<>c__DisplayClass2.<ReplaceContent>b__1(Match m) +264
   System.Text.RegularExpressions.RegexReplacement.Replace(MatchEvaluator evaluator, Regex regex, String input, Int32 count, Int32 startat) +244
   System.Text.RegularExpressions.Regex.Replace(String input, MatchEvaluator evaluator) +84
   ClientDependency.Core.Module.RogueFileFilter.ReplaceContent(String html, String namedGroup, String[] extensions, ClientDependencyType type, String regex) +143
   ClientDependency.Core.Module.RogueFileFilter.ReplaceScripts(String html) +260
   ClientDependency.Core.Module.RogueFileFilter.UpdateOutputHtml(String html) +16
   System.Func`2.Invoke(T arg) +0
   ClientDependency.Core.Module.ResponseFilterStream.OnTransformCompleteStringInternal(MemoryStream ms) +107
   ClientDependency.Core.Module.ResponseFilterStream.Flush() +109
   System.Web.HttpWriter.FilterIntegrated(Boolean finalFiltering, IIS7WorkerRequest wr) +610
   System.Web.HttpResponse.FilterOutput() +100
   System.Web.CallFilterExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +77
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171

解决方法:

这是ClientDependency需要解决的问题.您可以简单地关闭恶意文件筛选来解决此问题,但是其他所有方法都可以正常工作.

我为此创建了一个问题http://clientdependency.codeplex.com/workitem/13173

标签:asp-net,c,asp-net-mvc
来源: https://codeday.me/bug/20191208/2095184.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有