Vshost.exe has stopped working

While working with the Microsoft Sync Framework, I kept coming across an error while debugging an application that syncs data from a server data source to a local cache in a SQL Server Compact database. I was using the Sync Designer that ships with Visual Studio.NET 2008. I started by creating a Windows Form Application, then when I went to debug the sync object, I received the “vshost.exe has stopped working” error in the image below.

Next, I tried to start the application without debugging. This time I got a different error: “Unable to load DLL ‘sqlceme35.dll’: The specified module could not be found.”

I found a solution that resolved both of these errors. You need to set the CPU to x86 in the debugging menu. Next to the Debug button on the toolbar, there is a drop-down box that lists Any CPU.

After changing this setting to x86, the debugging can be completed without errors.

Share

Posted Monday, February 15th, 2010 at 2:20 pm by peterl
6,449 views

One Response to “Vshost.exe has stopped working”

  1. Dul says:

    Hi, i facing same problem, my vshost.exe has stopped working.
    I am using visual studio 2005 on windows 7 unlimited 32 bit.
    And has try your solution but still got the problem.
    Can you help? thank you