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?
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.
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.
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.
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.
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.
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
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
Umbraco version 7. I seem to be running into several other issues related to Umbraco 7. Is this version considered stable?
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
Your advice is much appreciated.
Cheers,
Jacob
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:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408
Can you help me?
Thanks
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
thanks.
On the settings section of the data type created, i can select only usercontrol ImageGenInstaller.ascx:
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
is working on a reply...