Open aliakbarzadeh2021 opened 2 years ago
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
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(IDictionaryb_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.AuthenticationMiddleware`1.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"
2 environment) in /_/src/Microsoft.Owin/Mapping/MapMiddleware.cs:line 72\r\n at Microsoft.Owin.Mapping.MapMiddleware.Invoke(IDictionary
2 environment) in //src/Microsoft.Owin/Mapping/MapMiddleware.cs:line 72\r\n at Microsoft.Owin.Mapping.MapMiddleware.Invoke(IDictionary`2 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(IDictionary
2 environment) in /_/src/Microsoft.Owin/Mapping/MapMiddleware.cs:line 72\r\n at Microsoft.AspNetCore.Owin.WebSocketAcceptAdapter.<>cDisplayClass6_0.<