question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Server initialization failed.

See original GitHub issue

Razor.VSCode version 6.0.0-alpha.1.20418.9

Razor’s trace level is currently set to ‘Off’

  • To change Razor’s trace level set ‘razor.trace’ to ‘Off’, ‘Messages’ or ‘Verbose’ and then restart VSCode.
  • To report issues invoke the ‘Report a Razor issue’ command via the command palette.

[Error - 7:25:38 PM] Server initialization failed. Message: Internal Error - System.UnauthorizedAccessException: Access to the path ‘c:\Documents and Settings’ is denied. at System.IO.Enumeration.FileSystemEnumerator1.CreateRelativeDirectoryHandle(ReadOnlySpan1 relativePath, String fullPath) at System.IO.Enumeration.FileSystemEnumerator1.MoveNext() at System.Collections.Generic.LargeArrayBuilder1.AddRange(IEnumerable1 items) at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption) at Microsoft.AspNetCore.Razor.LanguageServer.ProjectConfigurationFileChangeDetector.GetExistingConfigurationFiles(String workspaceDirectory) in /_/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/ProjectConfigurationFileChangeDetector.cs:line 119 at Microsoft.AspNetCore.Razor.LanguageServer.ProjectConfigurationFileChangeDetector.StartAsync(String workspaceDirectory, CancellationToken cancellationToken) in /_/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/ProjectConfigurationFileChangeDetector.cs:line 56 at Microsoft.AspNetCore.Razor.LanguageServer.RazorFileChangeDetectorManager.InitializedAsync() in /_/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorFileChangeDetectorManager.cs:line 46 at Microsoft.AspNetCore.Razor.LanguageServer.RazorLanguageServer.<>c__DisplayClass9_0.<<CreateAsync>b__3>d.MoveNext() in /_/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorLanguageServer.cs:line 83 --- End of stack trace from previous location --- at OmniSharp.Extensions.LanguageServer.Server.LanguageServer.MediatR.IRequestHandler<OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeParams,OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult>.Handle(InitializeParams request, CancellationToken token) at OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestPostProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at MediatR.Pipeline.RequestPreProcessorBehavior2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate1 next) at OmniSharp.Extensions.JsonRpc.RequestRouterBase1.RouteRequest(TDescriptor descriptor, Request request, CancellationToken token) Code: -32602

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gregg-miskellycommented, Oct 13, 2020
0reactions
NTaylorMullencommented, Jun 20, 2021

I opened VS Code in C:\ “folder” and got same results. Is VS Code meant to be opened only in folders containing code?

Oooooo interesting. You can definitely open it wherever, it’s just not “as expected” when you open it at that level because all of your extensions & vscode itself will try to make sense of your entire C drive 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Server initialization failed Error: 0XE001003E
If a Windows Resource Protection (WRP) file is missing or is corrupted, Windows may not behave as expected. For example, some Windows functions ......
Read more >
Error: Initialization failed Unable to start the server cdpmgr - IBM
Receiving Error: Initialization failed. Symptom. Error: Initialization failed. Unable to start the Sterling Connect:Direct server cdpmgr. Cause.
Read more >
ERROR: Guppy server initialization failed. · Issue #152 - GitHub
This might be unrelated, but it looks like you are using a CPU guppy installation ( ont-guppy-cpu ), but specifying GPU resources (...
Read more >
Server initialization failed with an error 0xe001003e | AVG
I received error during startup flashing on my screen stating "Server initialization failed with an error 0xe001003e" and it keeps annoying ...
Read more >
Server Fails to Initialize - SAP Help Portal
A serious issue causes one of the server components to fail to initialize. The server is not in a working state. Workaround. Work...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found