We have developed asp.net project in VS2005, framework 2.0.50727 using C#, in that we are using a third party library(Map Quest) to display the Map. When we are calling a function from dll, we are getting the following error (configuration error) .

Message: That assembly does not allow partially trusted callers.
Stack trace: at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at ViewShiftDetails.GenerateMap() at ViewShiftDetails.Initialize() at ViewShiftDetails.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

We have hosted this application in a web server, which contains many websites and it is not possible to change the trust level in that web server.

We need to know any alternative solution for the above configuration error.

Note:This application is working fine in development system.

Check with (Map Quest) technical support, they may have solution regarding this, or (Map Quest) has minimal prerequisites, your web server must meet.

This article has been dead for over six months. Start a new discussion instead.