以为我会试着看看是否有人看过这个或类似的东西,因为我不知道从哪里开始寻找。我有一堆网络服务,这是最好的时间,但现在我的服务器人说他们发出了一个我从未见过的错误。有什么想法/事情要看吗?
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)
谢谢!
答案 0 :(得分:0)
您需要做的就是将以下内容添加到您的web.config
i
答案 1 :(得分:-1)
我的网络服务也会记录Event Code 3005
。我正在使用JQuery $.ajax()
调用我的Web服务,它生成两个http请求。第一个请求是“OPTIONS”请求,并且遇到500 Internal Server Error
消息。这是使用Event Code 3005
记录的那个。第二个请求是“POST”请求,该请求符合Web服务的正确答案。
我试图将“OPTIONS”请求记录为错误,但我没有成功,但我希望这些信息对您有所帮助。
我的错误日志也会与您的短语匹配:
异常消息:对于意外以...结尾的URL无法识别请求格式