none
problem with vsa engine in Win7 RRS feed

  • Question

  • I get the following error, when I run my application in windows7, I'm using Microsoft.VisualBasic.Vsa.VsaEngine inside my applicaiton. Any idea? it is working fine with windowsxp

     

     

    Please contact the administrator with the following information:

     

    Executable name:

    C:\Program Files (x86)\DVTk\DVT\Bin\DVTCmd.exe

     

    Error type:

    System.Runtime.InteropServices.COMException

     

    Error description:

    Creating an instance of the COM component with CLSID {A138CF39-2CAE-42C2-ADB3-022658D79F2F} from the IClassFactory failed due to the following error: 80133005.

     

    Stack Trace:

       at Microsoft.VisualBasic.Vsa.VsaEngine.CreateEngine()

       at Microsoft.VisualBasic.Vsa.VsaEngine.CheckEngine()

       at Microsoft.VisualBasic.Vsa.VsaEngine.set_RootMoniker(String value)

       at DvtkScriptSupport.VsaScriptHost..ctor(String language, String moniker, String nameSpace)

       at DvtkScriptSupport.DvtkScriptHost..ctor(DvtkScriptLanguage language, String moniker, String importedAssemblyDir)

       at DvtkApplicationLayer.VisualBasicScript.GetDvtkScriptHost()

       at DvtkApplicationLayer.VisualBasicScript.Execute()

       at DvtkApplicationLayer.ScriptSession.Execute(BaseInput baseInput)

       at DvtCmd.DvtCmd.ExecuteScript()

       at DvtCmd.DvtCmd.Main(String[] arguments)

     

    Assembly information:

    mscorlib (4.0.0.0)

    DVTCmd (2.6.6.0)

    DvtkApplicationLayer (3.1.9.0)

    DVTK (3.1.9.0)

    DVTKManagedCodeAdapter (3.1.9.0)

    msvcm80 (8.0.50727.4940)

    System.Windows.Forms (4.0.0.0)

    System.Drawing (4.0.0.0)

    System (4.0.0.0)

    DvtkData (3.1.9.0)

    DvtkScriptSupport (3.1.9.0)

    System.Xml (4.0.0.0)

    Microsoft.Vsa (8.0.0.0)

    Microsoft.VisualBasic.Vsa (8.0.0.0)

    Microsoft.JScript (10.0.0.0)

    Microsoft_VsaVb (8.0.0.0)

     

    The OS version of the host computer is:

    Microsoft Windows NT 6.1.7601 Service Pack 1


    Regards, Anandakumar.R
    Tuesday, September 20, 2011 2:53 PM

All replies

  • Did you run the executable as an Adminisrator. i.e. right click the exe and select "Run As Administrator" ?
    Wednesday, September 21, 2011 4:02 AM
  • Hi,

    Thanks for your reply..

    The system was running in a administrator user only. Any idea?


    Regards, Anandakumar.R
    Wednesday, September 21, 2011 5:27 AM
  • Hi,

    May I know what the platform option your application built with? x86 or x64 or AnyCPU?

    And I am not familiar with Microsoft.VisualBasic.Vsa.VsaEngine. Is the COM valid both on 32-bit process and 64-bit process?

    Thank you for your posting and support.


    Paul Zhou [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, September 22, 2011 8:41 AM
  • hi Paul,

    In our development environment, the above things are working fine. Our development environment also having same as win7 64 bit. So I dont think the 32 or 64 bit matters here. In our testing environment we have installed only OS and .net, the application is running fine. But the script in vb is not working. I feel some dependencies are missing, when compare to the development environment.

    Can any one tell me, what action could solve this issue? Any .net update should I do?


    Regards, Anandakumar.R
    Thursday, September 22, 2011 9:48 AM
  • Hi,

    Found a similar issue which is closed in MS connect:

    http://connect.microsoft.com/VisualStudio/feedback/details/676215/vsaengine

    You need to install Windows Script Engine or VS IDE.


    Paul Zhou [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Paul Zhou Monday, October 3, 2011 5:44 AM
    • Unmarked as answer by Anandakumar.R Monday, October 3, 2011 10:03 AM
    Friday, September 23, 2011 7:31 AM
  • Hi paul,

    Thanks for your reply.

     

    could you please give me a link to download windows script engine for windows7? Because I could not find out

    Thank in advance


    Regards, Anandakumar.R
    • Edited by Anandakumar.R Tuesday, September 27, 2011 11:06 AM text modified
    Tuesday, September 27, 2011 10:58 AM
  • Well, it seems that Windows Script Host has been installed on Windows 7.

    I think you can try to enable it on Windows 7:

    How to Enable Windows Script Host in Windows 7


    Paul Zhou [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Paul Zhou Monday, October 3, 2011 5:44 AM
    • Unmarked as answer by Anandakumar.R Monday, October 3, 2011 10:03 AM
    Wednesday, September 28, 2011 5:24 AM
  • Hi Paul,

    The solution is not worked for me. Actually the script is not disabled in my test machine..

     

    Any other solution?


    Regards, Anandakumar.R
    Monday, October 3, 2011 10:06 AM
  • Hi,

    It looks like some security issues when starting the vsa engine form nunit testcase. I dont know how to fix. If I convert my script to exe and start from the nunit, It is working fine. 

    I hope some experts can have the answers for this. Please help me, what security needs to be enabled/disabled to run this?

    My Workflow is,

    My Nunit App-> Launches Command line App(script processor, compiles and runs the script uses the VSA engine )->launches the script

     


    Regards, Anandakumar.R
    • Edited by Anandakumar.R Wednesday, October 12, 2011 1:54 PM workflow added
    Wednesday, October 12, 2011 12:45 PM