Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kasper Gadensgaard 31 posts 52 karma points
    Apr 30, 2012 @ 13:22
    Kasper Gadensgaard
    0

    PropertyEditor: Could not find resource

    Hi,

    I am new to Umbraco and i am trying to create my first PropertyEditor (for v5). 

    I have followed the tutorial of the RGBAPicker:http://umbraco.com/follow-us/blog-archive/2012/1/26/creating-my-first-v5-package.aspx to create a simple editor with just a text field. 

    In my EditorModel.cs i have added an embedded view:

    [EmbeddedView("Umbraco.PropertyEditor.Views.Editor.cshtml", "Umbraco.PropertyEditor")]

    and i have added the view as an embedded resource. I have compiled the package and added it to the bin folder so i can select it when creating a new datatype. 

    I can also add the property to a new document type, however when i create a new document with the custom property i get the error below. What is the problem here?

    Thanks in advance.

     

    Could not find resource with resourcePath: Umbraco.PropertyEditor.Views.Editor.cshtml

    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.TypeLoadException: Could not find resource with resourcePath: Umbraco.PropertyEditor.Views.Editor.cshtml

    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.

     

  • Kasper Gadensgaard 31 posts 52 karma points
    May 02, 2012 @ 19:02
    Kasper Gadensgaard
    0

    The problem has been solved. I had a mixup in my namespaces. 

    Thanks

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies