Copied to clipboard

Flag this post as spam?

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


  • Vasya Vankova 2 posts 103 karma points
    Nov 18, 2015 @ 15:08
    Vasya Vankova
    1

    Exception Details: System.IO.IOException: The network path was not found.

    Hello,

    Here is an error I am getting at an Umbraco instance site:

    Server Error in '/' Application.
    The network path was not found.
    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.IO.IOException: The network path was not found.
    
    
    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:
    
    
    [IOException: The network path was not found.
    ]
       System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +14583904
       System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost) +1466
       System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost) +216
       umbraco.presentation.EnsureSystemPathsApplicationStartupHandler.ApplicationInitialized(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) +135
       Umbraco.Core.EnumerableExtensions.ForEach(IEnumerable`1 items, Action`1 action) +148
       Umbraco.Core.CoreBootManager.Initialize() +484
       Umbraco.Web.WebBootManager.Initialize() +57
       Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +122
    
    [HttpException (0x80004005): The network path was not found.
    ]
       System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12951237
       System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175
       System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304
       System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404
       System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475
    
    [HttpException (0x80004005): The network path was not found.
    ]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12968244
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12807949
    
    
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18446
    

    Has anyone encountered such an error? Thanks in advance!

  • Vasya Vankova 2 posts 103 karma points
    Nov 19, 2015 @ 10:41
    Vasya Vankova
    100

    I managed to resolve the issue. Here is the code of umbraco.presentation.EnsureSystemPathsApplicationStartupHandler.ApplicationInitialized which throws the error:

    https://searchcode.com/codesearch/view/95377319/

    In IIS the website has a virtual directory which was called "media". The path to the directory was incorrect and obviously EnsurePathExists(SystemDirectories.Media); threw the error. I changed the path to the directory with the correct one in IIS and the website started working.

Please Sign in or register to post replies

Write your reply to:

Draft