Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
Security Exception Infragistics.WebUI.UltraWebTab.TagConverter.ConvertTo
posted

I have my website deployed to shared hosting.  It was working under full trust, but the hosting company is now changing to medium trust.  I uploaded the APTCA .dll's for the same build I used (2008 Vol. 2 Build 1000).

It was then complaining about the public tokens, telling me that I had indeed uploaded the correct APTCA unsigned dlls.

I removed the public tokens from these lines in the web.config:

        <add assembly="Infragistics35.WebUI.Misc.v8.2, Version=8.2.20082.1000, Culture=neutral"/>
        <add assembly="Infragistics35.WebUI.Shared.v8.2, Version=8.2.20082.1000, Culture=neutral"/>
        <add assembly="Infragistics35.WebUI.UltraWebListbar.v8.2, Version=8.2.20082.1000, Culture=neutral"/>
        <add assembly="Infragistics35.WebUI.WebHtmlEditor.v8.2, Version=8.2.20082.1000, Culture=neutral"/>   
        <add assembly="Infragistics35.WebUI.UltraWebTab.v8.2, Version=8.2.20082.1000, Culture=neutral"/>   
 <add assembly="Infragistics35.WebUI.WebDataInput.v8.2, Version=8.2.20082.1000, Culture=neutral"/>  
 <add assembly="Infragistics35.WebUI.UltraWebNavigator.v8.2, Version=8.2.20082.1000, Culture=neutral"/>  
 <add assembly="Infragistics35.WebUI.UltraWebGrid.v8.2, Version=8.2.20082.1000, Culture=neutral"/>  

I added these lines as suggested:

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">     

    <dependentAssembly>
        <assemblyIdentity name="Infragistics35.WebUI.Misc.v8.2" publicKeyToken="7DD5C3163F2CD0CB" />
        <bindingRedirect oldVersion="8.2.20082.1-8.2.20082.1000" newVersion="8.2.20082.1000" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Infragistics35.WebUI.Shared.v8.2" publicKeyToken="7DD5C3163F2CD0CB" />
        <bindingRedirect oldVersion="8.2.20082.1-8.2.20082.1000" newVersion="8.2.20082.1000" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Infragistics35.WebUI.UltraWebListbar.v8.2" publicKeyToken="7DD5C3163F2CD0CB" />
        <bindingRedirect oldVersion="8.2.20082.1-8.2.20082.1000" newVersion="8.2.20082.1000" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Infragistics35.WebUI.WebHtmlEditor.v8.2" publicKeyToken="7DD5C3163F2CD0CB" />
        <bindingRedirect oldVersion="8.2.20082.1-8.2.20082.1000" newVersion="8.2.20082.1000" />
      </dependentAssembly> 
      <dependentAssembly>
        <assemblyIdentity name="Infragistics35.WebUI.UltraWebTab.v8.2" publicKeyToken="7DD5C3163F2CD0CB" />
        <bindingRedirect oldVersion="8.2.20082.1-8.2.20082.1000" newVersion="8.2.20082.1000" />
      </dependentAssembly> 
      <dependentAssembly>
        <assemblyIdentity name="Infragistics35.WebUI.WebDataInput.v8.2" publicKeyToken="7DD5C3163F2CD0CB" />
        <bindingRedirect oldVersion="8.2.20082.1-8.2.20082.1000" newVersion="8.2.20082.1000" />
      </dependentAssembly> 
      <dependentAssembly>
        <assemblyIdentity name="Infragistics35.WebUI.UltraWebNavigator.v8.2" publicKeyToken="7DD5C3163F2CD0CB" />
        <bindingRedirect oldVersion="8.2.20082.1-8.2.20082.1000" newVersion="8.2.20082.1000" />
      </dependentAssembly> 
      <dependentAssembly>
        <assemblyIdentity name="Infragistics35.WebUI.UltraWebGrid.v8.2" publicKeyToken="7DD5C3163F2CD0CB" />
        <bindingRedirect oldVersion="8.2.20082.1-8.2.20082.1000" newVersion="8.2.20082.1000" />
      </dependentAssembly> 
    </assemblyBinding>

The website is working on 95% of the pages, but when I try to access my admin area it is given me the following security exception:

 Security Exception
Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: Request failed.]
   Infragistics.WebUI.UltraWebTab.TagConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType) +0
   System.ComponentModel.TypeConverter.ConvertTo(Object value, Type destinationType) +16
   System.Web.Compilation.CodeDomUtility.GenerateExpressionForValue(PropertyInfo propertyInfo, Object value, Type valueType) +432
   System.Web.UI.SimplePropertyEntry.GetCodeStatement(BaseTemplateCodeDomTreeGenerator generator, CodeExpression ctrlRefExpr) +125
   System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildBuildMethodInternal(ControlBuilder builder, Type ctrlType, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse, CodeStatementCollection statements, Boolean fStandardControl, Boolean fControlFieldDeclared, String deviceFilter, Boolean fControlSkin) +2407
   System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildBuildMethod(ControlBuilder builder, Boolean fTemplate, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse, Boolean fControlSkin) +536
   System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +1187
   System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +1051
   System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +1051
   System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +552
   System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +552
   System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +552
   System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers() +61
   System.Web.Compilation.PageCodeDomTreeGenerator.BuildMiscClassMembers() +12
   System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree() +920
   System.Web.Compilation.BaseCodeDomTreeGenerator.GetCodeDomTree(CodeDomProvider codeDomProvider, StringResourceBuilder stringResourceBuilder, VirtualPath virtualPath) +45
   System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder) +102
   System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider) +99

It looks like the root problem is  Infragistics.WebUI.UltraWebTab.TagConverter.ConvertTo for some reason.  I use a UltraWebTab control on another page that is working fine (I'm not sure about the specific TagConverter.ConvertTo call).

Any ideas?  I'm really in a panic as my hosting company has only given us 10 days notice!!!

Thanks,

Daniel

Parents
  • 45
    Verified Answer
    posted

    I think I figured it out, however, it still looks like a possible bug that needs to be fixed by Infragistics.

     

    I had some Tag = "" properties in the code on the aspx page for my UltraWebTab such as:

              <igtab:Tab Text="Add A Menu Item" Key="addamenuitem" Tag="">
                    <ContentTemplate>

                    </ContentTemplate>

              </igtab:Tab>

     

    When I removed this Tag="" property, the security exception went away!  Such as:

              <igtab:Tab Text="Add A Menu Item" Key="addamenuitem">
                    <ContentTemplate>

                    </ContentTemplate>

              </igtab:Tab>

Reply Children
No Data