突然间,我开始在我ServiceStack MVC服务应用得到如下错误:给出的关键字并没有发现ServiceStack
{"The given key was not present in the dictionary."}
System.Exception {System.Collections.Generic.KeyNotFoundException}
和堆栈跟踪:
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at ServiceStack.WebHost.Endpoints.Utils.FilterAttributeCache.GetRequestFilterAttributes(Type requestDtoType) in C:\src\ServiceStack\src\ServiceStack\WebHost.Endpoints\Utils\FilterAttributeCache.cs:line 44
at ServiceStack.WebHost.Endpoints.EndpointHost.ApplyRequestFilters(IHttpRequest httpReq, IHttpResponse httpRes, Object requestDto) in C:\src\ServiceStack\src\ServiceStack\WebHost.Endpoints\EndpointHost.cs:line 201
at ServiceStack.WebHost.Endpoints.RestHandler.ProcessRequest(IHttpRequest httpReq, IHttpResponse httpRes, String operationName) in C:\src\ServiceStack\src\ServiceStack\WebHost.Endpoints\RestHandler.cs:line 79
at ServiceStack.WebHost.Endpoints.Support.EndpointHandlerBase.ProcessRequest(HttpContext context) in C:\src\ServiceStack\src\ServiceStack\WebHost.Endpoints\Support\EndpointHandlerBase.cs:line 150
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
我已经不知道错误或错误是什么。我的应用程序正在工作,现在不工作。
任何想法如何解决这个问题?编辑1:当我浏览我的浏览器中的服务网址时,调试器永远不会到达我的服务类和Run
方法。
没有在编程世界突然发生。您在源代码/网站主机中更改了哪些内容? – walther
说真的,我在DTO模型或App_Start \ AppHost.cs或其他方面没有改变任何东西。如果你想知道,我可以说我已经在同一个解决方案中改变了另一个应用程序中的方法。但是没有别的。我使用SVN跟踪更改和版本。 –
您的web.config或web服务器是否已更改? –