Assembly does not allow partially trusted

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
10/2/2009 5:37:31 AM
Gravatar
Total Posts 15
kamran

Assembly does not allow partially trusted

hi got error Assembly does not allow partially trusted callers in medium trust hosting  SQL server 2005 we have mojoportal-2-3-1-3- version. Also we are using a simple DAL for Module .Let me now if this need to be change using the SqlHelper Classes in Mojoportal.

Error Detail

2009-10-01 12:17:40,487 ERROR mojoPortal.Web.mojoBasePage - 58.65.166.188-en-GB - /CashBatch.aspx

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

at ASP.crm_finance_cashbatch_ascx.__BuildControlph()

 

at ASP.crm_finance_cashbatch_ascx.__BuildControl__control2(Control __ctrl) in

at System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container)

at System.Web.UI.UpdatePanel.CreateContents()

at System.Web.UI.UpdatePanel.set_ContentTemplate(ITemplate value)

at ASP.crm_finance_cashbatch_ascx.FrameworkInitialize() in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\bfb0a04b\9402a131\App_Web_nx6rw7kt.0.cs:line 0

at System.Web.UI.UserControl.InitializeAsUserControlInternal()

at System.Web.UI.TemplateControl.LoadControl(IWebObjectFactory objectFactory, VirtualPath virtualPath, Type t, Object[] parameters)

at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)

at System.Web.UI.TemplateControl.LoadControl(String virtualPath)

at mojoPortal.Web.UI.Pages.SiteHome.LoadPage()

at mojoPortal.Web.UI.Pages.SiteHome.Page_Load(Object sender, EventArgs e)

at System.Web.UI.Control.OnLoad(EventArgs e)

at mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)

at System.Web.UI.Control.LoadRecursive()

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

The action that failed was:

LinkDemand

The assembly or AppDomain that failed was:

App_Web_nx6rw7kt, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null

The Zone of the assembly that failed was:

MyComputer

The Url of the assembly that failed was:

file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/bfb0a04b/9402a131/App_Web_nx6rw7kt.DLL

10/2/2009 7:13:23 AM
Gravatar
Total Posts 18439

Re: Assembly does not allow partially trusted

It sounds like you are running in medium trust or partial trust and using an assembly that is not designed for use in that scenario.

Do some searching on your error "assembly does not allow partially trusted callers"

http://msdn.microsoft.com/en-us/library/8skskf63%28VS.71%29.aspx

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.