Copied to clipboard

Flag this post as spam?

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


  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Apr 28, 2015 @ 09:25
    Rasmus Fjord
    0

    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 :

    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.

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Apr 28, 2015 @ 11:16
    Lee Kelleher
    0

    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

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Apr 28, 2015 @ 11:22
    Rasmus Fjord
    0

    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

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Apr 28, 2015 @ 13:17
    Lee Kelleher
    0

    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

  • Ove Andersen 435 posts 1541 karma points c-trib
    Jul 27, 2015 @ 08:22
    Ove Andersen
    0

    I believe the error happens when DTG is doing a assembly.GetTypes() call.

    Try running the following code somewhere in your solution:

    var assemblies = AppDomain.CurrentDomain.GetAssemblies();
    foreach (var assembly in assemblies)
    {
        var types = assembly.GetTypes();
    }
    

    It should throw an exception, only now you should have more details.

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Jul 27, 2015 @ 10:14
    Rasmus Fjord
    0

    Hey Ove

    Thanks for getting back to me :)

    Im getting this error when im doing your lines :

    Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
    

    [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, Func1 continuation) +245 System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +22 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 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__DisplayClass81.

  • Ove Andersen 435 posts 1541 karma points c-trib
    Jul 27, 2015 @ 13:26
    Ove Andersen
    0

    Could you inspect or print out the LoaderExceptions property?

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Jul 27, 2015 @ 13:42
    Rasmus Fjord
    0

    Hey Ove

    Now i found out this :

    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.
    
  • Ove Andersen 435 posts 1541 karma points c-trib
    Jul 27, 2015 @ 13:57
    Ove Andersen
    0

    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?

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Jul 27, 2015 @ 14:00
    Rasmus Fjord
    0

    Hmm wierd.

    It just says Ucomp 6, any newer releases ?

  • Ove Andersen 435 posts 1541 karma points c-trib
    Jul 27, 2015 @ 14:05
    Ove Andersen
    0

    Should look something like this:

    enter image description here

    If you are upgrading, remember to backup first :-)

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Jul 27, 2015 @ 14:09
    Rasmus Fjord
    0

    completly the same here.

  • Ove Andersen 435 posts 1541 karma points c-trib
    Jul 27, 2015 @ 14:12
    Ove Andersen
    0

    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?

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Jul 27, 2015 @ 14:41
    Rasmus Fjord
    0

    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 :)

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Jul 28, 2015 @ 20:00
    Rasmus Fjord
    0

    Hey Ove :)

    Now i have updated, to 625 and im still seeing the same bug sadly :/

    2015-07-28 21:50:23,578 [28] WARN  uComponents.DataTypes.DataTypeGrid.DataType - [Thread 18] [User 0] [Page 4961] DTG: ViewState did not contain data.
    
Please Sign in or register to post replies

Write your reply to:

Draft