Copied to clipboard

Flag this post as spam?

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


  • Djan Blom 99 posts 161 karma points
    Jun 23, 2011 @ 15:22
    Djan Blom
    0

    Error in Media-section when selecting folder - umb 4.5 ugrade

    This solution was recently upgraded from ver. 4.0.3 and up to 4.5.0.

    All the xslt-files are updated as well, and it works swell - allthough, when I go to the media-section and I click a media-folder, I get this Error:

    Server Error in '/' Application.

    Object reference not set to an instance of an object.

    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.NullReferenceException: Object reference not set to an instance of an object.

    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:

    [NullReferenceException: Object reference not set to an instance of an object.]
       umbraco.controls.ContentControl.addControlNew(Property p, TabPage tp, String Caption) +257
       umbraco.controls.ContentControl.CreateChildControls() +939
       System.Web.UI.Control.EnsureChildControls() +102
       umbraco.controls.ContentControl.OnInit(EventArgs e) +92
       System.Web.UI.Control.InitRecursive(Control namingContainer) +140
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +197
       System.Web.UI.ControlCollection.Add(Control child) +79
       umbraco.cms.presentation.editMedia.OnInit(EventArgs e) +688
       System.Web.UI.Control.InitRecursive(Control namingContainer) +140
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480
    

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

      Does anyone know what is causing this - I cant figure it out by myself.

     

    Thanks,
    Djan

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jun 23, 2011 @ 17:46
    Jan Skovgaard
    0

    Hi Djan

    What steps did you take in order to do the upgrade?

    Are you sure that the permissions for network service and iusr are correct on all files and folders?

    /Jan

  • Djan Blom 99 posts 161 karma points
    Jun 24, 2011 @ 11:31
    Djan Blom
    0

    Im having a better developer than myself running a check of the site, so I'll let you know as soon as I know more.

    Though, I also have this problem when I want to create a folder in the media-section - when I click Create - i instantly get this error in the popup:

    Server Error in '/' Application.


    The given key was not present in the dictionary.

    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.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

    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:

    [KeyNotFoundException: The given key was not present in the dictionary.]
       System.Collections.Generic.Dictionary`2.get_Item(TKey key) +2252153
       umbraco.cms.businesslogic.datatype.controls.Factory.GetNewObject(Guid DataEditorId) +60
       umbraco.cms.businesslogic.datatype.controls.Factory.DataType(Guid DataTypeId) +51
       umbraco.cms.businesslogic.datatype.DataTypeDefinition.get_DataType() +94
       umbraco.cms.businesslogic.property.Property.MakeNew(PropertyType pt, Content c, Guid versionId) +596
       umbraco.cms.businesslogic.Content.addProperty(PropertyType pt, Guid versionId) +66
       umbraco.cms.businesslogic.Content.createNewVersion() +427
       umbraco.cms.businesslogic.Content.CreateContent(ContentType ct) +318
       umbraco.cms.businesslogic.media.Media.MakeNew(String Name, MediaType dct, User u, Int32 ParentId) +275
       umbraco.mediaTasks.Save() +150
       umbraco.presentation.create.dialogHandler_temp.Create(String NodeType, Int32 TypeId, Int32 NodeId, String Text) +618
       umbraco.cms.presentation.create.controls.media.sbmt_Click(Object sender, EventArgs e) +207
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
    



    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

  • Marnie Gordon 2 posts 22 karma points
    Aug 10, 2011 @ 19:50
    Marnie Gordon
    0

    Did you find the solution to your problem?  I'm getting this same error this morning, after a couple weeks of development following installation with no problems.

    Thanks!

    --Marnie

  • Djan Blom 99 posts 161 karma points
    Aug 12, 2011 @ 23:17
    Djan Blom
    0

    Hi Marnie,


    Nope, sorry. We havent found an answer to our problem - besides in our case it was apparently version related. It occured when we updated umbraco.. so we went back to the prior version to redeem the error.

     

    /Djan

  • Djan Blom 99 posts 161 karma points
    Aug 12, 2011 @ 23:17
    Djan Blom
    0

    Hi Marnie,


    Nope, sorry. We havent found an answer to our problem - besides in our case it was apparently version related. It occured when we updated umbraco.. so we went back to the prior version to redeem the error.

     

    /Djan

Please Sign in or register to post replies

Write your reply to:

Draft