COM Interop with VBScript on 64 Bit Windows 7/ Server 2008 RRS feed

  • Question

  • We are running into an issue with accessing a .NET DLL, compiled AnyCPU, from VBScript via COM Interop.  We are using the standard %windir%\Microsoft.Net\framework\v4.0.30319\regasm command to create a tlb file off the dll, which is also in the GAC.  We have been unable to get the VBS to successfully call the script, and have tried the following:

    • running via command prompt.
    • running via cscript.exe
    • running via 32bit command prompt (syswow64)
    • running via 32bit cscript.exe (syswow64)

    At this point, we are trying to trace out what the sequence of compile bitness, regasm version, cscript version, etc will be required to get COM interop working in 64Bit Win7 or Server 2008.

    Friday, June 14, 2013 4:05 PM