Windows 8.1
Visual Studio 2013
.Net Framework 4.5.1
CryptoPro CSP 3.9.8171
Создаю из шаблонов: Visual C# -> Web -> Visual Studio 2012 -> ASP NET MVC 4 Application -> Single Page Application.
Запускаю без внесения изменений, падает со следующей ошибкой:
Ошибка сервера в приложении '/'.
Не удалось загрузить файл или сборку "CryptoPro.Sharpei.MicrosoftIdentityServer.Service, Version=1.0.0.1, Culture=neutral, PublicKeyToken=473b8c5086e795f5" либо одну из их зависимостей. Не удается найти указанный файл.
Описание: Необработанное исключение при выполнении текущего веб-запроса. Изучите трассировку стека для получения дополнительных сведений о данной ошибке и о вызвавшем ее фрагменте кода.
Сведения об исключении: System.IO.FileNotFoundException: Не удалось загрузить файл или сборку "CryptoPro.Sharpei.MicrosoftIdentityServer.Service, Version=1.0.0.1, Culture=neutral, PublicKeyToken=473b8c5086e795f5" либо одну из их зависимостей. Не удается найти указанный файл.
Ошибка источника:
Строка 3: @using (Html.BeginForm("JsonLogin", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { id = "loginForm" }))
Строка 4: {
Строка 5: @Html.AntiForgeryToken()
Строка 6:
Строка 7: <fieldset>
Исходный файл: c:\Projects\TestMVC\MvcApplication1\MvcApplication1\Views\Home\_Login.cshtml Строка: 5
Трассировка стека:
[FileNotFoundException: Не удалось загрузить файл или сборку "CryptoPro.Sharpei.MicrosoftIdentityServer.Service, Version=1.0.0.1, Culture=neutral, PublicKeyToken=473b8c5086e795f5" либо одну из их зависимостей. Не удается найти указанный файл.]
CryptoPro.Sharpei.NetDetours.UnsafeNativeMethods.DoPreStub(IntPtr methodDesc, IntPtr methodTable, IntPtr& ret, MoreErrorInfo& errorInfo, String methodName) +0
CryptoPro.Sharpei.NetDetours.DetourHelper.PreStubWorker(MethodBase methodInfo) +931
[PreStubWorkerException: Невозможно скомпилировать функцию CryptoPro.Sharpei.MicrosoftIdentityModel.CPCertificateWSTrustBinding :: System.ServiceModel.Channels.SecurityBindingElement CreateSecurityBindingElement().]
CryptoPro.Sharpei.NetDetours.DetourHelper.PreStubWorker(MethodBase methodInfo) +1162
CryptoPro.Sharpei.NetDetours.DetourHelper.MakeOneDetourMethod(MethodBase sourceInfo, MethodBase destinationInfo, MethodBase oldInfo) +814
CryptoPro.Sharpei.NetDetours.DetourHelper.MakeOneDetourMethod(Type sourceType, MethodInfo oldMethodInfo) +715
CryptoPro.Sharpei.NetDetours.DetourHelper.MakeOneDetourMethod(Type sourceType, Type destinationType, String methodName) +576
CryptoPro.Sharpei.NetDetours.DetourHelper.MakeOneDetourMethod(String methodName) +69
CryptoPro.Sharpei.MicrosoftIdentityModel.CPCertificateWSTrustBinding.InitDetours() +125
[TargetInvocationException: Адресат вызова создал исключение.]
System.Delegate.BindToMethodInfo(Object target, IRuntimeMethodInfo method, RuntimeType methodType, DelegateBindingFlags flags) +0
System.Delegate.UnsafeCreateDelegate(RuntimeType rtType, RuntimeMethodInfo rtMethod, Object firstArgument, DelegateBindingFlags flags) +32
System.Delegate.CreateDelegateInternal(RuntimeType rtType, RuntimeMethodInfo rtMethod, Object firstArgument, DelegateBindingFlags flags, StackCrawlMark& stackMark) +77
System.Delegate.CreateDelegate(Type type, MethodInfo method, Boolean throwOnBindFailure) +145
System.Delegate.CreateDelegate(Type type, MethodInfo method) +6
System.Web.Helpers.Claims.ClaimsIdentityConverter.AddToList(IList`1 converters, Type claimsIdentityType, Type claimType) +142
System.Web.Helpers.Claims.ClaimsIdentityConverter.GetDefaultConverters() +117
System.Web.Helpers.Claims.ClaimsIdentityConverter..cctor() +77
[TypeInitializationException: Инициализатор типа "System.Web.Helpers.Claims.ClaimsIdentityConverter" выдал исключение.]
System.Web.Helpers.AntiForgery.CreateSingletonAntiForgeryWorker() +147
System.Web.Helpers.AntiForgery..cctor() +29
[TypeInitializationException: Инициализатор типа "System.Web.Helpers.AntiForgery" выдал исключение.]
System.Web.Helpers.AntiForgery.GetHtml() +46
System.Web.Mvc.HtmlHelper.AntiForgeryToken() +20
ASP._Page_Views_Home__Login_cshtml.Execute() in c:\Projects\TestMVC\MvcApplication1\MvcApplication1\Views\Home\_Login.cshtml:5
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +197
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +96
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +88
System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +259
System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +115
System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +276
System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +108
System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName) +31
ASP._Page_Views_Home_Index_cshtml.Execute() in c:\Projects\TestMVC\MvcApplication1\MvcApplication1\Views\Home\Index.cshtml:57
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +197
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +96
System.Web.WebPages.StartPage.RunPage() +17
System.Web.WebPages.StartPage.ExecutePageHierarchy() +62
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +76
System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +259
System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +115
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +294
System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +23
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +242
System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +21
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +175
System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +89
System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +102
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +57
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +43
System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +14
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +57
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +47
System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +25
System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +47
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9688704
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
Информация о версии: Платформа Microsoft .NET Framework, версия:4.0.30319; ASP.NET, версия:4.0.30319.33440