Nathan Riley
asked on
Assembly does not allow partially trusted callers
I keep getting this error and no luck fixing:
Exception Details: System.Security.SecurityEx ception: That assembly does not allow partially trusted callers.
Source Error:
Line 1: <%@ Page Language="VB" ContentType="text/html" %>
Line 2: <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrl s" Assembly="DreamweaverCtrls ,version=1 .0.0.0,pub licKeyToke n=836f606e de05d46a,c ulture=neu tral" %>
Line 3: <MM:DataSet
Line 4: runat="Server"
Line 5: id="Procedure1"
Exception Details: System.Security.SecurityEx
Source Error:
Line 1: <%@ Page Language="VB" ContentType="text/html" %>
Line 2: <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrl
Line 3: <MM:DataSet
Line 4: runat="Server"
Line 5: id="Procedure1"
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.
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.