Home - Forums-.NET - FlyTreeView (ASP.NET) - Security Exception on GoDaddy.com servers!

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Security Exception on GoDaddy.com servers!
Link Posted: 28-Mar-2009 02:11
FlyTrreView raised Security Exception on GoDaddy.com servers:

Server Error in '/demo' Application.
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.]
   NineRays.WebControls.FlyTreeNodePaddingTypeConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType) +0
   System.ComponentModel.TypeConverter.ConvertTo(Object value, Type destinationType) +14
   System.Web.Compilation.CodeDomUtility.GenerateExpressionForValue(PropertyInfo propertyInfo, Object value, Type valueType) +751
   System.Web.UI.SimplePropertyEntry.GetCodeStatement(BaseTemplateCodeDomTreeGenerator generator, CodeExpression ctrlRefExpr) +291
   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) +3120
   System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildBuildMethod(ControlBuilder builder, Boolean fTemplate, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse, Boolean fControlSkin) +703
   System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +1163
   System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +998
   System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +586
   System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) +586
   System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers() +58
   System.Web.Compilation.PageCodeDomTreeGenerator.BuildMiscClassMembers() +16
   System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree() +1318
   System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder) +162
   System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider) +144


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
Link Posted: 29-Mar-2009 22:32
Yes, there is a known issue with Godaddy.
Their medium trust level for .NET does not allow instantiating of InstanceDescriptor. And this does not allow using FlyTreeView there.
Link Posted: 30-Mar-2009 00:53
What steps they did to disallow type converter? Did you try to contact them?
Link Posted: 30-Mar-2009 01:55
No, its a regular .NET medium trusted environment.
Typically ASP.NET hosting providers use fulltrust environment for web applications, but not GoDaddy.
Link Posted: 30-Mar-2009 03:28
Oh wait...the problem appears if we set the trust level to meduim!
I do not think it's a good idea to make a component that does not work in a meduim trust level.
Link Posted: 31-Mar-2009 00:44
Not a good.
I'll see what we can do about it. Again.
Link Posted: 31-Mar-2009 22:56
When do you think that you can resolve this issue?
Link Posted: 01-Apr-2009 01:36
Actually today we already have a fix and working binary of the control.
We had to rewrite some of TypeConverter related things.
And I think we can publish it this weekend after tests.
Link Posted: 01-Apr-2009 02:49
Thank you...we will wait it.
Link Posted: 02-Apr-2009 22:49
Please try the latest version. Let me know