Object reference not set to an instance of an object.
Add an Answer
Your question has been submitted and is awaiting moderation.
Thank you for reporting this content, moderators have been notified of your submission.
Hi,
I am trying to migrate a website to a local machine, website url: rjandco.com.au
DNN version: 06.02.01 (253)
When transferring across, I got the following error:
[NullReferenceException: Object reference not set to an instance of an object.]
DotNetNuke.Common.Utilities.Config.GetConnectionString(String name) +89
DotNetNuke.Common.Utilities.Config.GetConnectionString() +41
DotNetNuke.Data.SqlDataProvider..ctor(Boolean useConfig) +109
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, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +98
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +241
System.Activator.CreateInstance(Type type, Boolean nonPublic) +69
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1136
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) +9558025
DotNetNuke.Framework.Reflection.CreateInstance(Type Type) +45
DotNetNuke.ComponentModel.SingletonComponentBuilder.BuildComponent() +25
DotNetNuke.ComponentModel.SimpleContainer.GetComponent(IComponentBuilder builder) +26
DotNetNuke.ComponentModel.SimpleContainer.GetComponent(Type contractType) +177
DotNetNuke.ComponentModel.AbstractContainer.GetComponent() +62
DotNetNuke.ComponentModel.ComponentFactory.GetComponent() +60
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, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +98
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +241
System.Activator.CreateInstance(Type type, Boolean nonPublic) +69
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1136
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) +9558025
DotNetNuke.Framework.Reflection.CreateInstance(Type Type) +45
DotNetNuke.ComponentModel.SingletonComponentBuilder.BuildComponent() +25
DotNetNuke.ComponentModel.SimpleContainer.GetComponent(IComponentBuilder builder) +26
DotNetNuke.ComponentModel.SimpleContainer.GetComponent(Type contractType) +177
DotNetNuke.ComponentModel.AbstractContainer.GetComponent() +62
DotNetNuke.ComponentModel.ComponentFactory.GetComponent() +60
DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication.RegisterIfNotAlreadyRegistered(String name) +50
DotNetNuke.Web.Common.Internal.DotNetNukeHttpApplication.Application_Start(Object Sender, EventArgs E) +1322
[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9189101
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +131
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +194
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +339
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +253
[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9104200
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256