I have just replaced the DotNetNuke 3.0.13 files on my web-server with 3.1.0 files, and then wiped the SQL Database. When I run /Install/Install.aspx, I get the following 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.]
DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectNamespace, String ObjectAssemblyName) +247
DotNetNuke.Data.DataProvider.CreateProvider() +23
DotNetNuke.Data.DataProvider..cctor() +15
[TypeInitializationException: The type initializer for "DotNetNuke.Data.DataProvider" threw an exception.]
DotNetNuke.Data.DataProvider.Instance() +0
DotNetNuke.Common.Globals.GetDatabaseVersion() +30
DotNetNuke.Common.Globals.GetUpgradeStatus() +307
DotNetNuke.Framework.Install.Page_Load(Object sender, EventArgs e) +246
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
[NullReferenceException]: Object reference not set to an instance of an object. at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectNamespace, String ObjectAssemblyName) at DotNetNuke.Data.DataProvider.CreateProvider()
at DotNetNuke.Data.DataProvider..cctor() [TypeInitializationException]: The type initializer for "DotNetNuke.Data.DataProvider" threw an exception. at DotNetNuke.Data.DataProvider.Instance() at DotNetNuke.Common.Globals.GetDatabaseVersion() at DotNetNuke.Common.Globals.GetUpgradeStatus()
at DotNetNuke.Framework.Install.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain() [HttpUnhandledException]: Exception of type System.Web.HttpUnhandledException
was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain() at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
1. please make sure you delete the dnn.config file if it is still in your install folder
2. I'm assuming you read the installation guide and following the instructions i.e.
In order to successfully upgrade you must follow the procedure outlined below
1.Make a back-up copy of your existing web.config file (web.config.backup).We cannot emphasise enough how important it is that you have a backup.If you lose the original value of the MachineKeys, then none of your users will be able to log in.
2.Once you are sure that you have safely backed up your web.config file, rename release.config to web.config.
3.Replace the following keys in your new web.config, with the values in your backup.
a.SiteSqlServer
b.MachineValidationKey
c.MachineDecryptionKey
d.InstallationDate (this may not be present in web.config, so add the key that is in web.config.backup to web.config)
4.Make any other changes to web.config that you made to support additional providers etc.
You should now be able to browse to the site and trigger the Upgrade process.Do not browse to your site unless you are sure that the MachineKeys in your new web.config are the same as they were in the old file that you backed-up.
OK, this is all fine, but I'm not upgrading now, I'm running a clean install. And the clean install is giving me this error, presumably because it expects a database to be set up.
Server Error in '/NTGSite' Application.
Could not find stored procedure 'dbo.GetHostSettings'.
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.Data.SqlClient.SqlException: Could not find stored procedure 'dbo.GetHostSettings'.
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.
AndrewG
Member
30 Points
6 Posts
NullReferenceException when installing DNN 3.1.0
Jun 14, 2005 05:43 AM|LINK
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:
Stack Trace:
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032 [NullReferenceException]: Object reference not set to an instance of an object. at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectNamespace, String ObjectAssemblyName) at DotNetNuke.Data.DataProvider.CreateProvider() at DotNetNuke.Data.DataProvider..cctor() [TypeInitializationException]: The type initializer for "DotNetNuke.Data.DataProvider" threw an exception. at DotNetNuke.Data.DataProvider.Instance() at DotNetNuke.Common.Globals.GetDatabaseVersion() at DotNetNuke.Common.Globals.GetUpgradeStatus() at DotNetNuke.Framework.Install.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain() [HttpUnhandledException]: Exception of type System.Web.HttpUnhandledException was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain() at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
cathal
Star
13648 Points
2702 Posts
MVP
Re: NullReferenceException when installing DNN 3.1.0
Jun 14, 2005 09:06 PM|LINK
2. I'm assuming you read the installation guide and following the instructions i.e.
In order to successfully upgrade you must follow the procedure outlined below
1. Make a back-up copy of your existing web.config file (web.config.backup). We cannot emphasise enough how important it is that you have a backup. If you lose the original value of the MachineKeys, then none of your users will be able to log in.
2. Once you are sure that you have safely backed up your web.config file, rename release.config to web.config.
3. Replace the following keys in your new web.config, with the values in your backup.
a. SiteSqlServer
b. MachineValidationKey
c. MachineDecryptionKey
d. InstallationDate (this may not be present in web.config, so add the key that is in web.config.backup to web.config)
4. Make any other changes to web.config that you made to support additional providers etc.
You should now be able to browse to the site and trigger the Upgrade process. Do not browse to your site unless you are sure that the MachineKeys in your new web.config are the same as they were in the old file that you backed-up.AndrewG
Member
30 Points
6 Posts
Re: NullReferenceException when installing DNN 3.1.0
Jun 15, 2005 10:47 AM|LINK
OK, this is all fine, but I'm not upgrading now, I'm running a clean install. And the clean install is giving me this error, presumably because it expects a database to be set up.
Server Error in '/NTGSite' Application.
Could not find stored procedure 'dbo.GetHostSettings'.
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.Data.SqlClient.SqlException: Could not find stored procedure 'dbo.GetHostSettings'.
Source Error:
Stack Trace:
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032