Я переношу сайт с одного веб-сервера под управлением IIS 7.5 на Windows Server 2008 R2 Стандарт на один IIS 8.5 на Windows Server 2012 R2. В настоящее время я получаю сообщение ниже. Я знаю, что System.Security.Claims должен находиться в файле mscorlib.dll и, похоже, на месте. Я не совсем уверен, что еще полезно в этом вопросе, но если у кого-то есть идеи указать мне в правильном направлении, это было бы здорово! Благодаря!Метод не найден: 'Void System.Security.Claims.ClaimsIdentity..ctor (System.Security.Claims.ClaimsIdentity)'
Server Error in '/profile' Application.
Method not found: 'Void System.Security.Claims.ClaimsIdentity..ctor(System.Security.Claims.ClaimsIdentity)'.
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.MissingMethodException: Method not found: 'Void System.Security.Claims.ClaimsIdentity..ctor(System.Security.Claims.ClaimsIdentity)'.
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:
[MissingMethodException: Method not found: 'Void System.Security.Claims.ClaimsIdentity..ctor(System.Security.Claims.ClaimsIdentity)'.]
System.Web.Security.FormsIdentity..ctor(FormsIdentity identity) +0
System.Web.Security.FormsIdentity.Clone() +35
System.Security.Principal.GenericPrincipal.AddIdentityWithRoles(IIdentity identity, String[] roles) +57
System.Web.Security.FormsAuthenticationModule.OnAuthenticate(FormsAuthenticationEventArgs e) +338
System.Web.Security.FormsAuthenticationModule.OnEnter(Object source, EventArgs eventArgs) +88
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+80
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +161
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1069.1
Объясняя, что делает ваше приложение, описывая конкретный сценарий, и разместить код может быть полезным. Все, что я знаю, это то, что вы «мигрируете» на свой сайт. –
Спасибо. К сожалению, я не очень хорошо знаком с этим. Я понимаю, что здесь хватаюсь за соломинку. Это конкретное сообщение появляется, когда я пытаюсь войти. Я посмотрю, могу ли я выбрать соответствующий код, но его много компилируется, и у меня нет исходного источника. –
Я менее знаком с этим, чем вы, и у меня нет источника. :) –