Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
[InvalidCastException: Specified cast is not valid.]
umbraco.editorControls.datepicker.DateData.ToXMl(XmlDocument d) +149
Umbraco.Core.Models.PropertyExtensions.ToXml(Property property, IDataTypeService dataTypeService) +534
Umbraco.Core.Services.PackagingService.Export(IContentBase contentBase, String nodeName) +1507
Umbraco.Core.Services.PackagingService.Export(IContent content, Boolean deep) +241
Umbraco.Web.Search.ExamineEvents.IndexConent(IContent sender) +76
Umbraco.Core.EnumerableExtensions.ForEach(IEnumerable`1 items, Action`1 action) +148
Umbraco.Core.Services.ContentService.Save(IEnumerable`1 contents, Int32 userId, Boolean raiseEvents) +913
Umbraco.Core.Services.PackagingService.ImportContent(XElement element, Int32 parentId, Int32 userId) +288
umbraco.cms.businesslogic.packager.Installer.InstallBusinessLogic(Int32 packageId, String tempDir) +2460
umbraco.presentation.developer.packages.Installer.ProcessInstall(String currentStep) +716
umbraco.presentation.developer.packages.Installer.Page_Load(Object sender, EventArgs e) +618
umbraco.BasePages.BasePage.OnLoad(EventArgs e) +19
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178
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 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?
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.
I have the same problem, Win XP, 6.1.5.
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.csThe last commit changed :
if (Value != null && Value.ToString() != "")
return d.CreateTextNode(((DateTime) Value).ToString("s"));
taking out the "Value != null"
Looks like you found the issue. Following your link and then on to the current source code on guthub I found this recent modification
, 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 :
Pretty awesome guide to proper MVC coding
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...
Write your reply to:
Image will be uploaded when post is submitted