Hi All,
I've spend the day trying to upgrade from DNN 7.4 to DNN 8.0.4 then DNN 9.1.1. All of them upgraded success with a little issues (had to turn off some schedule tasks to make 8.0.4 to 9.1.1 work)
The issue now is that I tried to upgrade from 9.1.1 to 9.3.2, now recieving these errors which I cant find out how to fix.
If someone has any suggestions or if these errors look familar, any information is handy at this point :) thank you!
[WebVM][Thread:7][ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.IndexOutOfRangeException: TermsTabId at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName) at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) at System.Data.SqlClient.SqlDataReader.get_Item(String name) at DotNetNuke.Entities.Portals.PortalInfo.Fill(IDataReader dr) at DotNetNuke.Common.Utilities.CBO.FillObjectFromReader(Object objObject, IDataReader dr)
[WebVM][Thread:7][FATAL] DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication - System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Portals.PortalInfo.get_HomeDirectoryMapPath() at DotNetNuke.Entities.Portals.PortalSettingsController.LoadPortal(PortalInfo portal, PortalSettings portalSettings) at DotNetNuke.Entities.Portals.PortalSettings.BuildPortalSettings(Int32 tabId, PortalInfo portal) at DotNetNuke.HttpModules.UrlRewrite.BasicUrlRewriter.RewriteUrl(Object sender, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
As the error mentions the url rewriting, I would suggest to verify that the rewriting in the web.config is set to advanced. In my own sites that part looks like:
https://www.screencast.com/t/LTlduFFc5
Hi Tycho, Good idea, we changed that value from "humanonly" to "advanced" and recieved this on page load: 500 Internal Server Error The requested Url does not return any valid content. Administrators Change this message by configuring a specific 404 Error Page or Url for this website. Exception: Object reference not set to an instance of an object. Stack Trace: at DotNetNuke.Entities.Portals.PortalInfo.get_HomeDirectoryMapPath() at DotNetNuke.Entities.Portals.PortalSettingsController.LoadPortal(PortalInfo portal, PortalSettings portalSettings) at DotNetNuke.Entities.Portals.PortalSettings.BuildPortalSettings(Int32 tabId, PortalInfo portal) at DotNetNuke.Entities.Urls.AdvancedUrlRewriter.ProcessRequest(HttpContext context, Uri requestUri, Boolean useFriendlyUrls, UrlAction result, FriendlyUrlSettings settings, Boolean allowSettingsChange, Guid parentTraceId)
Also in .log file
2019-11-07 09:59:53,634 [WebVM][Thread:17][ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.IndexOutOfRangeException: TermsTabId at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName) at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) at System.Data.SqlClient.SqlDataReader.get_Item(String name) at DotNetNuke.Entities.Portals.PortalInfo.Fill(IDataReader dr) at DotNetNuke.Common.Utilities.CBO.FillObjectFromReader(Object objObject, IDataReader dr)
2019-11-07 09:59:53,821 [WebVM][Thread:17][ERROR] DotNetNuke.Services.Exceptions.Exceptions - System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Portals.PortalInfo.get_HomeDirectoryMapPath() at DotNetNuke.Entities.Urls.CacheController.FindFriendlyUrlParmsConfigFilePath(Int32 portalId, Boolean& portalSpecificFound) at DotNetNuke.Entities.Urls.CacheController.GetParameterRedirects(FriendlyUrlSettings settings, Int32 portalId, List`1& messages)
2019-11-07 09:59:53,868 [WebVM][Thread:17][ERROR] DotNetNuke.Entities.Urls.UrlRewriterUtils - System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Entities.Portals.PortalInfo.get_HomeDirectoryMapPath() at DotNetNuke.Entities.Portals.PortalSettingsController.LoadPortal(PortalInfo portal, PortalSettings portalSettings) at DotNetNuke.Entities.Portals.PortalSettings.BuildPortalSettings(Int32 tabId, PortalInfo portal) at DotNetNuke.Entities.Urls.AdvancedUrlRewriter.ProcessRequest(HttpContext context, Uri requestUri, Boolean useFriendlyUrls, UrlAction result, FriendlyUrlSettings settings, Boolean allowSettingsChange, Guid parentTraceId)
Hi,
I'm attempting an upgrade as well from 9.1.1 to 9.3.2. I performed the upgrade as per normal steps. I'm getting the same results. I changed my web.config to the following instead of advanced and I get the following. It's a different error than the one above but still can't load my sites.
and I get the following error.
[NullReferenceException: Object reference not set to an instance of an object.] DotNetNuke.Entities.Portals.PortalInfo.get_HomeDirectoryMapPath() +66 DotNetNuke.Entities.Portals.PortalSettingsController.LoadPortal(PortalInfo portal, PortalSettings portalSettings) +613 DotNetNuke.Entities.Portals.PortalSettings.BuildPortalSettings(Int32 tabId, PortalInfo portal) +88 DotNetNuke.HttpModules.UrlRewrite.BasicUrlRewriter.RewriteUrl(Object sender, EventArgs e) +2031 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +138 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +194 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87
Hi I have recently done an upgrade form 9.1.1 to 9.3.2 which went OK. The jump for 9.3.2 to 9.8 had issues in that I wasn't running the latest ASP.net My process for preparing has been to take copies of the website files and database, Create a brand new instance on DNN 9.1.1 on my PC (using NVQuickSite). Then replace the files and database (update the web.config) to point at the DB on your PC. Now attempt the upgrade. It eleminates any issue you may have on the server. Also if you have a server create another version of 9.1.1 and then attempt to update that see if you still get errors. My version of 9.1.1 only had 3 added modules Reports, AD Login and Datasprings Dynamic Forms. Go for a process of elimination by having parallel "clean" systems. Hope this helps.
Thanks everyone for your replies. I tracked it down to this some sql statements that weren't running. I ran them manually and was able to load my websites. It seems to error when trying to run these types of statements. Should I grant the DNN SQL Account access to all of my databases?
IF (OBJECT_ID(N'dbo.[fn_CompareVersion]') IS NOT NULL) DROP FUNCTION dbo.[fn_CompareVersion];
The server principal "DATABASE_USER_NAME" is not able to access the database "NON_DNN_DATABASE_NAME" under the current security context. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at DotNetNuke.Data.SqlDatabaseConnectionProvider.ExecuteNonQuery(String connectionString, CommandType commandType, Int32 commandTimeout, String query) at DotNetNuke.Data.SqlDataProvider.ExecuteScriptInternal(String connectionString, String script, Int32 timeoutSec) ClientConnectionId:4e13ae22-b7c3-4343-9274-9b94055997b0 Error Number:916,State:1,Class:14
Hi Sebastan thanks for your reply as well. It's mapped to
dbo for the DNN database in my web.config but should I also have to map it to dbo for non-dnn databases?
Here's another example of some sql that attempt to be run.
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.[RegisterAssembly]') AND OBJECTPROPERTY(id, N'IsPROCEDURE') = 1) DROP PROCEDURE dbo.[RegisterAssembly]
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:
Awesome! Simply post in the forums using the link below and we'll get you started.