Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paul Crews 1 post 71 karma points
    Jan 21, 2018 @ 04:13
    Paul Crews
    0

    Umbraco.Core.BindingRedirects.Initialize()

    Trying to publish my site to godaddy and I'm getting the following error.

    Attempt by security transparent method 'Umbraco.Core.BindingRedirects.Initialize()' to access security critical method 'System.AppDomain.add_AssemblyResolve(System.ResolveEventHandler)' failed.

    Assembly 'Umbraco.Core, Version=1.0.6582.14881, Culture=neutral, PublicKeyToken=null' is partially trusted, which causes the CLR to make it entirely security transparent regardless of any transparency annotations in the assembly itself. In order to access security critical code, this assembly must be fully trusted.

    I tried the following: 1. Set the trust level to 'Full' 2. Added [assembly: SecurityRules(SecurityRuleSet.Level1)] to assemblyinfo.cs 3. Added [assembly: AllowPartiallyTrustedCallers] to assemblyinfo.cs 4. added [SecuritySafeCritical] to assemblyinfo.cs 5. ran Install-Package -Id Microsoft.AspNet.WebHelpers I'm clueless how to fix this.

Please Sign in or register to post replies

Write your reply to:

Draft