3

どこから調べたらいいのかわからないので、誰かがこれまたは似たようなものを見たかどうかを確認しようと思いました. 私は長い間問題なく動作していた Web サービスをたくさん持っていますが、今ではサーバー担当者が、これまでに見たことのないエラーが発生したと言いました。見るべきアイデア/ものはありますか?

Log Name:      Application
Source:        ASP.NET 4.0.30319.0
Date:          6/12/2012 6:57:03 AM
Event ID:      1309
Task Category: Web Event
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      Server
Description:
Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 6/12/2012 6:57:03 AM 
Event time (UTC): 6/12/2012 1:57:03 PM 
Event ID: 691c9c8fabeb4701aa31488d6db060ce 
Event sequence: 123578 
Event occurrence: 1 
Event detail code: 0 

Application information: 
Application domain: domain
Trust level: Full 
Application Virtual Path: / 
Application Path: D:\Sites\webroot\ 
Machine name: Server

Process information: 
Process ID: 2456 
Process name: w3wp.exe 
Account name: IIS APPPOOL\AppPool_AID1651 

Exception information: 
Exception type: InvalidOperationException 
Exception message: Request format is unrecognized for URL unexpectedly ending in '/$metadata'.
at System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response)
at System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath)
at System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated)
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

ありがとう!

4

2 に答える 2

-1

私の Web サービスもログに記録しEvent Code 3005ます。$.ajax()2 つの http 要求を生成するJQuery を使用して Web サービスを呼び出しています。最初のリクエストは「OPTIONS」リクエストで、500 Internal Server Errorメッセージが返されます。これは、でログに記録されているものEvent Code 3005です。2 番目の要求は「POST」要求で、Web サービスからの正しい応答で満たされます。

「OPTIONS」リクエストがエラーとしてログに記録されないようにする試みは成功していませんが、とにかくこの情報が役立つことを願っています.

私のエラー ログも、次のフレーズであなたのものと一致します。

例外メッセージ: URL の末尾が予期せず … の要求形式が認識されません</p>

于 2012-08-17T18:13:53.713 に答える