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.

8 Years
Discussion Span
Last Post by ddanbe

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.