I'm getting System.InvalidCastException: Specified cast is not valid with SW MVC 2.0 on umbraco 6.1.4
Is there anything I can do, in order to circumvent this problem?
If I refresh the page, the package get installed, but I think something was unfinished.
I suspect you might miss part of the MVC framework on your machine. In my experience the easiest way to ensure that all the dependencies needed to have Umbraco work properly is to make an Umbraco installation from within Webmatrix by installing it from their app gallery.
Otherwise try to download the web platform installer and see if you're missing any MVC framework updates etc.
I had the same problem, I think I resolved it by adjusting the permissions on the umbraco installtion folder (I say 'I think' because I tried various things but they didn't seem to work).
I'm using Windows 7; on the secuirty tab on the umbraco folder there is a group called Users, which my logged on user is a member of, I simply changed the permissions by adding the modify permission - it was previously set to Read & Execute, List and Read. Doing this seemed to resolve the issue and I can now view and edit the content, templates etc.
, which seems to fix the issue, guees it will be in the next release.
My permission fix was a fluke, it only worked once and when I tried reinstalling it this morning I got the same error message!
Well done and thanks - I wouldn't have known where to look to find that source code information but now you have enlightened me I'll be able to use it with future troubleshooting.
His updated post regarding a "better" MVC design, and he has a demo project
Ofcourse, this is if you develop in Visual Studio ... it's helped me so much as I am new to Umbraco and MVC both. The demo project, however, is much less "complete" in feature set ... but a lot more "complete" in design ideology.
I haven''t slept in a while here .. Please excuse the grammar and convoluted articulation :-p
InvalidCastException - install error
Hi.
I'm getting System.InvalidCastException: Specified cast is not valid with SW MVC 2.0 on umbraco 6.1.4
Is there anything I can do, in order to circumvent this problem? If I refresh the page, the package get installed, but I think something was unfinished.
here is the stack. Thanks in advance.
Hi Joao
I suspect you might miss part of the MVC framework on your machine. In my experience the easiest way to ensure that all the dependencies needed to have Umbraco work properly is to make an Umbraco installation from within Webmatrix by installing it from their app gallery.
Otherwise try to download the web platform installer and see if you're missing any MVC framework updates etc.
/Jan
I had the same error and I definitely had all of the MVC framework on my machine.
Hi Jan, thank you for your interest in helping with my problem.
I've always installed Umbraco via WebPI, and MVC is also pushed.
As you can see from the attached screenshot, I think I've got what's needed about MVC.
Do you have any more suggestions?
Thanks,
joao
Hi Joao
I had the same problem, I think I resolved it by adjusting the permissions on the umbraco installtion folder (I say 'I think' because I tried various things but they didn't seem to work).
I'm using Windows 7; on the secuirty tab on the umbraco folder there is a group called Users, which my logged on user is a member of, I simply changed the permissions by adding the modify permission - it was previously set to Read & Execute, List and Read. Doing this seemed to resolve the issue and I can now view and edit the content, templates etc.
I hope this helps you.
Regards,
John
I have the same problem, Win XP, 6.1.5.
Hi Fido
Did you try adjusting the permissions?
Is it possible its a problemw ith Umbraco? I'm getting this same error ... can't figure out why
If you check :
http://umbraco.codeplex.com/SourceControl/latest#src/umbraco.editorControls/datepicker/DateData.cs
The last commit changed :
taking out the "Value != null"
Hi Orich
Looks like you found the issue. Following your link and then on to the current source code on guthub I found this recent modification
https://github.com/umbraco/Umbraco-CMS/blob/6.2.0/src/umbraco.editorControls/datepicker/DateData.cs
, which seems to fix the issue, guees it will be in the next release.
My permission fix was a fluke, it only worked once and when I tried reinstalling it this morning I got the same error message!
Well done and thanks - I wouldn't have known where to look to find that source code information but now you have enlightened me I'll be able to use it with future troubleshooting.
Yes it has to be Umbraco - This excellent MVC starter kit (standard site mvc) has installed happily on this machine in the past below Umbraco 6.1
If you guys are newer to Umbraco and/or MVC like me ... you might want to head here :
#1 http://ndesoft.dk/2013/05/25/how-to-create-a-real-mvc-app-using-umbraco/
Pretty awesome guide to proper MVC coding
#2 http://ndesoft.dk/2013/08/10/real-mvc-app-using-umbraco-revisited/
His updated post regarding a "better" MVC design, and he has a demo project
Ofcourse, this is if you develop in Visual Studio ... it's helped me so much as I am new to Umbraco and MVC both. The demo project, however, is much less "complete" in feature set ... but a lot more "complete" in design ideology.
I haven''t slept in a while here .. Please excuse the grammar and convoluted articulation :-p
is working on a reply...