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 ...Object not set to an instance to an objectObject not set to an instance to an object
Previous
 
Next
New Post
6/22/2010 5:40 AM
 
Hi,

I am trying to do a fresh install of 5.04.02 on 2008r2 server with sql 2008r2

This server & datbase already have a previous version dnn site working fine.

New site is using its own app pool. Ive added the app pool from the web server to full control in file access. The app pool is using ASP.net 4 in integrated mode

error I am getting is

Stack Trace:

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

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +117
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +247
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +106
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +12732893
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +28
   System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) +816
   DotNetNuke.ComponentModel.SingletonComponentBuilder.BuildComponent() +106
   DotNetNuke.ComponentModel.SimpleContainer.GetComponent(Type contractType) +133
   DotNetNuke.ComponentModel.AbstractContainer.GetComponent() +56
   DotNetNuke.Security.Permissions.PermissionProvider..ctor() +54

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +117
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +247
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +106
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +12732893
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +28
   System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) +816
   DotNetNuke.ComponentModel.SingletonComponentBuilder.BuildComponent() +106
   DotNetNuke.ComponentModel.SimpleContainer.GetComponent(Type contractType) +133
   DotNetNuke.ComponentModel.AbstractContainer.GetComponent() +56
   DotNetNuke.Common.Global.Application_Start(Object Sender, EventArgs E) +1909

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +3985477
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +191
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +325
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11524352
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4782309



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



 
New Post
6/22/2010 2:34 PM
 
Hi Tango,

Just an idea, but as the stack trace begins in DotNetNuke.Common.Utilities.Config.GetConnectionString have you checked that the <connectionStrings> section of your web.config is setup correctly? If the same server already has a working DNN install then compare the web.configs. Just make sure you don't put both DNN installs into the same database - that's probably not what you want.

Regards,
Rhys

www.rmjcs.com - Mostly SQL Server Stuff
 
New Post
6/22/2010 5:27 PM
 
Thanks Rhys,

Is there any changes in the newer versions of DNN. I have always only updated 2 sets of credentials in the web.config.

I have the new version pointing to a new database.

Any other ideas, thanks again
 
New Post
6/24/2010 2:54 AM
 
Anybody?
 
New Post
6/24/2010 6:46 AM
Accepted Answer 
Trap for young players

make sure you move the comment --> from the end of the connection string & in my case added it to the end of the comment (if this makes sense)

<!-- Connection String for SQL Server 2005/2008 -->
    <add name="SiteSqlServer" connectionString="Server=xxxxx;Database=xxxxx;uid=xxxxxx;pwd=xxxxx;" providerName="System.Data.SqlClient" />
    -->

In effect I had the connection string commented out
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Object not set to an instance to an objectObject not set to an instance to an object


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