Link to home
Start Free TrialLog in
Avatar of Nathan Riley
Nathan RileyFlag for United States of America

asked on

Assembly does not allow partially trusted callers

I keep getting this error and no luck fixing:

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

Source Error:

Line 1:  <%@ Page Language="VB" ContentType="text/html" %>
Line 2:  <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %>
Line 3:  <MM:DataSet
Line 4:  runat="Server"
Line 5:  id="Procedure1"
Avatar of illusio
illusio
Flag of Belgium image

Use the Microsoft .NET Framework configurator to give the assembly that tries to use that locked down assembly full trust.

If that doesn't help: create a WCF wrapper around that assembly and let it run in a Windows Service. Consume the WCF wrapper from the asp.net pages.

Kind regards.
BTW: the page will get compiled to a DLL (class assembly) and is placed in the bin folder. Ditch the dynamic recompile and add a strong name for your asp.net assembly. This will easy up the rights management you are battling with.
Avatar of Nathan Riley

ASKER

I'm very new to this and not sure what you mean.  I know I can't mess with the .net config as I'm hosted through godaddy.com
ASKER CERTIFIED SOLUTION
Avatar of illusio
illusio
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yeah tried that and still not working.  I don't know how to do it without the controls.  Been working on it for a week now.