Website won't run on local server displaying various errors after publishing to hosting server
Hi Everyone
I'm wondering if anyone could help with my problem.
I have developed a website with no problems on web matrix using a compact database originally. I decided to publish this site onto my hosting provider to test the server and make sure everything was running ok there as everything was running perfect on my local server. Anyway since i have done this i have been faced with continuous errors and i have no idea now where i am at.
at present I have this error:
Object reference not set to an instance of an object.
on a seperate note {i did this after all of the errors were displaying so i know its not the primary cause} my hosting provider doesn't support compact databases which is fine so i migrated it in webmatrix and need to convert it to a mysql and ftp it to my server for them to redirect it to that, when i did this it automatically changed my local server web.config to the new connection string but it was still trying to access the old CE database.
Below is my web.config to see if there is anything in there that shouldn't be. I atleast thought that the site on my local server would still run regardless of it being published.
<?xmlversion="1.0"encoding="utf-8"?><configuration><configSections><sectionname="urlrewritingnet"restartOnExternalChanges="true"requirePermission="false"type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter"/><sectionname="microsoft.scripting"type="Microsoft.Scripting.Hosting.Configuration.Section, Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"requirePermission="false"/><sectionGroupname="applicationSettings"type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"><sectionname="umbraco.presentation.Properties.Settings"type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"requirePermission="false"/></sectionGroup><sectionname="clientDependency"type="ClientDependency.Core.Config.ClientDependencySection, ClientDependency.Core"requirePermission="false"/><sectionname="Examine"type="Examine.Config.ExamineSettings, Examine"requirePermission="false"/><sectionname="ExamineLuceneIndexSets"type="UmbracoExamine.Config.ExamineLuceneIndexes, UmbracoExamine"requirePermission="false"/><!-- Added in Umbraco 4.6.2 --><sectionGroupname="system.web.webPages.razor"type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"><sectionname="host"type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"requirePermission="false"/><sectionname="pages"type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"requirePermission="false"/></sectionGroup><!-- End of added in Umbraco 4.6.2 --><sectionname="ImageGenConfiguration"type="ImageGen.ImageGenConfigurationHandler,ImageGen"/></configSections><urlrewritingnetconfigSource="config\UrlRewriting.config"/><microsoft.scriptingconfigSource="config\scripting.config"/><clientDependencyconfigSource="config\ClientDependency.config"/><ExamineconfigSource="config\ExamineSettings.config"/><ExamineLuceneIndexSetsconfigSource="config\ExamineIndex.config"/><appSettings><!--<add key="umbracoDbDSN" value="datalayer=SQLCE4Umbraco.SqlCEHelper,SQLCE4Umbraco;data source=|DataDirectory|\Umbraco.sdf" />--><addkey="umbracoConfigurationStatus"value="4.8.0"/><addkey="umbracoReservedUrls"value="~/config/splashes/booting.aspx,~/install/default.aspx,~/config/splashes/noNodes.aspx,~/VSEnterpriseHelper.axd"/><addkey="umbracoReservedPaths"value="~/umbraco,~/install/"/><addkey="umbracoContentXML"value="~/App_Data/umbraco.config"/><addkey="umbracoStorageDirectory"value="~/App_Data"/><addkey="umbracoPath"value="~/umbraco"/><addkey="umbracoEnableStat"value="false"/><addkey="umbracoHideTopLevelNodeFromPath"value="true"/><addkey="umbracoEditXhtmlMode"value="true"/><addkey="umbracoUseDirectoryUrls"value="false"/><addkey="umbracoDebugMode"value="false"/><addkey="umbracoTimeOutInMinutes"value="20"/><addkey="umbracoVersionCheckPeriod"value="7"/><addkey="umbracoDisableXsltExtensions"value="true"/><addkey="umbracoDefaultUILanguage"value="en"/><addkey="umbracoProfileUrl"value="profiler"/><addkey="umbracoUseSSL"value="false"/><addkey="umbracoUseMediumTrust"value="false"/><addkey="umbracoContentXMLUseLocalTemp"value="false"/><addkey="webpages:Enabled"value="false"/><addkey="enableSimpleMembership"value="false"/><addkey="autoFormsAuthentication"value="false"/><addkey="DAMP_CallImageCropper"value="true"/><addkey="DAMP_OnlyIfEmpty"value="true"/></appSettings><system.net><mailSettings><smtp><networkhost="127.0.0.1"userName="username"password="password"/></smtp></mailSettings></system.net><connectionStrings><removename="LocalSqlServer"/><addconnectionString="Data Source=.\SQLExpress;Initial Catalog=Umbraco;Integrated Security=True"name="Umbraco"providerName="System.Data.SqlClient"/><!--<add name="LocalSqlServer" connectionString="server=.\sqlexpress;database=aspnetdb;user id=DBUSER;password=DBPASSWORD" providerName="System.Data.SqlClient"/>--></connectionStrings><system.web><customErrorsmode="Off"/><traceenabled="false"requestLimit="10"pageOutput="false"traceMode="SortByTime"localOnly="true"/><sessionStatemode="InProc"stateConnectionString="tcpip=127.0.0.1:42424"sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"cookieless="false"timeout="20"/><globalizationrequestEncoding="UTF-8"responseEncoding="UTF-8"/><xhtmlConformancemode="Strict"/><httpRuntimerequestValidationMode="2.0"/><pagesenableEventValidation="false"><!-- ASPNETAJAX --><controls><addtagPrefix="asp"namespace="System.Web.UI"assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><addtagPrefix="umbraco"namespace="umbraco.presentation.templateControls"assembly="umbraco"/><addtagPrefix="asp"namespace="System.Web.UI.WebControls"assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></controls></pages><httpModules><!-- URL REWRTIER --><addname="UrlRewriteModule"type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter"/><addname="umbracoRequestModule"type="umbraco.presentation.requestModule"/><!-- UMBRACO --><addname="viewstateMoverModule"type="umbraco.presentation.viewstateMoverModule"/><addname="umbracoBaseRequestModule"type="umbraco.presentation.umbracobase.requestModule"/><!-- ASPNETAJAX --><addname="ScriptModule"type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><!-- CLIENT DEPENDENCY --><addname="ClientDependencyModule"type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core"/></httpModules><httpHandlers><removeverb="*"path="*.asmx"/><!-- ASPNETAJAX --><addverb="*"path="*.asmx"type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"validate="false"/><addverb="*"path="*_AppService.axd"type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"validate="false"/><addverb="GET,HEAD"path="ScriptResource.axd"type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"validate="false"/><!-- UMBRACO CHANNELS --><addverb="*"path="umbraco/channels.aspx"type="umbraco.presentation.channels.api, umbraco"/><addverb="*"path="umbraco/channels/word.aspx"type="umbraco.presentation.channels.wordApi, umbraco"/><!-- CLIENT DEPENDENCY --><addverb="*"path="DependencyHandler.axd"type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core "/><!-- SPELL CHECKER --><addverb="GET,HEAD,POST"path="GoogleSpellChecker.ashx"type="umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker.GoogleSpellChecker,umbraco"/></httpHandlers><compilationdefaultLanguage="c#"batch="false"targetFramework="4.0"><assemblies><!-- ASP.NET 4.0 Assemblies --><addassembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/><addassembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><addassembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><addassembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><addassembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/><addassembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><addassembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/></assemblies><!-- Added in Umbraco 4.6.2 --><buildProviders><addextension=".cshtml"type="umbraco.MacroEngines.RazorBuildProvider, umbraco.MacroEngines"/><addextension=".vbhtml"type="umbraco.MacroEngines.RazorBuildProvider, umbraco.MacroEngines"/><addextension=".razor"type="umbraco.MacroEngines.RazorBuildProvider, umbraco.MacroEngines"/></buildProviders><!-- End of added in Umbraco 4.6.2 --></compilation><authenticationmode="Forms"><formsname="yourAuthCookie"loginUrl="login.aspx"protection="All"path="/"/></authentication><authorization><allowusers="?"/></authorization><!-- Membership Provider --><membershipdefaultProvider="UmbracoMembershipProvider"userIsOnlineTimeWindow="15"><providers><clear/><addname="UmbracoMembershipProvider"type="umbraco.providers.members.UmbracoMembershipProvider"enablePasswordRetrieval="false"enablePasswordReset="false"requiresQuestionAndAnswer="false"defaultMemberTypeAlias="Another Type"passwordFormat="Hashed"/><addname="UsersMembershipProvider"type="umbraco.providers.UsersMembershipProvider"enablePasswordRetrieval="false"enablePasswordReset="false"requiresQuestionAndAnswer="false"passwordFormat="Hashed"/></providers></membership><!-- added by NH to support membership providers in access layer --><roleManagerenabled="true"defaultProvider="UmbracoRoleProvider"><providers><clear/><addname="UmbracoRoleProvider"type="umbraco.providers.members.UmbracoRoleProvider"/></providers></roleManager><!-- Sitemap provider--><siteMapdefaultProvider="UmbracoSiteMapProvider"enabled="true"><providers><clear/><addname="UmbracoSiteMapProvider"type="umbraco.presentation.nodeFactory.UmbracoSiteMapProvider"defaultDescriptionAlias="description"securityTrimmingEnabled="true"/></providers></siteMap></system.web><!-- ASPNETAJAX --><system.web.extensions><scripting><scriptResourceHandlerenableCompression="true"enableCaching="true"/></scripting></system.web.extensions><system.webServer><validationvalidateIntegratedModeConfiguration="false"/><modulesrunAllManagedModulesForAllRequests="true"><removename="ScriptModule"/><removename="UrlRewriteModule"/><removename="umbracoRequestModule"/><removename="viewstateMoverModule"/><removename="umbracoBaseRequestModule"/><removename="ClientDependencyModule"/><!-- Needed for login/membership to work on homepage (as per http://stackoverflow.com/questions/218057/httpcontext-current-session-is-null-when-routing-requests) --><removename="FormsAuthentication"/><addname="UrlRewriteModule"type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter"/><addname="umbracoRequestModule"type="umbraco.presentation.requestModule"/><addname="viewstateMoverModule"type="umbraco.presentation.viewstateMoverModule"/><addname="umbracoBaseRequestModule"type="umbraco.presentation.umbracobase.requestModule"/><addname="ScriptModule"preCondition="managedHandler"type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><addname="ClientDependencyModule"type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core"/><!-- Needed for login/membership to work on homepage (as per http://stackoverflow.com/questions/218057/httpcontext-current-session-is-null-when-routing-requests) --><addname="FormsAuthentication"type="System.Web.Security.FormsAuthenticationModule"/></modules><handlersaccessPolicy="Read, Write, Script, Execute"><removename="WebServiceHandlerFactory-Integrated"/><removename="ScriptHandlerFactory"/><removename="ScriptHandlerFactoryAppServices"/><removename="ScriptResource"/><removename="Channels"/><removename="Channels_Word"/><removename="ClientDependency"/><removename="SpellChecker"/><addname="ScriptHandlerFactory"verb="*"path="*.asmx"preCondition="integratedMode"type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><addname="ScriptHandlerFactoryAppServices"verb="*"path="*_AppService.axd"preCondition="integratedMode"type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><addname="ScriptResource"verb="GET,HEAD"path="ScriptResource.axd"preCondition="integratedMode"type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/><addverb="*"name="Channels"preCondition="integratedMode"path="umbraco/channels.aspx"type="umbraco.presentation.channels.api, umbraco"/><addverb="*"name="Channels_Word"preCondition="integratedMode"path="umbraco/channels/word.aspx"type="umbraco.presentation.channels.wordApi, umbraco"/><addverb="*"name="ClientDependency"preCondition="integratedMode"path="DependencyHandler.axd"type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core "/><addverb="GET,HEAD,POST"preCondition="integratedMode"name="SpellChecker"path="GoogleSpellChecker.ashx"type="umbraco.presentation.umbraco_client.tinymce3.plugins.spellchecker.GoogleSpellChecker,umbraco"/></handlers><!-- Adobe AIR mime type --><staticContent><removefileExtension=".air"/><mimeMapfileExtension=".air"mimeType="application/vnd.adobe.air-application-installer-package+zip"/></staticContent></system.webServer><system.codedom><compilers><compilerlanguage="c#;cs;csharp"extension=".cs"type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"warningLevel="4"><providerOptionname="CompilerVersion"value="v4.0"/><providerOptionname="WarnAsError"value="false"/></compiler></compilers></system.codedom><runtime><!-- Old asp.net ajax assembly bindings --><assemblyBindingxmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentityname="System.Web.Extensions"publicKeyToken="31bf3856ad364e35"/><bindingRedirectoldVersion="1.0.0.0-1.1.0.0"newVersion="4.0.0.0"/></dependentAssembly><dependentAssembly><assemblyIdentityname="System.Web.Extensions.Design"publicKeyToken="31bf3856ad364e35"/><bindingRedirectoldVersion="1.0.0.0-1.1.0.0"newVersion="4.0.0.0"/></dependentAssembly></assemblyBinding></runtime><!-- Added in Umbraco 4.6.2 --><system.web.webPages.razor><hostfactoryType="umbraco.MacroEngines.RazorUmbracoFactory, umbraco.MacroEngines"/><pagespageBaseType="umbraco.MacroEngines.DynamicNodeContext"><namespaces><addnamespace="Microsoft.Web.Helpers"/><addnamespace="umbraco"/><addnamespace="Examine"/></namespaces></pages></system.web.webPages.razor><!-- End of added in Umbraco 4.6.2 --><ImageGenConfigurationconfigSource="config\ImageGen.config"/><!--<system.data>
<DbProviderFactories>
<remove invariant="System.Data.SqlServerCe.4.0" />
<add invariant="System.Data.SqlServerCe.4.0" name="Microsoft® SQL Server® Compact 4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</DbProviderFactories>
</system.data>--></configuration>
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 was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
umbraco.BusinessLogic.User.setupUser(Int32 ID) +102
umbraco.BusinessLogic.User..ctor(Int32 ID) +101
umbraco.BusinessLogic.User.GetUser(Int32 id) +119
umbraco.BusinessLogic.User.GetCurrent() +47
umbraco.presentation.LiveEditing.DefaultLiveEditingContext.get_Enabled() +44
umbraco.presentation.LiveEditing.DefaultLiveEditingContext..ctor() +41
umbraco.presentation.UmbracoContext.get_LiveEditingContext() +103
umbraco.UmbracoDefault.Page_PreInit(Object sender, EventArgs e) +176
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnPreInit(EventArgs e) +8871966
System.Web.UI.Page.PerformPreInit() +31
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +328
Website won't run on local server displaying various errors after publishing to hosting server
Hi Everyone
I'm wondering if anyone could help with my problem.
I have developed a website with no problems on web matrix using a compact database originally. I decided to publish this site onto my hosting provider to test the server and make sure everything was running ok there as everything was running perfect on my local server. Anyway since i have done this i have been faced with continuous errors and i have no idea now where i am at.
at present I have this error:
Object reference not set to an instance of an object.
on a seperate note {i did this after all of the errors were displaying so i know its not the primary cause} my hosting provider doesn't support compact databases which is fine so i migrated it in webmatrix and need to convert it to a mysql and ftp it to my server for them to redirect it to that, when i did this it automatically changed my local server web.config to the new connection string but it was still trying to access the old CE database.
Below is my web.config to see if there is anything in there that shouldn't be. I atleast thought that the site on my local server would still run regardless of it being published.
I have no idea now as to what to do.
Thanks
Here is the stack trace for the current 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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
is working on a reply...