DBurroughs
Guppy
I have built my security configuration to use MySQL for users, roles, etc. I have downloaded the code found at:
http://www.codeproject.com/KB/database/mysqlmembershipprovider.aspx
The whole things works like a charm locally (of course) but not on your server. I get the error below.
Thanks,DAB
Error message below:
Security ExceptionServer Error in '/' Application.
Security Exception
Description: The application attempted to perform an operation not allowed by
the security policy. To grant this application the required permission please
contact your system administrator or change the application's trust level in the
configuration file.
Exception Details: System.Security.SecurityException: That assembly does not
allow partially trusted callers.
Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[SecurityException: That assembly does not allow partially trusted callers.]
Andri.Web.MySqlMembershipProvider.ValidateUser(String username, String password) in MySQLMembershipProvider.cs:1292
System.Web.UI.WebControls.Login.AuthenticateUsingMembershipProvider(AuthenticateEventArgs e) +60
System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +119
System.Web.UI.WebControls.Login.AttemptLogin() +115
System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +101
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37..........
http://www.codeproject.com/KB/database/mysqlmembershipprovider.aspx
The whole things works like a charm locally (of course) but not on your server. I get the error below.
Thanks,DAB
Error message below:
Security ExceptionServer Error in '/' Application.
Security Exception
Description: The application attempted to perform an operation not allowed by
the security policy. To grant this application the required permission please
contact your system administrator or change the application's trust level in the
configuration file.
Exception Details: System.Security.SecurityException: That assembly does not
allow partially trusted callers.
Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[SecurityException: That assembly does not allow partially trusted callers.]
Andri.Web.MySqlMembershipProvider.ValidateUser(String username, String password) in MySQLMembershipProvider.cs:1292
System.Web.UI.WebControls.Login.AuthenticateUsingMembershipProvider(AuthenticateEventArgs e) +60
System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +119
System.Web.UI.WebControls.Login.AttemptLogin() +115
System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +101
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37..........