Hello, guys!
My host is running into a medium trust level (shared) and some components (as WebDataGrid) are working normally.
I'm having a problem with both components in the subject. When I try to load the WebDialogWindow (i.e.) I get the message below:
[No relevant source lines]
[SecurityException: Request failed.] Infragistics.Web.UI.LayoutControls.DialogWindowHeader.RenderContentsVisible(HtmlTextWriter writer) +0 Infragistics.Web.UI.LayoutControls.DialogWindowHeader.RenderContents(HtmlTextWriter writer) +327 System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 Infragistics.Web.UI.LayoutControls.DialogWindowRenderer.RenderHeader(HtmlTextWriter writer) +503 Infragistics.Web.UI.LayoutControls.DialogWindowRenderer.RenderContents(HtmlTextWriter writer) +1265 Infragistics.Web.UI.Framework.RunBot.HandleRenderContents(HtmlTextWriter writer, RendererBase renderer) +154 Infragistics.Web.UI.Framework.ControlMain.RenderContents(HtmlTextWriter writer) +57 Infragistics.Web.UI.Framework.ControlMain.Render(HtmlTextWriter writer) +15 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8 System.Web.UI.Control.Render(HtmlTextWriter writer) +10 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208 System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +173 System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +31 System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +53 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100 System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8 System.Web.UI.Control.Render(HtmlTextWriter writer) +10 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +208 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8 System.Web.UI.Page.Render(HtmlTextWriter writer) +29 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8431 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253 System.Web.UI.Page.ProcessRequest() +78 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21 System.Web.UI.Page.ProcessRequest(HttpContext context) +49 ASP.default_aspx.ProcessRequest(HttpContext context) in c:\windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\teste\f0bf235e\70281209\App_Web_dt4npnvi.0.cs:0 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
For the WebUpload I get the same Security Exception error (with the stack trace different).
- All assemblies are inside the bin directory.- In my local environment (VS 2010) everything is working fine.- I create a new project just with these components and the error persists.
Please, help!
Thank you in advance!
HI jugeickjr,
Thank you for posting in the community.
I can suggest that you try setting the requirePermission attribute in your Web.config file in order to see if that makes a difference:
<configSections> <section name="infragistics.web" requirePermission="false" type="System.Configuration.SingleTagSectionHandler,System, version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/></configSections>
Please let me know if this helps.
Hello, thank you for the response!
I've tried to do what you suggest, but still get the same error message.
Any other idea?!
Thanks!
Just to tell, I still have that problem...
I'm encountering the same issue with a WebDialogWindow when the solution is uploaded on the ISP's hosting environment. I'm using ASP.Net 2012.2 and I cannot see the ACPTA directory, are these DLL'sd available for 2012.2?
The ISP advises Medium Trust is the maximum available.
Please advise.
Cheers
Steve Wark
Hi jugeickjr,
Please contact me if any further questions arise regarding this matter.
We have discussed again this problem. For now I have some proposals:
1) you can check this link http://forums.asp.net/t/1458917.aspx/1 (for instance you can set compile debug="false"). One proposal is to discuss this with your hosting provider.
2) When you have tried with APTCA assemblies what error did you received? Did you receive the same error? Are you sure you have registered these assemblies and the application is using exactly these assemblies? Also I can propose to use in your web .config this style for old version according to http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=Web_Deploying_an_Application_to_a_Partial_Trust_Environment.html reference.
<
dependentAssembly>
assemblyIdentity name="Infragistics4.Web.v11.1" publicKeyToken="7dd5c3163f2cd0cb "/>
bindingRedirect oldVersion="11.1.20111.1-11.1.20111.1006" newVersion="11.1.20111.1006"/>
</
Thanks,
Miro Hristov
Hello, Miroslav!
Thank you for response.
My host doesn't allow this configuration, returning an error (because the level trust).
I appreciate the ticket opened, and I'm waiting for a solution from you guys!
Best regards,Jr.