rzc discover exited with code -2147450743

Viewed 4569

I am getting the error

"rzc discover exited with code -2147450743"

...error when i try to compile my web app. When I click on the error it takes me to the RazorTagHelper line:


   <RazorTagHelper
             Debug="$(_RazorDebugTagHelperTask)"
             DebugTool="$(_RazorDebugTagHelperTool)"
             ToolAssembly="$(_RazorToolAssembly)"
             UseServer="$(UseRazorBuildServer)"
             ForceServer="$(_RazorForceBuildServer)"
             SuppressCurrentUserOnlyPipeOptions="$(_RazorSuppressCurrentUserOnlyPipeOptions)"
             PipeName="$(_RazorBuildServerPipeName)"
             Version="$(RazorLangVersion)"
             Configuration="@(ResolvedRazorConfiguration)"
             Extensions="@(ResolvedRazorExtension)"
             Assemblies="@(RazorReferencePath)"
             ProjectRoot="$(MSBuildProjectDirectory)"
             TagHelperManifest="$(_RazorTagHelperOutputCache)">
             <Output
               TaskParameter="TagHelperManifest"
               ItemName="FileWrites"/>
           </RazorTagHelper>

Things that I've done to try fix the error

  • Updated .Net Core to 2.1
  • Repair VS2019
  • Updated VS2019
4 Answers

I was getting the same error and this is how I resolved it.

I have multiple .NET SDKs installed, so trust me this wasn't the issue for me.

  • I looked at the Output window when the Rebuild Solution gave me that error.
  • In the output window I noticed that there was an SDK missing error. I just installed the specific SDK and restarted Visual Studio.
  • When performed Rebuild solution the next time, it built successfully

I solved it by going to Visual Studio Installer > Modify > Individual Components, and select the component that I was missing eg. Netcore 2.2. enter image description here

It indicates missing runtime version. It may be that there are two versions of runtime version installed in the computer.

enter image description here

I solved it by Reinstalling .NET SDk.

Related