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 Reference not set to an instance of an objectObject Reference not set to an instance of an object
Previous
 
Next
New Post
12/2/2010 9:28 AM
 
I am new to DNN and to web development (I'm a windows desktop developer).

I have followed the steps in the DotNetNuke_Install_Package_Installation_Instructions_071410.pdf file to install DNN.

I am running windows 7 and downloaded DNN 5.06.00.

I have configured IIS, but can't find the IIS APPPOOL user, but used Network Service user and it opens the web site.

Now it runs for a little while and then all of a sudden it says "Object Reference not set to an instance of an object".

Nothing ever shows on the screen, except this error.

Please help!

Thanks,
Adele
 
New Post
12/2/2010 1:07 PM
 
Here's the detail of the error after I turned debugging on: Server Error in '/DNN' 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: Line 85: ComponentFactory.InstallComponents(New ProviderInstaller("sitemap", GetType(DotNetNuke.Services.Sitemap.SitemapProvider))) Line 86: Line 87: Dim provider As DotNetNuke.Security.Permissions.PermissionProvider = DotNetNuke.ComponentModel.ComponentFactory.GetComponent(Of DotNetNuke.Security.Permissions.PermissionProvider)() Line 88: If provider Is Nothing Then Line 89: ComponentFactory.RegisterComponentInstance(Of DotNetNuke.Security.Permissions.PermissionProvider)(New DotNetNuke.Security.Permissions.PermissionProvider()) Source File: C:\Websites\DNN\App_Code\Global.asax.vb Line: 87 Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] DotNetNuke.Common.Utilities.Config.GetConnectionString(String name) +50 DotNetNuke.Common.Utilities.Config.GetConnectionString() +38 DotNetNuke.Data.SqlDataProvider..ctor(Boolean useConfig) +105 DotNetNuke.Data.SqlDataProvider..ctor() +10 [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) +86 System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +230 System.Activator.CreateInstance(Type type, Boolean nonPublic) +67 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1051 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +111 System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) +7651007 System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture) +36 DotNetNuke.Framework.Reflection.CreateInstance(Type Type) +27 DotNetNuke.ComponentModel.SingletonComponentBuilder.CreateInstance() +14 DotNetNuke.ComponentModel.SingletonComponentBuilder.BuildComponent() +16 DotNetNuke.ComponentModel.SimpleContainer.GetComponent(IComponentBuilder builder) +18 DotNetNuke.ComponentModel.SimpleContainer.GetComponent(Type contractType) +81 DotNetNuke.ComponentModel.AbstractContainer.GetComponent() +55 DotNetNuke.ComponentModel.ComponentFactory.GetComponent() +63 DotNetNuke.Security.Permissions.PermissionProvider..ctor() +12 DotNetNuke.Security.Permissions.CorePermissionProvider..ctor() +5 [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) +86 System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +230 System.Activator.CreateInstance(Type type, Boolean nonPublic) +67 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1051 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +111 System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) +7651007 System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture) +36 DotNetNuke.Framework.Reflection.CreateInstance(Type Type) +27 DotNetNuke.ComponentModel.SingletonComponentBuilder.CreateInstance() +14 DotNetNuke.ComponentModel.SingletonComponentBuilder.BuildComponent() +16 DotNetNuke.ComponentModel.SimpleContainer.GetComponent(IComponentBuilder builder) +18 DotNetNuke.ComponentModel.SimpleContainer.GetComponent(Type contractType) +81 DotNetNuke.ComponentModel.AbstractContainer.GetComponent() +55 DotNetNuke.ComponentModel.ComponentFactory.GetComponent() +63 DotNetNuke.Common.Global.Application_Start(Object Sender, EventArgs E) in C:\Websites\DNN\App_Code\Global.asax.vb:87 [HttpException (0x80004005): Exception has been thrown by the target of an invocation.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +2721374 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +128 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +188 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +295 System.Web.HttpApplicationFactory.GetPipelineApplicationInstance(IntPtr appContext, HttpContext context) +56 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +231 [HttpException (0x80004005): Exception has been thrown by the target of an invocation.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8901019 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333
 
New Post
12/2/2010 1:15 PM
 
Ok, solved this issue. The one connection string was still commented out :( Sorry for wasting everyone's time!
 
New Post
12/2/2010 4:50 PM
 
great you figured it out, have fun using DNN!

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Object Reference not set to an instance of an objectObject Reference not set to an instance of 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