"Microsoft JScript runtime error: Invalid calling object


  • Hi,

    Im trying to run blank project in VS 2008, but it is giving me the following error : "Microsoft JScript runtime error: Invalid calling object" .

    I am facing the same error for all the projects. I'm using  Windows 7 OS.

    Tuesday, March 22, 2011 2:18 PM


  • Hi Durga Prasad Bhoga,

    Thanks for your post.

    You said run blank project, did you mean this error message occur when creating a project, or run/debug the project?

    To resolve the Visual Studio IDE issues, we can collect the log files and analyze them. Would you please follow the steps below to get the log files?

    1.       Open Visual Studio Command Prompt (2008) under Start menu -> All Programs -> Microsoft Visual Studio 2008  -> Visual Studio Tools (run it with Administrator privilege: right-click the program -> Run as administrator);

    2.       Enable Visual Studio log to logs all activity to the specified log path.
    Please try running Devenv.exe /log <log path> in Command Prompt, the log files will be generated in the <log path>. Then you can check and analyze the log file to see if there is anything incorrect.


    And below is some common troubleshooting steps:

    -          Try running devenv /Safemode to see if you can apply it correctly. This can eliminate the possibility that third party Add-ins or packages are causing problems.

    -          Reboot the machine into Safe Mode. This can isolate some third party application/driver's interference.

    -          Switch to try a new user account. This can rule out the possibility of corrupted user profile.


    Additionally, another useful tool is the Process Monitor tool: which can capture the access log.

    Filter on the process name devenv.exe in the log so that you see only the related list.

    This should give you more info on what are the registry keys/ files being accessed when the error happens.


    If you have any concerns, please


    Best Regards,

    Andrew Wu [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.

    Friday, March 25, 2011 5:33 AM