We have a simple datagrid in an older solution, but when a row is updated onthing happens. In the log it throws the following :
2015-04-28 09:17:24,700 [7] WARN uComponents.DataTypes.DataTypeGrid.DataType - [Thread 12] [User 0] [Page 4957] DTG: ViewState did not contain data.
2015-04-28 09:17:24,788 [7] ERROR uComponents.DataTypes.DataTypeGrid.DataType - [Thread 12] [User 0] [Page 4957] Unable to load types for assembly 'Eksponent.CropUp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at uComponents.DataTypes.DataTypeGrid.ServiceLocators.DataTypeHandlerServiceLocator.GetDataTypeFactories()
2015-04-28 09:17:41,341 [7] WARN uComponents.DataTypes.DataTypeGrid.DataType - [Thread 5] [User 0] [Page 4957] DTG: ViewState did not contain data.
2015-04-28 09:17:46,026 [7] WARN uComponents.DataTypes.DataTypeGrid.DataType - [Thread 13] [User 0] [Page 4957] DTG: ViewState did not contain data.
I dont know why its failing and referencing the eksponent.cropup, and dont know if could do anything for it.
Anyone got a tip ? We can easily add new rows and delete old ones.
Hmmm... unless Eksponent.CropUp.dll has an assembly dependency on something that isn't in your /bin folder? But I would have expected that to be in the error messaged.
Also looking at the "ViewState did not contain data" error... I've no idea what that means either (sorry).
Could not load file or assembly 'AForge.Imaging, Version=2.2.4.0, Culture=neutral, PublicKeyToken=ba8ddea9676ca48b' or one of its dependencies. The system cannot find the file specified.
Could not load file or assembly 'AForge.Imaging, Version=2.2.4.0, Culture=neutral, PublicKeyToken=ba8ddea9676ca48b' or one of its dependencies. The system cannot find the file specified.
So i added that and all its dependencies so that bug went away and tried again. Now it throws just this :
2015-07-27 15:39:57,961 [24] WARN uComponents.DataTypes.DataTypeGrid.DataType - [Thread 20] [User 0] [Page 4957] DTG: ViewState did not contain data.
datagrid ucomp 6 and umb 6.1.6 wont update row
Hey there:)
We have a simple datagrid in an older solution, but when a row is updated onthing happens. In the log it throws the following :
I dont know why its failing and referencing the eksponent.cropup, and dont know if could do anything for it.
Anyone got a tip ? We can easily add new rows and delete old ones.
Hi Rasmus,
I'll try to help if I can - no promises though, as I didn't develop the DataTypeGrid editor :-)
Sorry for any silly questions.
Is CropUp being used within your DataTypeGrid?
Is the
Eksponent.CropUp.dll
in your /bin folder? If it's not, then another assembly is referencing it, (it's not uComponents).If I think of anything else, I'll let you know.
Cheers,
- Lee
Ey man !
You rock for just trying :)
Actually i dont use the cropper in my datatype og even on the doctype :)
the type looks like this :
jep i have both the eksponent.cropup and eksponent.cropup.umbracoiv bins
Hmmm... unless
Eksponent.CropUp.dll
has an assembly dependency on something that isn't in your /bin folder? But I would have expected that to be in the error messaged.Also looking at the "ViewState did not contain data" error... I've no idea what that means either (sorry).
Maybe worth pinging @azzlack on twitter?
Cheers,
- Lee
I believe the error happens when DTG is doing a
assembly.GetTypes()
call.Try running the following code somewhere in your solution:
It should throw an exception, only now you should have more details.
Hey Ove
Thanks for getting back to me :)
Im getting this error when im doing your lines :
[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.] System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0 System.Reflection.RuntimeModule.GetTypes() +9 System.Reflection.Assembly.GetTypes() +70 ASP.PageViewsservicecenterDataarkMXmlLsningcshtml.Execute() in System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +198 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +125 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78 System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +254 System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +107 StackExchange.Profiling.MVCHelpers.WrappedView.Render(ViewContext viewContext, TextWriter writer) in c:\Code\github\SamSaffron\MiniProfiler\StackExchange.Profiling\MVCHelpers\WrappedView.cs:58 System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +291 System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13 System.Web.Mvc.<>cDisplayClass1a.17() +23 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func
1 continuation) +245 System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +22 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func
1 continuation) +245 System.Web.Mvc.<>cDisplayClass1c.19() +22 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +176 System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +324 System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__19() +23 System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +16 System.Web.Mvc.Async.<>c__DisplayClass8
1.Could you inspect or print out the LoaderExceptions property?
Hey Ove
Now i found out this :
So i added that and all its dependencies so that bug went away and tried again. Now it throws just this :
Hmm. Could be a bug that affects version 6.1.6 of Umbraco. I am currently running a similar grid on a 6.2.5 site, and it works properly there.
Which version of uComponents are you running?
Hmm wierd.
It just says Ucomp 6, any newer releases ?
Should look something like this:
If you are upgrading, remember to backup first :-)
completly the same here.
I just remember now that there were some issues with Umbraco 6.1 and DTG. Is it out of the question to update the site to 6.2?
Arh okay :)
Well i just asked the customer if its something they want.
Thx for the help so far will update if/when i get there :)
Hey Ove :)
Now i have updated, to 625 and im still seeing the same bug sadly :/
is working on a reply...