2010-12-02 12 views
3

私はテストサーバー(proyectos.legendsoft.com.ve)で私のプロジェクトをホストしていますが、私はこのプロジェクトが別のホストからのいくつかのクッキーにアクセスする必要があるので、私のローカルマシン上のファイル:そのようなホストは知られていません、ClientDependency

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 

答えて

1

これは、ClientDependencyが修正する必要があるものです。ただし、この問題を回避するために不正なファイルフィルタリングを無効にすることはできますが、それ以外はうまく動作します。それが問題であるように、私はこのための問題を作成しました

http://clientdependency.codeplex.com/workitem/13173

+0

おかげで、それが見えます。 –

2

エラーがSystem.Net.Dns.GetAddrInfo(String name)からではなく、あなたのClientDependencyライブラリから実際にあります。アプリケーションを実行しているサーバーが、渡しているホスト名を解決できることを確認します(そのマシンからアドレスをpingして、動作しているかどうか確認してください)。

関連する問題