Visual Studio 2005 Macros and 5744

Macros in Visual Studio seems to have stopped working in Vista RC2. When attaching to vsmsvr.exe exceptions are thrown when you try to run a macro from devenv.exe. From debugging the disassebly I think it is a access denied message. I also saw a string "Bad IL format" if that helps.

Anyone have an idea how to solve this issue without waiting for RTM or going back to RC1


Answer this question

Visual Studio 2005 Macros and 5744

  • MainSoft

    Ok, then I will have to live without macros. It worked back in 5728 so something has changed in Vista RC2. I get the same symtom as you that the maros does nothing. The exceptions doesn't show up until you attach to vsmsvr.exe that is the external process that executes Visual Studio macros.

  • Dave Evans

    I had installed SP1 when I first ran into the problem. I then uninstalled Visual Studio 2005 Completly and tried without SP1 and the same problem remained. I have also tried copying mscorlib.dll from the previous build of Vista without success.

    Here is the exception information with SP1 installed attached with managed debugging:

    A first chance exception of type 'System.BadImageFormatException' occurred in mscorlib.dll
    An exception of type 'System.BadImageFormatException' occurred in mscorlib.dll and wasn't handled before a managed/native boundary

    Additional information: Could not load file or assembly '20479 bytes loaded from mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. An attempt was made to load a program with an incorrect format.



  • kforrey

    I don't get any exceptions or other errors. But it does not work either. Running a macro does nothing. Debugging macros is the same... nothing happens. Probably this is something to be fixed in the RTM SP1.
  • Okugops

    Error 1234: User choose all defaults - was my issue (not really a error code but shoould be). Every once in a while I will run through an install just going the default route.

    1. Installed Vista 5744 (compiler x64)
    2. Installed Visual Studio 2005 (compiler x86)
    3. Installed Windows (compiler x64)
    4. Installed Visual Studio 2005 sp1 (compiler x86)

    Catch the problem As soon as I went back and included the optional compilers for vs and wsdk everything was all good, note if you do web there is an option to run as 32bit. My main question regards including the Itimium processor as well (I am running a pentium d) Hope this helps and is not off subject for everyone.


  • Mark Benningfield

    Have you tried installing VS2005 SP1 Beta VS2005 is not expected to work correctly in Vista without SP1. I don't know if SP1 Beta has anything to do with this but you can give it a try.


  • TPECI

    Same problem here...
  • the-rpd

    Hmm... this BadImageFormatException sounds strange... It happens that I also have Vista RC2... I'll try the macros from VS2005 a bit later to see what happens and let you know...
  • Karthikeyan Mahadevan

    OK, tried again and this time BadFormatImageException...
  • smartpi

    I tried that too. The debugger attaches and the Output window says

    "'vsmsvr.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled."

    And that's all. Nothing else happens.


  • Viktor78

    Has anyone gotten anywhere with this I am running into it too. I have a clean VistaRC2 install (32bit) followed by a clean VS2005 install (no SP1)

    Do we really just have to wait for VS2005 SP1 to resolve this

    thanks :-)

    -john


  • Imad.Ozone

    Clean install
  • SiddCF

    You would have to execute the macro in the other Visual Studio to see the exception (you would have to have two Visual Studio running, otherwise I don't know what will happen when you try to run the Macro). Also you might have to disable "Just My Code" option. I have symbols setup to download from microsoft symbols server so you might be missing symbols.

  • Abhishek bhadouria

    I've installed SP1 beta too.

    but It doesn't work. :(



  • Rykin Poe

    Did you do an upgrade to RC2, or did you do a clean install

  • Visual Studio 2005 Macros and 5744