asp.net 1.0 website that is getting a 'does not allow partially trusted callers' error during sendmail

65 Views Asked by At

I have an old asp.net 1.0 website that throws an error during the sending of email.

The error:

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

Is there a way to fix this without recompiling or changing code?

host doesnt' allow fulltrust.

1

There are 1 best solutions below

2
On

You can try to adjust the security policy to grant the calling assembly Full trust (Admin tools -> .Net Configuration -> Runtime Security policy)

But then you will have the same problem with the assembly you just granted the full trust. Also granting it full trust can potentially create a security hole