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.

dotnet build fails with COM exception on Win7

See original GitHub issue

You can use the code under https://github.com/aspnet/dnx-watch

C:\Users\victorhu\dev\dnx-watch\src\Microsoft.DotNet.Watcher.Core>dotnet build
Compiling Microsoft.DotNet.Watcher.Core for DNXCore,Version=v5.0
C:\Users\victorhu\AppData\Local\Microsoft\dotnet\cli\bin\dotnet.exe compile-csc @C:\Users\victorhu\dev\dnx-watch\src\Microsoft.DotNet.Watcher.Core\obj\Debug\dnx
core50\dotnet-compile.rsp returned Exit Code 1
C:\Users\victorhu\dev\dnx-watch\src\Microsoft.DotNet.Watcher.Core\error CS0041: Unexpected error writing debug information -- 'Unable to cast COM object of type
 'System.__ComObject' to interface type 'Microsoft.Cci.ISymUnmanagedWriter5'. This operation failed because the QueryInterface call on the COM component for the
 interface with IID '{DCF7780D-BDE9-45DF-ACFE-21731A32000C}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002
(E_NOINTERFACE)).'

Compilation failed.
    0 Warning(s)
    1 Error(s)

Time elapsed 00:00:03.4682894

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:25 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
JumpingYang001commented, Feb 26, 2016

I meet same error and fixed when I install “Visual C++ Redistributable for Visual Studio 2015”: https://www.microsoft.com/en-hk/download/details.aspx?id=48145

0reactions
blackdwarfcommented, Jul 27, 2016

I believe that for Windows installers this is now fixed. For the zips it is still not fixed, however. The question becomes to we want to keep this issue for tracking or no.

/cc @gkhanna79 @piotrpMSFT

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet build fails with COM exception on Win7 · Issue #5177
This error went away after installing VS2015. @piotrpMSFT is this an expected limitation, not being able to run without VS?
Read more >
Build fails when you deploy a component - .NET Framework
When this error occurs, the build will fail because the object couldn't be loaded in the Windows form designer. Status. Microsoft has confirmed ......
Read more >
Strange Build Error .Net Core Project
Note: Build error occurs on a Windows 10 machine and a Windows 7 machine, but build does work on another Windows 7 machine....
Read more >
When building platforms x86 and x64 consecutively, one of ...
When building platforms x86 and x64 consecutively, one of them will fail to build with error NETSDK1047.Closed - Lower Priority0 4.
Read more >
Building effect file fails because of wrong .NET Core version
Using the MGCB Editor I am not able to build effects / shaders. ... App&framework_version=3.1.0&arch=x64&rid=win7-x64.
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