Hello,
I have downloaded this version from:
http://dotnetnuke.codeplex.com and have developed a website using this version on Visual Studio 2010 with its default SQL Express version:
10.00.2531
I do right click on the "Default.aspx" page on the Solution Explorer of Visual Studio 2010 and run it after selecting the browser from there.
It works well there, but I do not try to click the "Build >> Build Website" menu of Visual Studio, because it shows few errors there, as follow:-
----------------------------------------
'SortedAscendingCellStyle' is not a member of 'System.Web.UI.WebControls.GridView'. C:\Documents and Settings\arijit server\My Documents\Downloads\DotNetNuke_Community_05.04.02_Install\files\DesktopModules\Edit Properties\Edit Properties\EditProperties.ascx 89
'SortedDescendingCellStyle' is not a member of 'System.Web.UI.WebControls.GridView'. C:\Documents and Settings\arijit server\My Documents\Downloads\DotNetNuke_Community_05.04.02_Install\files\DesktopModules\Edit Properties\Edit Properties\EditProperties.ascx 89
'SortedAscendingHeaderStyle' is not a member of 'System.Web.UI.WebControls.GridView'. C:\Documents and Settings\arijit server\My Documents\Downloads\DotNetNuke_Community_05.04.02_Install\files\DesktopModules\Edit Properties\Edit Properties\EditProperties.ascx 89
'SortedDescendingHeaderStyle' is not a member of 'System.Web.UI.WebControls.GridView'. C:\Documents and Settings\arijit server\My Documents\Downloads\DotNetNuke_Community_05.04.02_Install\files\DesktopModules\Edit Properties\Edit Properties\EditProperties.ascx 89
The project currently contains references to more than one version of System.Web.Extensions, a direct reference to version 3.5.0.0 and an indirect reference (through 'AjaxControlToolkit.HTMLEditor.Editor') to version 4.0.0.0. Change the direct reference to use version 4.0.0.0 (or higher) of System.Web.Extensions. C:\Documents and Settings\arijit server\My Documents\Downloads\DotNetNuke_Community_05.04.02_Install\files\DesktopModules\Edit Properties\Edit Properties\EditProperties.ascx 341
The project currently contains references to more than one version of System.Web.Extensions, a direct reference to version 3.5.0.0 and an indirect reference (through 'AjaxControlToolkit.HTMLEditor.Editor') to version 4.0.0.0. Change the direct reference to use version 4.0.0.0 (or higher) of System.Web.Extensions. C:\Documents and Settings\arijit server\My Documents\Downloads\DotNetNuke_Community_05.04.02_Install\files\DesktopModules\Edit Properties\Edit Properties\EditProperties.ascx 341
The project currently contains references to more than one version of System.Web.Extensions, a direct reference to version 3.5.0.0 and an indirect reference (through 'AjaxControlToolkit.HTMLEditor.Editor') to version 4.0.0.0. Change the direct reference to use version 4.0.0.0 (or higher) of System.Web.Extensions. C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\files\fb703ac8\10dfd99b\App_Web_szicuzqi.0.vb
----------------------------------------
I was thinking that as it was running without any issues when I was right clicking the "Default.aspx" page with the solutions explorer of the Visual Studio, then lets forget these errors and these errors will not come to the server.
My live Server configuration is: Windows 2008, SQL Server 2008 R2, IIS 7. This is a shared hosting server of a very popular hosting server company.
Now, I installed all the files via the ftp account and copy the database and checked the database if it is properly copied and saw yes, it is properly copied. But now, when I run the live website, it shows the following error:-
----------------------------
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:
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) +76
DotNetNuke.Common.Utilities.Config.GetConnectionString() +39
DotNetNuke.Data.SqlDataProvider..ctor(Boolean useConfig) +100
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, StackCrawlMark& stackMark) +113
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +232
System.Activator.CreateInstance(Type type, Boolean nonPublic) +83
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1136
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +128
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +18
System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) +604
DotNetNuke.Framework.Reflection.CreateInstance(Type Type) +37
DotNetNuke.ComponentModel.SingletonComponentBuilder.BuildComponent() +20
DotNetNuke.ComponentModel.SimpleContainer.GetComponent(IComponentBuilder builder) +18
DotNetNuke.ComponentModel.SimpleContainer.GetComponent(Type contractType) +81
DotNetNuke.ComponentModel.AbstractContainer.GetComponent() +58
DotNetNuke.ComponentModel.ComponentFactory.GetComponent() +60
DotNetNuke.Security.Permissions.CorePermissionProvider..ctor() +12
[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, StackCrawlMark& stackMark) +113
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +232
System.Activator.CreateInstance(Type type, Boolean nonPublic) +83
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1136
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +128
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +18
System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) +604
DotNetNuke.Framework.Reflection.CreateInstance(Type Type) +37
DotNetNuke.ComponentModel.SingletonComponentBuilder.BuildComponent() +20
DotNetNuke.ComponentModel.SimpleContainer.GetComponent(IComponentBuilder builder) +18
DotNetNuke.ComponentModel.SimpleContainer.GetComponent(Type contractType) +81
DotNetNuke.ComponentModel.AbstractContainer.GetComponent() +58
DotNetNuke.ComponentModel.ComponentFactory.GetComponent() +60
DotNetNuke.Common.Global.Application_Start(Object Sender, EventArgs E) +1349
[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9935033
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296
[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9913572
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
|
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408
----------------------------
Please let me know a solution of this problem and really oblige me thereby.
Thanks.