Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find wwwroot Folder #52

Open
aliakbarzadeh2021 opened this issue Jun 3, 2022 · 1 comment
Open

Could not find wwwroot Folder #52

aliakbarzadeh2021 opened this issue Jun 3, 2022 · 1 comment

Comments

@aliakbarzadeh2021
Copy link

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"

@ysmoradi
Copy link
Member

ysmoradi commented Jun 4, 2022

Hi, it seems aspnetcore / angular is somehow broken

This repo is using an approach which is not supported really in dotnet 5 & 6

For now, run npm install and then build the angular project seems to fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants