Thursday, July 17, 2008

SQL Server 2008 RC0 and Visual Studio 2008 Interaction

You are using Visual Studio 2008 (Standard Edition in my case) and trying to use the data designer and just before you can access the database objects in the SQL Server 2008 RC0 which you have configured with SQLOLEDB you get this error:

An unexpected error has occurred.Error Message:Could not load type 'Microsoft.VisualStudio.DataDesign.SyncDesigner.SyncFacade.SyncManager' from assembly 'Microsoft.VisualStudio.DataDesign.SyncDesigner.DslPackage.Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

You would get the same message for other products as well,

Oracle 10G Xe
SQL Express 2005

Note with the earlier CTP's I could get away using ODBC and OLE DB Connectiviy as in, (unpublished)


With the RC0 installed I had to do two things to fix this problem.

Get hold of SSCERutime-ENU which is available from:
[Microsoft SQL Server Compact 3.5 SP1 Beta and Synchronization Services for ADO.Net v1.0 SP1 Beta]

The Windows installer (MSI) file installs the SQL Server Compact and Synchronization Services for ADO.Net desktop computer runtime components that are required for developing applications in Visual Studio 2008 SP1 Beta and for running SQL Server Compact-based applications on the desktop. The MSI file also installs with SQL Server 2008 CTP and Visual Studio 2008 SP1 Beta

-------Run this file and choose to remove it

2.Get hold of VS90sp1-KB955140-ENU [Microsoft Visual Studio 2008 SP1 Beta]
from this site:
----Run this file

Be prepared for a long wait for this to install. It almost took two hours on a laptop (two times I thought the program hung and cancelled and the third time I let it run while I read The Rig Veda by Wendy O'Flaherty [Penguin Classics] to brush up my religious studies).


Carly said...

I ran these steps but when I go to add a new Local Data Cache, I get the error "Microsoft Synchronization Services does not appear to be installed." Did step 1) remove Sync Services?

Jayaram Krishnaswamy said...

In 1. I quote from the SSCERUntime-ENU description that,

"The MSI file also installs with SQL Server 2008 CTP and Visual Studio 2008 SP1 Beta"

I already had MS SQL CE 3.5 during SQL Server 2008 RC0 install and at first tried VS 2008 SP1 and I get a error that CE could not be installed and the whole installation rolled back. Then I tried SSERuntime-ENU and tried the otion to modify. I get the same error this time when I tried to install the VS 2008 SP1.
Finally I came to the conclusion that since VS 2008 SP1 Beta installs it I tried the 'Remove' option while running SCERuntime-ENU. Then I decided to post it.

One nice thing about the Microsoft error installation time reporting was that the messages were clear available in Meesage, verbose, etc.

Anonymous said...

Thank you for the information...I had the same problem and your experience has helped me dramatically.

Niwel Abel Protection Status