Skip to content

Building MIDebugEngine solution requires elevated user #1514

Description

@R2RT

I had some problems with building MIEngine following the instruction to Visual Studio and run "Build Solution" (as in https://github.com/Microsoft/MIEngine/wiki/Building-the-MIEngine).

I kept having strange errors that Microsoft.VisualStudio.Debugger.Interop symbols are missing. After some digging I've learned that ilasm.exe were unable to compile relevant DLLs.

D:\Work\tools\MIEngine\bin\Debug\PIA>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\ilasm.exe /nologo /quiet /dll ./drop/Microsoft.VisualStudio.Debugger.InteropA-portable.il /output=D:\Work\tools\MIEngine\bin\Debug\PIA\drop\Microsoft.VisualStudio.Debugger.InteropA.dll /RESOURCE=./drop/Microsoft.VisualStudio.Debugger.InteropA.res
Could not create output file, error code=0x80070005

***** FAILURE *****

The error itself is quite cryptic, but apperently ilasm requires elevated user access to work. The only guess I found it may be needed for DLL signing: https://stackoverflow.com/questions/12992879/failure-when-using-ilasm-to-compile-il-to-exe.

Once I've started whole Visual Studio process as administrator, the errors went away.

I don't know if this can be fixed (signing be optional?), but maybe this report will help someone with similar issue in the future.
"Run as Administrator" trick could be also noted in wiki.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions