Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Luyolo Mgodi 71 posts 120 karma points
    Mar 11, 2019 @ 20:53
    Luyolo Mgodi
    2

    Error Starting up an Umbraco Site

    Hi,

    I just created a new website using umbraco 8. I can run the website locally and no issues, however on the server, it does not run. I'm running it on a shared server. Below is what is on the stacktrace:

    [NullReferenceException: Object reference not set to an instance of an object.] Umbraco.Web.Runtime.WebRuntime.Boot(IRegister register) +139 Umbraco.Web.UmbracoApplicationBase.HandleApplicationStart(Object sender, EventArgs evargs) +47 Umbraco.Web.UmbracoApplicationBase.Application_Start(Object sender, EventArgs evargs) +34

    [HttpException (0x80004005): Object reference not set to an instance of an object.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +476 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +176 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +347 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +297

    [HttpException (0x80004005): Object reference not set to an instance of an object.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +652 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +89 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +189

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Mar 11, 2019 @ 21:32
    Alex Skrypnyk
    0

    Hi Luyolo

    Is it the same database as locally? Does Umbraco backend work?

    Thanks,

    Alex

  • Luyolo Mgodi 71 posts 120 karma points
    Mar 11, 2019 @ 21:52
    Luyolo Mgodi
    0

    Hi Alex,

    The umbraco backend only works locally. I backed up the local database and restore it on the server. I went as far as changing my local connection string and pointed it to the server database just to test and it works with no issues. But the site is not working in the server.

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Mar 11, 2019 @ 22:00
    Alex Skrypnyk
    1

    What .net version is installed on the server?

  • Luyolo Mgodi 71 posts 120 karma points
    Mar 11, 2019 @ 22:08
    Luyolo Mgodi
    100

    It's .Net 4

    I have other sites running Umbraco 7.4.1 in the same server and they run smoothly with no issues.

  • Søren Gregersen 441 posts 1884 karma points MVP 2x c-trib
    Mar 11, 2019 @ 22:26
    Søren Gregersen
    1

    Umbraco 8 requires .net 4.7.2 - it says so on the box :-)

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Mar 11, 2019 @ 22:42
  • Luyolo Mgodi 71 posts 120 karma points
    Mar 12, 2019 @ 07:25
    Luyolo Mgodi
    0

    Hi Alex,

    .Net 4.7.2 is installed and I still get the same error.

  • Luyolo Mgodi 71 posts 120 karma points
    Mar 12, 2019 @ 08:13
    Luyolo Mgodi
    6

    Hi Alex,

    The issue was caused by file permission on the Config folder. After assigning read/write permissions, it started working.

    Thanks for the help!

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Mar 12, 2019 @ 09:53
    Alex Skrypnyk
    0

    You are welcome, have a nice day.

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Mar 11, 2019 @ 22:44
    Alex Skrypnyk
    0

    Sorry, pressed "Mark as a solution" accidentally

  • Bernard Gabon 1 post 21 karma points
    Apr 11, 2019 @ 19:11
    Bernard Gabon
    0

    In Smarterasp.net, you just need to set the site folder permission for ASP/PHP and ASP.NET to Read/Write.

  • Sebastian Budka 12 posts 93 karma points
    Jun 16, 2020 @ 07:23
    Sebastian Budka
    1

    Yesterday I have encountered the same error. I tried to set permissions for specific folders listed here for NetworkService (this is the user which application run in local IIS), but with no luck. I ended up with "Full control" for the whole solution folder, still no luck.

    Do you have any other suggestions?

  • Steve Morgan 1345 posts 4452 karma points c-trib
    Jun 23, 2020 @ 07:55
    Steve Morgan
    2

    I had this issue - for me it was where the sql db connection string had been separated from the web config

    It was missing in my build so therefore failed. I would have expected the usual sql db connection error so was lost for a few minutes.

    So look for something like:

    <connectionStrings configSource="Web.ConnectionStrings.config" />
    

    And ensure the referenced file exists.

  • Kasper 13 posts 84 karma points
    Dec 22, 2020 @ 08:41
    Kasper
    0

    Thanks, this helped solve my issue. I was trying to clone an existing solution and set it up with a new local database, and then import my templates using uSync. After cloning the repo I had accidentally omitted the connectionstring and the providername attribute from the web.config file in the connectionstrings section. I now have it like this in my config file, and it works.

    <add name="umbracoDbDSN" connectionString="" providerName="" /> 
    
  • Bahadur 7 posts 78 karma points
    Mar 24, 2021 @ 11:46
    Bahadur
    2

    I had the same issue with my V8 website. In my case, I was publishing the website through Plesk and Microsoft ASP support was not enabled. Worked like a charm once I turned it on. enter image description here

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Mar 25, 2021 @ 20:05
    Alex Skrypnyk
    0

    Hi Bahadur

    Thanks for sharing!

  • Tony Bolton 4 posts 74 karma points
    Apr 03, 2021 @ 11:44
    Tony Bolton
    0

    Thanks Bahadur,

    For me it wasn't the ASP support option but the 'additional write/modify permissions' option.

    Might help someone else with a similar issue. Your post pointed me in the right direction though!

    Cheers! Tony

  • Kristian Ravnevand 94 posts 214 karma points
    Jun 16, 2021 @ 12:06
    Kristian Ravnevand
    0

    For me it was missing config / properties folder (forgot to copy it to the server :-/

Please Sign in or register to post replies

Write your reply to:

Draft