Copied to clipboard

Flag this post as spam?

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


  • Jacob 41 posts 90 karma points
    Jan 22, 2014 @ 17:24
    Jacob
    0

    Umbraco.VideoPicker package installation errors

    Hello,

     

    The installation guide for the Umbraco Video Picker lists the following procedures to create a custom data type for videos or other media:

    Install and setup: 

     

    1 - Install the package. 

    2 - Create a new Data Type (Developer -> Data Types), select "umbraco usercontrol wrapper" as property editor; save the data type. 

    3 - On the settings section of the data type created, select the user control: "~/usercontrols/Umbraco.VideoPicker/VideoPickerDatatype.ascx", save the data type. 

    4 - On the doc type of your preference add a new property using the Type created on the step 3. (If you wish to install the example package, the macro there look for a property called video.) 

    5 - Checks your documents based on the doc type choosen on step 4, you will see video picker component.

     

     

    On Step 2, I'm finding that the "umbraco usercontrol wrapper" property editor is not available from the dropdown list of choices.  This completely prevents the ability to utilize this package.  It makes logical sense that this assembly or reference would be included in the package installation, but apparently it isn't.  I'd suggest updating the documentation for this reason.  

    How can I enable umbraco usercontrol wrapper as a property editor for customer data types?

     

    Jacob Mills

  • Elias 25 posts 108 karma points
    Jan 22, 2014 @ 20:52
    Elias
    0

    Hi jacob, the: "umbraco usercontrol wrapper" is an aviable feature out of the box on umbraco installations, that allows render *.ascx files directly on the back end, the package only make use of them.

    What is your umbraco version ?

    Regards,

    Elias


  • Jacob 41 posts 90 karma points
    Jan 22, 2014 @ 20:53
    Jacob
    0

    Umbraco version 7.   I seem to be running into several other issues related to Umbraco 7.  Is this version considered stable?

  • Elias 25 posts 108 karma points
    Jan 22, 2014 @ 21:03
    Elias
    0

    Jacob, Umbraco 7 uses a totally different architecture in the back end, at this moment this package is not compatible with v7.

    My advice: if you are looking something to run on a production environment: use the last stable v6 release, since v7 is a fresh release untill they have some days/months of use.

    Regards,

    Elias

  • Jacob 41 posts 90 karma points
    Jan 22, 2014 @ 21:08
    Jacob
    0

    Your advice is much appreciated.


    Cheers,

    Jacob

  • Desirée 15 posts 35 karma points
    Jan 29, 2014 @ 10:27
    Desirée
    0

    Hi.

    umbraco version 6.1.6

    when i create  a new content:

    Server Error in '/' Application.


    Unable to cast object of type 'ASP.ImageGenInstaller' to type 'umbraco.editorControls.userControlGrapper.IUsercontrolDataEditor'.

    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.InvalidCastException: Unable to cast object of type 'ASP.ImageGenInstaller' to type 'umbraco.editorControls.userControlGrapper.IUsercontrolDataEditor'.

    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: 

    [InvalidCastException: Unable to cast object of type 'ASP.ImageGenInstaller' to type 'umbraco.editorControls.userControlGrapper.IUsercontrolDataEditor'.]
       umbraco.editorControls.userControlGrapper.usercontrolDataEditor.OnInit(EventArgs e) +822
       System.Web.UI.Control.InitRecursive(Control namingContainer) +186
       System.Web.UI.Control.InitRecursive(Control namingContainer) +314
       System.Web.UI.Control.InitRecursive(Control namingContainer) +314
       System.Web.UI.Control.InitRecursive(Control namingContainer) +314
       System.Web.UI.Control.InitRecursive(Control namingContainer) +314
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +189
       umbraco.controls.ContentControl.AddControlNew(Property p, TabPage tp, String cap) +3853
       umbraco.controls.ContentControl.LoadPropertyTypes(IContentTypeComposition contentType, TabPage tabPage, Hashtable inTab, Int32 tabId, String tabCaption) +360
       umbraco.controls.ContentControl.CreateChildControls() +710
       System.Web.UI.Control.EnsureChildControls() +189
       umbraco.controls.ContentControl.OnInit(EventArgs e) +51
       System.Web.UI.Control.InitRecursive(Control namingContainer) +186
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +189
       umbraco.cms.presentation.editContent.OnInit(EventArgs e) +1231
       System.Web.UI.Control.InitRecursive(Control namingContainer) +186
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2098
    



    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408

     

    Can you help me?

    Thanks

  • Elias 25 posts 108 karma points
    Jan 29, 2014 @ 13:55
    Elias
    0

    Hi Desiree,

    Based on the error description it seems you are trying to use as Editor Interface a class not intended to do that ("ASP.ImageGenInstaller")

    Please check the next things:

    1 - If you have modified any other data types; besides the installation of the package, because that error is related to another package "ImageGen" http://our.umbraco.org/projects/website-utilities/imagegen

    2 - In the step 3 of installation , you selected: "VideoPickerDatatype.ascx" and not any other like "ImageGenInstaller.ascx"

    3 - Review the doc type properties of the content that is causing this Exception.

    4 - If none of the above works, go to doc type properties of the related content and remove the property that uses VideoPicker, save, restart IIS. Check again for errors if there is any errors have another problem. Alternatively do the same with the property that holds ImageGen.

    Regards,

    Elias

  • Desirée 15 posts 35 karma points
    Jan 29, 2014 @ 14:05
    Desirée
    0

    thanks.

    On the settings section of the data type created, i can select only usercontrol ImageGenInstaller.ascx:

  • Elias 25 posts 108 karma points
    Jan 29, 2014 @ 16:45
    Elias
    0

    Ok, something on the installation of VideoPicker goes wrong, you must have a VideoPickerDatatype.ascx in that list, please check the existence of VideoPickerDatatype.ascx on [Umbraco Root]/usercontrols/Umbraco.VideoPicker/VideoPickerDatatype.ascx.

    If the folder: [Umbraco Root]/usercontrols/Umbraco.VideoPicker or the file isn't there, try to re-install the package, check the umbraco log for errors. Files are placed in that location when you install VideoPicker. Also verify the permission settings on the file system, in order to allow the app pool write files under Umbraco Root Folder.

    As work around you can paste the file by your own, but will be nice to know why the package setup are not finishing the whole process.

    BR,

    Elias

Please Sign in or register to post replies

Write your reply to:

Draft