Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...install.aspx.vb error line 290install.aspx.vb error line 290
Previous
 
Next
New Post
4/20/2006 6:35 PM
 
Im trying to get DNN installed, and its giving me the following error, I searched all the forums and it looks like this is a unique error, because i cant find another thread with it. This error was given after fixing the common upgrade error that needs the DotNetNuke_template.mdf file. I put this file in the proper folder then got this error while debug='true'.

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.

Line 288: Private Sub NoUpgrade()
Line 289: ' get path to script files
Line 290: Dim strProviderPath As String = PortalSettings.GetProviderPath()
Line 291: If Not strProviderPath.StartsWith("ERROR:") Then
Line 292: Dim strDatabaseVersion As String


Source File: d:\hosting\asminc\Install\Install.aspx.vb    Line: 290


Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
DotNetNuke.Common.Utilities.Config.GetConnectionString(String name) +47
DotNetNuke.Data.SqlDataProvider..ctor() +126

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +103
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +261
System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
DotNetNuke.Framework.Reflection.CreateObject(String TypeName, String CacheKey, Boolean UseCache) +230
DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName, Boolean UseCache) +571
DotNetNuke.Data.DataProvider.CreateProvider() +39
DotNetNuke.Data.DataProvider..cctor() +13

[TypeInitializationException: The type initializer for 'DotNetNuke.Data.DataProvider' threw an exception.]
DotNetNuke.Entities.Portals.PortalSettings.GetProviderPath() +14
DotNetNuke.Framework.Install.NoUpgrade() in d:\hosting\asminc\Install\Install.aspx.vb:290
DotNetNuke.Framework.Install.Page_Load(Object sender, EventArgs e) in d:\hosting\asminc\Install\Install.aspx.vb:381
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

Any ideas?
 
New Post
4/21/2006 12:28 PM
 
For some reason, PortalSettings.GetProviderPath() is being set or not set and is NULL.
I looked through PortalSettings.vb in the source code and DataProvider.Instance().GetProviderPath() is the value that sets PortalSettings.GetProviderPath().
However I cant seem to find where DataProvider.Instance().GetProviderPath() is being set in any of the code.

Why wont the varible set itself?

I set PortalSettings.GetProviderPath() manually to "TEST" and then I get an error code without a source code, stack trace, file name or anything.
Says "Error Installing DotNetNuke
Current Assembly Version: 04.00.02
The type initializer for 'DotNetNuke.Data.DataProvider' threw an exception."

I dont know if this has to do with the previous portalsettings error or not.
What should PortalSettings.GetProviderPath() return?
 
New Post
1/22/2007 5:14 AM
 

Hello, My Name is Eka Siswanto. Using Reflector.Exe without viewing actual source code, it is obvious that the method you are seeking is indeed an abstract class and it is actually implemented in DotNetNuke.SqlDataProvider.dll.

Given that information, you can consult the actual source code to find the implementation of GetProviderPath method.

If you can compile and run your compiled version, you can use Debugger, or just arcane "Response.Write" method in the section of method to find the actual problem. Well, although it is so much to be said, the last word is just... Happy Trying, OK ?

Brgds,

Eka Siswanto

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...install.aspx.vb error line 290install.aspx.vb error line 290


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

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

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. 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.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out