locked
RegAsm error because it is not a valid .NET assembly using VS2005 RRS feed

  • Question

  • I have a COM object written in C# that I imported from a VS2003 project into VS2005.  It builds without error but when I attempt to register the component using RegAsm I get the following error:

    1>RegAsm error: Failed to load 'H:\SDTSteamboat\Version_2X\SDTPostProcessingLib\bin\Debug\SDTPostProcessingLib.dll' because it is not a valid .NET assembly

    Any idea what is causing this problem? 

    The project builds and registers correctlying using  VS2003 and the old project files.

    At the moment I have to support both VS2005 builds and VS 2003 builds of this component.

    Wednesday, July 19, 2006 3:04 PM