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!
Hi jugeickjr,
Thank you for your reply.
Please ensure that you are using the "APCTA" assemblies in your project. By default they are located in:
"C:\Program Files (x86)\Infragistics\NetAdvantage 2011.2\ASP.NET\CLR4.0\APTCA"
You may find useful information regarding this scenario at:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=Web_Deploying_an_Application_to_a_Partial_Trust_Environment.html
Feel free to contact me if you have any questions.
Hello, Petar!
I followed your instructions and I've put the .dll files from APTCA folder and I changed my web.config file, but the problem persists.
Below, my web.config:
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<configSections>
<section name="infragistics.web" requirePermission="false" type="System.Configuration.SingleTagSectionHandler,System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<infragistics.web styleSetName="Office2007Silver" styleSetPath="~/ig_res" imageDirectory="~/ig_ui/themes/" javaScriptDirectory="~/ig_ui/js/"/>
<infragistics.web styleSetName="Default" styleSetPath="~/ig_res" imageDirectory="~/ig_ui/themes/" javaScriptDirectory="~/ig_ui/js/"/>
<appSettings>
<add key="bufferSize" value="16384" />
<add key="allowedMIMEType" value="*" />
<add key="maxFileSizeLimit" value="100000000" />
<add key="fileUploadPath" value="~/uploads/briefing" />
</appSettings>
<connectionStrings>
<add name="strConexao" connectionString="Data Source=dbsq0004.whservidor.com;Initial Catalog=****;Persist Security Info=True;User ID=***;Password=****" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
<httpModules>
<add name="IGUploadModule" type="Infragistics.Web.UI.EditorControls.UploadModule" />
</httpModules>
<httpHandlers>
<!--<add path="IGUploadStatusHandler.ashx" verb="GET" type="Infragistics.Web.UI.EditorControls.UploadStatusHandler" validate="true" />
<add path="IGUploadStatusHandler.ashx" verb="*" type="Infragistics.Web.UI.EditorControls.UploadStatusHandler" />
</httpHandlers>
<compilation debug="false" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Data.Services.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.Services.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="Infragistics4.WebUI.WebCombo.v11.1, Version=11.1.20111.1006, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB" />
<add assembly="Infragistics4.WebUI.UltraWebGrid.v11.1, Version=11.1.20111.1006, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB" />
<add assembly="Infragistics4.WebUI.WebDataInput.v11.1, Version=11.1.20111.1006, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB" />
<add assembly="Infragistics4.Web.v11.1, Version=11.1.20111.1006, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB" />
<add assembly="Infragistics4.WebUI.Documents.Reports.v11.1, Version=11.1.20111.1006, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB" />
<add assembly="Infragistics4.WebUI.Documents.Excel.v11.1, Version=11.1.20111.1006, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB" />
<add assembly="Infragistics4.WebUI.UltraWebTab.v11.1, Version=11.1.20111.1006, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB" />
<add assembly="Infragistics4.WebUI.Shared.v11.1, Version=11.1.20111.1006, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB" />
<add assembly="Infragistics4.Web.jQuery.v11.1, Version=11.1.20111.1006, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB" />
<add assembly="Infragistics4.WebUI.WebSchedule.v11.1, Version=11.1.20111.1006, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB" />
<add assembly="ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="FastReport.Web, Version=1.7.33.0, Culture=neutral, PublicKeyToken=DB7E5CE63278458C" />
<!--<add assembly="FastReport, Version=1.7.33.0, Culture=neutral, PublicKeyToken=DB7E5CE63278458C" /> -->
</assemblies>
</compilation>
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
<authentication mode="Forms">
<forms name=".ASPXAUTH" protection="All" timeout="6000" loginUrl="./_system/Login.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
<customErrors mode="Off"/>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
<controls>
<add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit" />
</controls>
</pages>
</system.web>
<location path="css">
<allow users="*" />
</location>
<location path="img">
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.vl" >
<dependentAssembly>
<assemblyIdentity name="Infragistics4.Web.v11.1" publicKeyToken="7dd5c3163f2cd0cb "/>
<bindingRedirect oldVersion="11.1.20111.1006" newVersion="11.1.20111.1006" />
</dependentAssembly>
<assemblyIdentity name="Infragistics4.WebUI.Shared.v11.1" publicKeyToken="7dd5c3163f2cd0cb "/>
<assemblyIdentity name="Infragistics4.WebUI.WebCombo.v11.1" publicKeyToken="7dd5c3163f2cd0cb "/>
<assemblyIdentity name="Infragistics4.WebUI.UltraWebGrid.v11.1" publicKeyToken="7dd5c3163f2cd0cb "/>
<assemblyIdentity name="Infragistics4.WebUI.WebDataInput.v11.1" publicKeyToken="7dd5c3163f2cd0cb "/>
<assemblyIdentity name="Infragistics4.WebUI.Documents.Reports.v11.1" publicKeyToken="7dd5c3163f2cd0cb "/>
<assemblyIdentity name="Infragistics4.WebUI.Documents.Excel.v11.1" publicKeyToken="7dd5c3163f2cd0cb "/>
<assemblyIdentity name="Infragistics4.WebUI.UltraWebTab.v11.1" publicKeyToken="7dd5c3163f2cd0cb "/>
<assemblyIdentity name="Infragistics4.Web.jQuery.v11.1" publicKeyToken="7dd5c3163f2cd0cb "/>
<assemblyIdentity name="Infragistics4.WebUI.WebSchedule.v11.1" publicKeyToken="7dd5c3163f2cd0cb "/>
</assemblyBinding >
</runtime>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<add name="IGUploadModule" type="Infragistics.Web.UI.EditorControls.UploadModule"
preCondition="managedHandler" />
</modules>
<handlers>
<add name="IGUploadStatusHandler" path="IGUploadStatusHandler.ashx" verb="*"
type="Infragistics.Web.UI.EditorControls.UploadStatusHandler" preCondition="integratedMode" />
</handlers>
</system.webServer>
</configuration>
I appreciate your attention and hope you help me to solve this.
Best regards!
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
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.