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 117 karma points
    Mar 11, 2019 @ 20:53
    Luyolo Mgodi
    1

    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 5773 posts 21997 karma points MVP 4x 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 117 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 5773 posts 21997 karma points MVP 4x admin c-trib
    Mar 11, 2019 @ 22:00
    Alex Skrypnyk
    1

    What .net version is installed on the server?

  • Luyolo Mgodi 71 posts 117 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 330 posts 1359 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 5773 posts 21997 karma points MVP 4x admin c-trib
    Mar 11, 2019 @ 22:42
  • Luyolo Mgodi 71 posts 117 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 117 karma points
    Mar 12, 2019 @ 08:13
    Luyolo Mgodi
    4

    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 5773 posts 21997 karma points MVP 4x admin c-trib
    Mar 12, 2019 @ 09:53
    Alex Skrypnyk
    0

    You are welcome, have a nice day.

  • Alex Skrypnyk 5773 posts 21997 karma points MVP 4x 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 1208 posts 3922 karma points c-trib
    Jun 23, 2020 @ 07:55
    Steve Morgan
    1

    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.

Please Sign in or register to post replies

Write your reply to:

Draft