This is a migrated thread and some comments may be shown as answers.

[Solved] System.Security.SecurityException: That assembly does not allow partially trusted callers.

0 Answers 32 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ronald
Top achievements
Rank 1
Ronald asked on 18 Mar 2011, 12:00 PM
Hi everyone,

Currently I am trying to host my application in a host with Medium trust security. I got this exception when trying to access my web,

Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.

Source Error: 

Line 306:    <script type="text/javascript" src="<%= Url.Content("~/Content/cue/js/qg.js") %>"> </script>
Line 307:
Line 308:    <%= Html.Telerik().ScriptRegistrar().jQuery(false) %>
Line 309:    <asp:ContentPlaceHolder ID="ScriptPlaceHolder" runat="server">
Line 310:    </asp:ContentPlaceHolder>

            

I read other forum that you need to add the assembly at the web.config and I did:
      <assemblies>
...
        <add assembly="Telerik.Web.Mvc, Version=2010.2.825.235, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
      </assemblies>

But this issue is still happen to me. Could anyone help me with this?

Thank you,
Best Regards,
Ronald Wisnu Hariyanto
Tags
General Discussions
Asked by
Ronald
Top achievements
Rank 1
Share this question
or