Guest
2007-09-21T18:24:20Z
Hi, I'm using a hosting provider to host a website whereby I have intellismsdotnet.dll in my BIN directory.

Each time I load the page that will send the SMS, i get an error:

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

My hosting provider doesnt seem too helpful on what this could be. It works fine on my test machine.

Do you have an ideas what it could be?

Thanks,
Support
2007-09-24T10:08:59Z
The IntelliSMSDotNet.dll will only work when fully trusted. The IntelliSMSDotNet.dll needs to make an Internet connection to our server. Accessing the Internet is only available to fully trusted assemblies.

If were to add the AllowPartiallyTrustedCallersAttribute to IntelliSMSDotNet.dll, the dll would not function probably.

This is because the IntelliSMSDotNet.dll makes use of the following .Net assembles:

System.Net
System.IO
System.Text

These assemblies are intended for use only by fully trusted code. By calling the IntelliSMSDotNet.dll from a partially trusted caller, access to the assemblies above will not be possible.

See link below for more information:
http://msdn2.microsoft.com/en-u...ary/ys8yafkf(VS.71).aspx 
Similar Topics
Users browsing this topic