https://localhost:50689 access is denied
i would like to know why ?
Describe the bug
{"message":"An unhandled exception occurred.","exception":"System.UnauthorizedAccessException: Access to the path 'C:\Users\User\Application Data' is denied.\r\n at System.IO.Enumeration.FileSystemEnumerator1.CreateRelativeDirectoryHandle(ReadOnlySpan1 relativePath, String fullPath)\r\n at System.IO.Enumeration.FileSystemEnumerator1.MoveNext()\r\n at System.Collections.Generic.LargeArrayBuilder1.AddRange(IEnumerable1 items)\r\n at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable1 source)\r\n at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)\r\n at System.IO.DirectoryInfo.GetFiles(String searchPattern, EnumerationOptions enumerationOptions)\r\n at System.IO.DirectoryInfo.GetFiles(String searchPattern, SearchOption searchOption)\r\n at MLS.Agent.Tools.FileSystemDirectoryAccessor.GetAllFilesRecursively() in F:\\workspace\\_work\\1\\s\\MLS.Agent.Tools\\FileSystemDirectoryAccessor.cs:line 85\r\n at MLS.Agent.Markdown.MarkdownProject.GetAllMarkdownFiles() in F:\\workspace\\_work\\1\\s\\MLS.Agent\\Markdown\\MarkdownProject.cs:line 41\r\n at MLS.Agent.Controllers.DocumentationController.ShowIndex() in F:\\workspace\\_work\\1\\s\\MLS.Agent\\Controllers\\DocumentationController.cs:line 92\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)"}
Did this error occur while using dotnet try or online?
- [x]
dotnet-trydotnet try Hosting environment: Production Content root path: C:\Users\User.nuget\packages\microsoft.dotnet-try\1.0.20474.1\tools\netcoreapp3.1\any Now listening on: https://localhost:50689 Application started. Press Ctrl+C to shut down.
What kind of error was it?
- [ ] User Interface (UI): For example the output never displayed
- [ ] Service Error: For example "The service is temporarily unavailable. We are working on it"
- [x] Other:
Please complete the following:
-
OS
- [x] Windows 10
-
Browser
- [x] Edge
Did you find solution for this?
I have the same issue, it seems that dotnet-try can't access any symlink that belongs to System.
singe i have forgotten this, i did elevate mode "developpeur" with powershell. i don't know why and with 'site or idea' but it's done
@malre thank you, it worked for me using Visual Studio Developer PowerShell
Looks like this has been hosed since... 2021?
Not exactly a great way to get new devs to try out C#/.Net for the first time or sell it to other experienced devs.