|
|
|
Joined: 6/3/2011
Posts: 2
|
|
|
I have a website on 05.05.00 (653) DNN installation, .net 3.5 and sql server 2008 Express which i have moved to another server (.net 3.5, SQl Express 2005)
I have followed this article to convert the database http://www.sqlservermart.com/HowTo/MS... and i've done all the necessary corrections(change to new db name and user) , i have copied all DNN files to the new server, changed the connectionstring (i have some doubts of the correct one although the server address it's been given by the provider), i tried different connection strings, i've read similar to this problem articles but cannot have the site working.
the error i'm getting
Thank you in advance for your help
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 ThenLine 89: ComponentFactory.RegisterComponentInstance(Of DotNetNuke.Security.Permissions.PermissionProvider)(New DotNetNuke.Security.Permissions.PermissionProvider())
|
Source File: E:\Inetpub\vhosts\kekssd.gr\httpdocs\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) +7651119 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) +7651119 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 E:\Inetpub\vhosts\kekssd.gr\httpdocs\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) +2725410 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) +8910703 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333
|
Version Information: Microsoft .NET Framework Version:2.0.50727.4216; ASP.NET Version:2.0.50727.4223
|
|
|
|
| |
|
|
|
please check file permissions and make sure, windows user used by ASP.Net as configured in IIS application pool has full permission for all files and subfolders.
|
|
|
|
| |
|
|
Joined: 6/3/2011
Posts: 2
|
|
|
Thank you for the response but i've changed to full all the permissions for user IWPD_XXX on the server . same problem.
|
|
|
|
| |
|
|
|
www.wesnetdesigns.com Joined: 2/18/2005
Posts: 3253
|
|
|
Although Sebastian's suggestion to check file permissions for the ASP.Net worker process account (IIS Application Pool Identity Account) is also essential when moving a site to a new hosting provider, it appears from the stack trace that the problem is in not being able to read the connection string from web.config. Maybe an invalid character, mismatched quotes, misplaced comment characters when changing the connection strings (2 - one in <connectionStrings> and the second in <appSettings> sections).
Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
|
|
|
|
| |