DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Errors after upgrade

Sort:
You are not authorized to post a reply.
Page 1 of 212 > >>





New Around Here





    Hi, after upgrading I have several errors - I've tried from both 9.1.x to 9.2 and now to latest 9.3.x
    Yes i did unblock the downloaded zip and cleared cache locally - and cleared the .net assembly cache on the server.

    1. Some date casting in regards to reading settings is not working anymore - might be the reason for all the following errors?

    Could not cast 07.11.2017 08.44.37 to property CreatedOn of type System.DateTime

    2. Cannot add extensions anymore - gives error message below.

    3. Reports module gives an exception (upgraded to the latest from git before upgrading - 6.1)

    Anyone experienced the same and resolved it?

    //A

     

    NR1

     

    AbsoluteURL

    :/Default.aspx

    DefaultDataProviderotNetNuke.Data.SqlDataProvider, DotNetNuke

    ExceptionGUID:124ef57b-e6d4-44c2-81c9-cae388219494

    AssemblyVersion:

    PortalId:-1

    UserId:-1

    TabId:-1

    RawUrl:

    Referrer:

    UserAgent:

    ExceptionHash:OGA9FoDx0ZP8ykyqGnJ5uu6Q4tA=

    Message:Could not cast 07.11.2017 08.44.37 to property CreatedOn of type System.DateTime

    StackTrace:

       at DotNetNuke.Entities.Modules.Settings.SettingsRepository`1.DeserializeProperty(T settings, PropertyInfo property, ParameterAttributeBase attribute, String propertyValue)
       at DotNetNuke.Entities.Modules.Settings.SettingsRepository`1.<>c__DisplayClass13_0.b__0(ParameterMapping mapping)
       at DotNetNuke.Collections.CollectionExtensions.ForEach[TType](IEnumerable`1 source, Action`1 action)
       at DotNetNuke.Entities.Modules.Settings.SettingsRepository`1.Load(CacheItemArgs args)
       at DotNetNuke.Common.Utilities.DataCache.GetCachedDataFromRuntimeCache(CacheItemArgs cacheItemArgs, CacheItemExpiredCallback cacheItemExpired)

     

    InnerMessage:String was not recognized as a valid DateTime.

    InnerStackTrace:

       at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
       at System.Convert.ToDateTime(String value, IFormatProvider provider)
       at System.String.System.IConvertible.ToDateTime(IFormatProvider provider)
       at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
       at DotNetNuke.Entities.Modules.Settings.SettingsRepository`1.DeserializeProperty(T settings, PropertyInfo property, ParameterAttributeBase attribute, String propertyValue)

     

    Source:DotNetNuke

    FileName:

    FileLineNumber:0

    FileColumnNumber:0

     

    NR2

     

    UPLOAD EXTENSION PACKAGE

    To begin installation, upload the package by dragging the file into the field below.

     

    An unknown error has occured. Please check your installation zip file and try again. 
    Common issues with bad installation files:

    • Zip file size is too large, check your IIS settings for max upload file size.
    • Missing resources in the zip file.
    • Invalid files in the package.
    • File extension is not .zip.
    • Check that you are logged in.

       

       

      NR3

       

      AbsoluteURL:/Default.aspx

      DefaultDataProviderotNetNuke.Data.SqlDataProvider, DotNetNuke

      ExceptionGUID:04893a54-26c7-4833-9f2f-e27063834fae

      AssemblyVersion:9.2.0

      PortalId:0

      UserId:3

      TabId:20

      RawUrl:/

      Referrer:

      UserAgent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299

      ExceptionHash:bbi+o6vSsOKfqQdvavvWuxPfCzw=

      Message:Object reference not set to an instance of an object.

      StackTrace:

      
       

       

      InnerMessage:Object reference not set to an instance of an object.

      InnerStackTrace:

         at DotNetNuke.Modules.Reports.ReportsController.GetReport(ModuleInfo ModuleInfo)
         at DotNetNuke.Modules.Reports.ViewReports.Page_Load(Object sender, EventArgs e)
         at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
         at System.Web.UI.Control. (EventArgs e)
         at DotNetNuke.Entities.Modules.PortalModuleBase. (EventArgs e)
         at System.Web.UI.Control.LoadRecursive()
         at System.Web.UI.Control.LoadRecursive()
         at System.Web.UI.Control.LoadRecursive()
         at System.Web.UI.Control.LoadRecursive()
         at System.Web.UI.Control.LoadRecursive()
         at System.Web.UI.Control.LoadRecursive()
         at System.Web.UI.Control.LoadRecursive()
         at System.Web.UI.Control.LoadRecursive()
         at System.Web.UI.Control.LoadRecursive()
         at System.Web.UI.Control.LoadRecursive()
         at System.Web.UI.Control.LoadRecursive()
         at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

       

      Source:

      FileName:

      FileLineNumber:0

      FileColumnNumber:0

      Method:

       

       

       

       

       






    Veteran Member





      please make sure, you are running latest version of Reports module from https://github.com/DNNCom...DNN.Reports/releases





      Veteran Member





        As Sebastian suggested... Always upgrade the third-party and custom extensions prior to upgrading. Upgrade any and all that have updates available. Then, upgrade DNN. (Always backup after each step, when possible and practical.)

        As for the other errors, there's not a ton of context, except the unable to upgrade. Do follow with the tips offered in the error message you see in the upgrade/install wizard (provided it still occurs after following the previous advice.) If the file size is not the issue, using EVS could help you isolate any other potential installation issue it might have.

        https://evs.dnnsoftware.com/

        Also, here's a slide deck of our best practices. Feel free to run through it for your specific scenario.

        https://www.slideshare.ne...mple-dnn-summit-2019





        New Around Here





          So, I have the same problem like Audun. Trying to upgrade DNN 7.2.1. to the latest version, DNN 9.8.0. I upgraded Reports module to the latest from Github (6.2.1.), tried first to install it after I upgraded DNN and before, like Will suggested, but the error is still there:

          AbsoluteURL:/Default.aspx

          DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke

          ExceptionGUID:4868b064-74d8-4ffc-9f69-ac540cc2d382

          AssemblyVersion:9.2.0

          PortalId:0

          UserId:1

          TabId:93

          RawUrl:/

          Referrer:/Default.aspx?tabid=93&error=Object+reference+not+set+to+an+instance+of+an+object.&content=0

          UserAgent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36

          ExceptionHash:in/O8WCJa46GUXsW+6mYIjuu6cg=

          Message:Object reference not set to an instance of an object.

          StackTrace:

          InnerMessage:Object reference not set to an instance of an object.

          InnerStackTrace:

          at DotNetNuke.Modules.Reports.ReportsController.GetReport(ModuleInfo ModuleInfo) at DotNetNuke.Modules.Reports.ViewReports.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at DotNetNuke.Entities.Modules.PortalModuleBase.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
          Source:

          FileName:

          FileLineNumber:0

          FileColumnNumber:0

          Method:


          Any suggestions? Tested on DNN 9.2.0. too, but no changes..

           

          It also breaks my whole page with Reports module on it.

           

          Edit: Error prior to the last one is:

          DotNetNuke.Services.Exceptions.Exceptions - System.InvalidCastException: Could not cast 23.12.2020. 15:08:33 to property CreatedOn of type System.DateTime ---> System.FormatException: String was not recognized as a valid DateTime.
             at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
             at System.Convert.ToDateTime(String value, IFormatProvider provider)
             at System.String.System.IConvertible.ToDateTime(IFormatProvider provider)
             at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
             at DotNetNuke.Entities.Modules.Settings.SerializationManager.DeserializeValue(String propertyValue, String serializer, Type destinationType)
             at DotNetNuke.Entities.Modules.Settings.SerializationManager.DotNetNuke.Abstractions.ISerializationManager.DeserializeProperty[T](T myObject, PropertyInfo property, String propertyValue, String serializer)
             --- End of inner exception stack trace ---
             at DotNetNuke.Entities.Modules.Settings.SerializationManager.DotNetNuke.Abstractions.ISerializationManager.DeserializeProperty[T](T myObject, PropertyInfo property, String propertyValue, String serializer)
             at DotNetNuke.Entities.Modules.Settings.SettingsRepository`1.DeserializeProperty(T settings, PropertyInfo property, ParameterAttributeBase attribute, String propertyValue)
             at DotNetNuke.Entities.Modules.Settings.SettingsRepository`1.<>c__DisplayClass16_0.b__0(ParameterMapping mapping)
             at DotNetNuke.Collections.CollectionExtensions.ForEach[TType](IEnumerable`1 source, Action`1 action)
             at DotNetNuke.Entities.Modules.Settings.SettingsRepository`1.Load(CacheItemArgs args)
             at DotNetNuke.Common.Utilities.DataCache.GetCachedDataFromRuntimeCache(CacheItemArgs cacheItemArgs, CacheItemExpiredCallback cacheItemExpired)






          Veteran Member





            Did you follow the suggested upgrade path or did you go directly?
            Joe Craig
            DNN MVP
            Patapsco Research Group





            New Around Here





              I am having the same issue with the DNN Events module. I upgraded the site to DNN 9.8.1 and follows the DNN recommended path. All other modules are working well. I installed the latest Events module through GitHub too.
              I am getting this error and page loading with an error after a few hours. Once I remove the Event module from the page and place it on the same page, then it is working again. But page is giving an error after a few hours.

              Please, can you advise?
              Thank you!





              AbsoluteURL:/Default.aspx

              DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke

              ExceptionGUID:054ea37a-d7ce-4e42-8008-dc40293dced4

              AssemblyVersion:

              PortalId:-1

              UserId:-1

              TabId:-1

              RawUrl:

              Referrer:

              UserAgent:

              ExceptionHash:dquxk6NSXtKQ8XT/SIenywE9obE=

              Message:Could not cast System.Collections.ArrayList to property ModuleLocationIDs of type System.Collections.ArrayList

              StackTrace:

              at DotNetNuke.Entities.Modules.Settings.SerializationManager.DotNetNuke.Abstractions.ISerializationManager.DeserializeProperty[T](T myObject, PropertyInfo property, String propertyValue, String serializer)
              at DotNetNuke.Entities.Modules.Settings.SettingsRepository`1.DeserializeProperty(T settings, PropertyInfo property, ParameterAttributeBase attribute, String propertyValue)
              at DotNetNuke.Entities.Modules.Settings.SettingsRepository`1.<>c__DisplayClass16_0.b__0(ParameterMapping mapping)
              at DotNetNuke.Collections.CollectionExtensions.ForEach[TType](IEnumerable`1 source, Action`1 action)
              at DotNetNuke.Entities.Modules.Settings.SettingsRepository`1.Load(CacheItemArgs args)
              at DotNetNuke.Common.Utilities.DataCache.GetCachedDataFromRuntimeCache(CacheItemArgs cacheItemArgs, CacheItemExpiredCallback cacheItemExpired)
              InnerMessage:Could not cast System.Collections.ArrayList to System.Collections.ArrayList

              InnerStackTrace:

              at DotNetNuke.Entities.Modules.Settings.SerializationManager.DeserializeValue(String propertyValue, String serializer, Type destinationType)
              at DotNetNuke.Entities.Modules.Settings.SerializationManager.DotNetNuke.Abstractions.ISerializationManager.DeserializeProperty[T](T myObject, PropertyInfo property, String propertyValue, String serializer)
              Source:DotNetNuke

              FileName:

              FileLineNumber:0

              FileColumnNumber:0

              Method:

              Server Name: Generic273





              New Around Here





                Well, I tried with directly upgrade and with suggested path and it's the same.

                What I did notice is that when I remove Reports module and add it as a new module, with completly the same settings and SQL query, it works and the page is just as it should be. I have few more Reports modules that are not working if I don't re-add them.

                 

                Edit: debug dll say:

                 

                [ERROR] DotNetNuke.Services.Exceptions.Exceptions - ~/Default.aspx?tabid=120&error=Object+reference+not+set+to+an+instance+of+an+object.&content=0
                System.NullReferenceException: Object reference not set to an instance of an object.
                   at DotNetNuke.Modules.Reports.ReportsController.GetReport(ModuleInfo ModuleInfo) in C:\DDrive\Develop\GitHub\DNN.Reports\Components\ReportsController.cs:line 155
                   at DotNetNuke.Modules.Reports.ViewReports.Page_Load(Object sender, EventArgs e) in C:\DDrive\Develop\GitHub\DNN.Reports\ViewReports.ascx.cs:line 288






                New Around Here





                  Anyone, anything? 

                  I have so many Reports modules on site, it's not that practical to delete every one of them and then add them again..






                  Veteran Member





                    Unfortunately, your error message is not concrete enough to guess the cause of the error.
                    You may compare values of database tables Modules, TabModules, ModuleSettings and TabModuleSettings of old report instances with newly added ones to determine differences. I would focus first on date and time values - maybe they are formatted differently, which may cause the issue, but this is just a guess.





                    New Around Here





                      So, I compared all tables in database from my old website and upgraded where there is some connection with Reports module and it appears that in my old database in dbo.ModuleSettings for SettingName "dnn_Reports_CreatedOn" SettingValue was "23.12.2020. 15:08:33" and in my database after DNN and Reports module upgrade SettingValue should be like "2020-12-23T15:08:33.8300965+01:00". I updated this setting in table for every single one Reports module on my website and there are no errors anymore.
                      You are not authorized to post a reply.
                      Page 1 of 212 > >>

                      These Forums are dedicated to the discussion of DNN Platform.

                      For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

                      1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
                      2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
                      3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
                      4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                      5. No Flaming or Trolling.
                      6. No Profanity, Racism, or Prejudice.
                      7. Site Moderators have the final word on approving / removing a thread or post or comment.
                      8. English language posting only, please.

                      Would you like to help us?

                      Awesome! Simply post in the forums using the link below and we'll get you started.

                      Get Involved