Using the connection file through IDataServerManager::InitFromFile does not cause this problem.string strPath = "<a href="file:c://Temp//" target="_blank">c:\\Temp\\</a>";string strServerName = @"alagiri\sqlexpress";IDataServerManager pDSManager = new DataServerManagerClass();string strFileName = strServerName.Replace("\\", "_") + ".GDS";//check if the connection file exists if not create one in the temp folder.if (!<a href="http://System.IO" target="_blank">System.IO</a>.File.Exists(strPath + strFileName)){ pDSManager.ServerName = strServerName; //'Connect to the Data Server pDSManager.Connect(); pDSManager.CreateConnectionFile(strPath, pDSManager.ServerName); pDSManager.Disconnect();}//Initialize the data serverpDSManager.InitFromFile(strPath + strFileName);