• Welcome to Web Hosting Community Forum for Webmasters - Web hosting Forum.
 

Recommended Providers


Jetpack
Fully Managed WordPress Hosting
lc_banner_leadgen_3
Fully Managed WordPress Hosting

WordPress Theme

WordPress Hosting Divi WordPress Theme
WPZOOM

Forum Membership

Forum Membership

assembly does not allow partially trusted callers

Started by scott, January 19, 2007, 10:22:11 AM


WordPress Hosting


scott

Hello,

I have developed an application using Asp.Net and MySQL. It is working fine in my local system but when I have uploaded it to my web site but it is giving me below error..

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

I am using MySql.Data.dll.

Any help would be appreciated.

Thanks,

Scott

Kailash

#1
Hi Scott,

Welcome to the forum!

It seems that you have developed your application in full trust level and your hosting provider doesn't allow full trust level on their server. You have to either modify your application to run under the trust level which is set on the server (Most of the hosting providers set the medium trust level on the server for security reasons) or you have to contact your hosting provider to change the trust level on the server.

If you modify your application then you have to recompile your DLL file 'MySql.Data.dll' and have to upload it again.

Thanks,

scott

#2
Thanks Kailash,

It fixed... :D

Scott