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 ...IIS7 Install ErrorIIS7 Install Error
Previous
 
Next
New Post
5/22/2010 11:13 PM
 

After rebuilding twice I keep getting this 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 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. System.NullReferenceException: Object reference not set to an instance of an object.

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

<%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.] DotNetNuke.Common.Utilities.Config.GetConnectionString(String name) +59 DotNetNuke.Data.SqlDataProvider..ctor(Boolean useConfig) +152 [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) +146 System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +298 System.Activator.CreateInstance(Type type, Boolean nonPublic) +79 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +10364331 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.Framework.Reflection.CreateInstance(Type Type) +95 DotNetNuke.ComponentModel.SingletonComponentBuilder.BuildComponent() +30 DotNetNuke.ComponentModel.SimpleContainer.GetComponent(Type contractType) +114 DotNetNuke.ComponentModel.AbstractContainer.GetComponent() +45 DotNetNuke.ComponentModel.ComponentFactory.GetComponent() +93 DotNetNuke.Security.Permissions.PermissionProvider..ctor() +23 DotNetNuke.Security.Permissions.CorePermissionProvider..ctor() +9 [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) +146 System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +298 System.Activator.CreateInstance(Type type, Boolean nonPublic) +79 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +10364331 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.Framework.Reflection.CreateInstance(Type Type) +95 DotNetNuke.ComponentModel.SingletonComponentBuilder.BuildComponent() +30 DotNetNuke.ComponentModel.SimpleContainer.GetComponent(Type contractType) +114 DotNetNuke.ComponentModel.AbstractContainer.GetComponent() +45 DotNetNuke.ComponentModel.ComponentFactory.GetComponent() +93 DotNetNuke.Common.Global.Application_Start(Object Sender, EventArgs E) +1496 [HttpException (0x80004005): Exception has been thrown by the target of an invocation.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +4170353 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +205 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +336 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +350 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +382 [HttpException (0x80004005): Exception has been thrown by the target of an invocation.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11297830 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4336948

 


 

Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016

Not sure what else to try, I've tried several suggestions from the Forums already.  OS is Windows 2008 - 64bit.

Thanks in advance.

Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016 Not sure what else to try, I've tried several suggestions from the Forums already.  OS is Windows 2008 - 64bit.Thanks in advance.
 
New Post
5/23/2010 7:38 AM
 
I get following error with DNN 5.4.2 with Windows 7 Ultimate (SQL Server 2008 and IIS 7.5 both on local machine) : Connection Error(s): Index #: 0 Source: .Net SqlClient Data Provider Class: 11 Number: 4060 Message: Cannot open database "DotNetNuke" requested by the login. The login failed. Index #: 1 Source: .Net SqlClient Data Provider Class: 14 Number: 18456 Message: Login failed for user 'IIS APPPOOL\DotNetNuke'.
 
New Post
5/25/2010 2:26 PM
 
DH;
You appear to have 3 separate failures in the error message.
Can you please verify your permissions?
Specifically that the permissions for the web folder and SQL match the account that your web site is using for its Application Pool?
Also, how did you install this 5.4.2 application?
did you upgrade and if so, from what prior DNN version?


Ken Grierson
DotNetNuke Corporation
Test Lead
 
New Post
5/25/2010 2:28 PM
 
DF;
You have a permissions issue.
Please verify your permissions for the DefaultAppPool account.

Ken Grierson
DotNetNuke Corporation
Test Lead
 
New Post
11/8/2010 9:11 PM
 

Sorry to bump, but I had the same symptoms and the same error message as DataFetchers, and I have just resolved it

I didn't see any other thread that categorically said was a solution, so here is what I needed to do:

Scenario was IIS7 running on Windows 2008, SQL Express 2008 installation. Not my own web box, so not a lot of control over the environment (or local knowledge)

Anyway, I was creating the DB from scratch and selecting the SQL 2005 / 2008 option (not SQL Express, even though it is Express that is installed)

DNN 4.9.5 Install package

.Net 3.5 (upgrading to 4, but didn't need that for now)

IIS7 checked DefaultApplicationPool was set to .NET 3.5 and was still in Integrated mode

File Permissions check as part of DNN set up all OK

Got to Connecting to the database, same error as DF reported

Index #: 1 Source: .Net SqlClient Data Provider Class: 14 Number: 18456 Message: Login failed for user 'webdatabaseuser'

Resolution was found upon checking the mode that SQL was in. It was in Windows Authentication mode. Once I changed it to Mixed Mode, I was good to go. It bugs me when the simplest of things trips you up

Hope that helps someone

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...IIS7 Install ErrorIIS7 Install Error


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