Failure when using ILASM to compile IL to EXE
-
13-07-2021 - |
Question
I've spent hours trying to figure out what is wrong. I know the program is functional, as I tested by debugging the .il in MonoDevelop, however I can't compile through that. This is the log from the command prompt:
Any help appreciated.
Solution
Failed to write output file, error code=0x80070005
0x80070005 is an access denied error. You either don't have the rights to create a file into the directory, or you're trying to overwrite a file which is opened somewhere else.
OTHER TIPS
I kept getting this trying to compile an example from a book. What eventually worked for me was specifying the full path to the output parameter.
ilasm c:\folder\codefile.il /output=c:\folder\outfile.exe
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow