Nsight 4.5 can't debug .NET applications

I have an OpenGL application written in C#. When I try to debug the application using Nsight 4.5, I get the following error:

Launch failed : Unable to launch .\program.exe because architecture type is MSIL

This was previously possible, and now its not. Is there a way around this?

Hi IntelOrca,

Maybe you can try this:

  • build your code target x86 or x64, but not AnyCPU

This may jump over your issue, but if it still show no success, I have to say Nsight don’t official support .Net codes and binary files.


Thanks An, this fixed it.

A word of warning to the reader, switch your project to 32 bit - not 64 bit if possible. I spent 2 hours switching from MSIL to 64 bit only to run into the issue mentioned here: https://devtalk.nvidia.com/default/topic/894669/graphics-debugging-on-mixed-mode-applications-/?offset=5#5214180