Skip to content

Could not find wwwroot Folder #52

@aliakbarzadeh2021

Description

@aliakbarzadeh2021

When I Run Web Project Occurs this Exception :

System.IO.DirectoryNotFoundException: Could not find a part of the path '...\ToDoLine\ToDoLine\wwwroot\index.html'.\r\n at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)\r\n at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)\r\n at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)\r\n at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)\r\n at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)\r\n at System.IO.File.AsyncStreamReader(String path, Encoding encoding)\r\n at System.IO.File.InternalReadAllTextAsync(String path, Encoding encoding, CancellationToken cancellationToken)\r\n at Bit.Owin.Middlewares.IndexPageMiddleware.Invoke(HttpContext context)\r\n at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)\r\n at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)\r\n at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)\r\n at Microsoft.Owin.Mapping.MapMiddleware.Invoke(IDictionary2 environment) in /_/src/Microsoft.Owin/Mapping/MapMiddleware.cs:line 72\r\n at Microsoft.Owin.Mapping.MapMiddleware.Invoke(IDictionary2 environment) in //src/Microsoft.Owin/Mapping/MapMiddleware.cs:line 72\r\n at Microsoft.Owin.Mapping.MapMiddleware.Invoke(IDictionary2 environment) in /_/src/Microsoft.Owin/Mapping/MapMiddleware.cs:line 72\r\n at Microsoft.Owin.Mapping.MapMiddleware.Invoke(IDictionary2 environment) in //src/Microsoft.Owin/Mapping/MapMiddleware.cs:line 72\r\n at Microsoft.Owin.Mapping.MapMiddleware.Invoke(IDictionary2 environment) in /_/src/Microsoft.Owin/Mapping/MapMiddleware.cs:line 72\r\n at Microsoft.AspNetCore.Owin.WebSocketAcceptAdapter.<>c__DisplayClass6_0.<<AdaptWebSockets>b__0>d.MoveNext()\r\n--- End of stack trace from previous location ---\r\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\r\n at Microsoft.Owin.Security.Infrastructure.AuthenticationMiddleware1.Invoke(IOwinContext context) in /_/src/Microsoft.Owin.Security/Infrastructure/AuthenticationMiddleware.cs:line 30\r\n at Microsoft.AspNetCore.Owin.WebSocketAcceptAdapter.<>c__DisplayClass6_0.<b__0>d.MoveNext()\r\n--- End of stack trace from previous location ---\r\n at Bit.Owin.Middlewares.DisposePipelineAwareDisposablesMiddleware.Invoke(HttpContext httpContext)\r\n at Bit.Owin.Middlewares.AspNetCoreExceptionHandlerMiddleware.Invoke(HttpContext context)",
"ExceptionAdditionalMessage": "Request-Execution-Exception",
"ExceptionType": "System.IO.DirectoryNotFoundException",
"ExceptionTypeAssemblyQualifiedName": "System.IO.DirectoryNotFoundException, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions