That assembly does not allow partially trusted callers

Posted by: darin on 28 March 2019, 8:44 am EST

    • Post Options:
    • Link

    Posted 28 March 2019, 8:44 am EST

    Has anyone seen this message before?

    I can run the software fine on my local harddrive, but when i copy it to a server and access it via a shared drive i receive this error message.

    Unfortunately, i have not yet been able to figure out what “that” assembly is.

    We just upgraded from AR6 to AR11. One post i have found on google was a required DLL that was missing, but it seems all of the activereports DLL’s are in the same folder as the executable program is.

    Thank in advance

  • Posted 28 March 2019, 9:20 am EST

    I have more information on it.

    we have a program.exe.config file in our pgm folder because it is required to get AR11 to print (because of the json v7 that is required, and we use json v12).

    the issue is because of the line:

    <NetFx40_LegacySecurityPolicy enabled=“true”/>

    For the CORS error.

    but, it seems removing that one iine has everything working.

  • Posted 29 March 2019, 1:50 am EST

    Hello Darin,

    Have you included “BindingRedirect” for “Newtonsoft.Json” in your app.config file?

    
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
    <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
    </dependentAssembly>
    </assemblyBinding>
    
    
    

    Thanks.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels