try icon indicating copy to clipboard operation
try copied to clipboard

https://localhost:50689 access is denied

Open malre opened this issue 4 years ago • 5 comments

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-try dotnet 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

malre avatar Sep 26 '21 13:09 malre

Did you find solution for this?

sandeep135 avatar May 17 '22 19:05 sandeep135

I have the same issue, it seems that dotnet-try can't access any symlink that belongs to System.

devjam1 avatar Jul 16 '22 23:07 devjam1

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 avatar Jul 17 '22 10:07 malre

@malre thank you, it worked for me using Visual Studio Developer PowerShell

devjam1 avatar Jul 17 '22 23:07 devjam1

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.

douglasg14b avatar Apr 17 '23 04:04 douglasg14b