+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Error when trying to edit Generic Content

Error when trying to edit Generic Content

6 posts, 0 answered
  1. warfee
    warfee avatar
    27 posts
    Registered:
    10 Aug 2007
    16 Aug 2009
    Link to this post

    Server Error in '/' Application.

    Cannot convert from string.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.InvalidOperationException: Cannot convert from string.

    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: 

    [InvalidOperationException: Cannot convert from string.]   Telerik.Cms.Web.UI.Templates.Attribute..ctor(String name, String value, ObjectBuilder builder, PropertyDescriptorCollection properties) +873   Telerik.Cms.Web.UI.Templates.PropertiesParser.CreatePropertyBuilder(HtmlChunk chunk, PropertyDescriptor propDescr) +194   Telerik.Cms.Web.UI.Templates.PropertiesParser.ParseOpenTag(HtmlChunk chunk) +160   Telerik.Cms.Web.UI.Templates.TemplateParser.ParseChunk(HtmlChunk chunk) +43   Telerik.Cms.Web.UI.Templates.TemplateParser.Parse() +117   Telerik.Cms.Web.UI.Templates.ObjectBuilder.ParseHtml(TemplateParser parser) +14   Telerik.Cms.Web.UI.Templates.PropertiesBuilder.ParseHtml(String html) +40   Telerik.Cms.Web.UI.Templates.TemplateParser.FinalizeCurrentBuilder() +154   Telerik.Cms.Web.UI.Templates.TemplateParser.ParseCloseTag(HtmlChunk chunk) +61   Telerik.Cms.Web.UI.Templates.TemplateParser.ParseChunk(HtmlChunk chunk) +219   Telerik.Cms.Web.UI.Templates.TemplateParser.Parse() +117   Telerik.Cms.Web.UI.Templates.ObjectBuilder.ParseHtml(TemplateParser parser) +14   Telerik.Cms.Web.UI.Templates.ObjectBuilder.ParseHtml(String html) +86   Telerik.Framework.Web.ControlUtils.GetTemplate(String virtualPath, String resourceFileName, Type assemblyInfo, Type localizationAssemblyInfo) +616   Telerik.Framework.Web.ControlUtils.GetTemplate(String virtualPath, String resourceFileName, Type assemblyInfo, Type localizationAssemblyInfo, Type templateMapType, String additionalTemplateKey) +327   Telerik.Cms.Web.UI.ViewModeControl`1.CreateLayoutTemplate(Type assemblyInfo, Type localizationAssemblyInfo) +104   Telerik.Cms.Web.UI.ViewModeControl`1.get_LayoutTemplate() +25   Telerik.Cms.Web.UI.ViewModeControl`1.get_Container() +39   Telerik.Cms.Web.UI.ViewModeControl`1.CreateChildControls() +44   System.Web.UI.Control.EnsureChildControls() +87   System.Web.UI.Control.PreRenderRecursiveInternal() +44   System.Web.UI.Control.PreRenderRecursiveInternal() +171   System.Web.UI.Control.PreRenderRecursiveInternal() +171   System.Web.UI.Control.PreRenderRecursiveInternal() +171   System.Web.UI.Control.PreRenderRecursiveInternal() +171   System.Web.UI.Control.PreRenderRecursiveInternal() +171   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    16 Aug 2009
    Link to this post
    Hi warfee,

    Could you provide us with steps to reproduce the error you are getting?

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. warfee
    warfee avatar
    27 posts
    Registered:
    10 Aug 2007
    22 Sep 2009
    Link to this post
    I am currently hosting with ServerIntellect.com, seems Sitefinity doesn't work really well with their shared hosting solutions.

    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 for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 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 for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]   System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +150   System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +100   System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) +284   System.Security.PermissionSetTriple.CheckSetDemand(PermissionSet demandSet, PermissionSet& alteredDemandset, RuntimeMethodHandle rmh) +69   System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandle rmh) +150   System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) +30   System.Threading.CompressedStack.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) +40   System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant, CompressedStack securityContext) +123   System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant) +54

  4. warfee
    warfee avatar
    27 posts
    Registered:
    10 Aug 2007
    22 Sep 2009
    Link to this post
    This happens when trying to access most pages in the administration area. Can you provide with why this is happening and what can I instruct my hosting service to do, so that Sitefinity works without a problem.

    thank you
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    23 Sep 2009
    Link to this post
    Hello warfee,

    Thank you for using our services.

    The problem is that - your hosting supports medium trust but your project is not configured to run in medium trust. Another possible reason is that - your project is configured to run under medium trust, but your hosting provider security policy is not the default one and it makes conflicts with Sitefinity.

    You can gather more information about the trust level in ASP.NET and ASP.NET Policy Permissions and Trust Level from MSDN

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. warfee
    warfee avatar
    27 posts
    Registered:
    10 Aug 2007
    28 Sep 2009
    Link to this post
    Thank you, they have sent my account to full trust, that has solved the problem.
Register for webinar
6 posts, 0 answered