.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Desktop Deployment to machine with no SqlCe installed - app requires SqlCe4

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :

I have an application that works fine if SqlCe 4 is installed on the target machine.

I want to deploy this desktop application so that the user does not have to install SqlCe4

I have deployed  the SqlCe private folder the amd64 and x86 dlls
and made sure that the application references the System.Data.SqlServerCe.dll in the folder containing the application exe...

No joy - running the application across the network from my development machine works
but not from the machine to which it was deployed on which I have uninstalled SqlCe4


Exception Type : System.Data.SqlServerCe.SqlCeException
                   Errors : System.Data.SqlServerCe.SqlCeErrorCollection  

Message : Unable to load the native components of SQL Server Compact corresponding to the ADO.NET provider of version 8435. Install the correct version of SQL Server Compact. Refer to KB article 974247 for more details.
                   Source :
                ErrorCode : -2147467259  


View Complete Post

More Related Resource Links

access the SqlCE database from desktop pc

Hello,   I want to access the SqlCE database from the stand alone desktop application. DB is exist in the windows mobile. when i  connect the device to PC then i want to open the database and copy all the records to my desktop application database (access or sql server). Please suggest is it possible ? Thanks~Khatri Mitesh khatrimitesh@hotmail.com Software Developer Rajasthan-India http://www.youtube.com/watch?v=-oJaaPCrk3Q

Solution deployment requires executing execadmsvcjobs command on search server to complete deploymen

We have multiple Sharepoint 2007 farms and deploy custom code weekly to the farms. On one o the farms it is required to run stsadm -o execadmsvcjobs on the Search server in the farm in order for solution deployments to complete deploying. These are solution recycles that we are running. This is the only farm this happens on and all farms are identical. In central admin it shows the solution state as deploying. Farm Config Sharepoint 2007 SP2 w Dec Cumulative updates 1 WFE 1 Search server 1 SQL server

ClickOnce deployment fails if .NET Framework isn't installed

Hi,   I have noticed that installation of my application fails in some cases. If the user has .NET Framework installed the installation works. But if it's not installed then Click Once will install it, after asking the user to accept the EULA, installation will complete and the "Install"/"Don't install"-dialog appears. My application is downloaded and then fails with the error message:     Following errors were detected during this operation. * [2010-09-01 15:22:17] System.Deployment.Application.InvalidDeploymentException (ManifestLoad) - Exception occurred loading manifest from file Stoffi.exe: the manifest may not be valid or the file could not be opened. - Source: System.Deployment - Stack trace: at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath) at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath) at System.Deployment.Application.Manifest.AssemblyManifest..ctor(String filePath) at System.Deployment.Application.DownloadManager.ProcessDownloadedFile(Object sender, DownloadEventArgs e) at System.Deployment.Application.FileDownloader.DownloadModifiedEventHandler.Invoke(Object sender, DownloadEventArgs e) at System.Deployment.Application.FileDownloader.OnModified() at System.Deployment.A

Do SharePoint 2007 and VS2010 have to be installed to the same Windows Server machine?

For WSS 3.0 development using VS 2005, I learned that we need to install VSeWSS to the Windows Server where the WSS 3.0 was installed.  For MOSS 2007 development using VS 2010, do we need to have VS 2010  nstalled to the same Windows Server?  Thanks, Jeffrey

I installed .net FrameWork 4.0 (for Vista/Windows 7) and my Desktop Font is BOLD! (sometimes)

So at first, I installed the below: http://www.microsoft.com/downloads/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&displaylang=en Which is .net framework 4 (web installer), then I believe I tried the standalone. But then after I did the Redistributable 2.0 installer for Windows XP SP2, but I have SP3, does that just mean its included already? (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en)   My friend told me I needed this before I install Office 2010... I dont know!! So after I installed these different .net frameworks and then office. I have Mozilla crashing me, I disabled the framework assistant plug-in and still happens. Then, my FONT for desktop and start menu icons turns (larger/bold) but not within folders, only what shows without clicking into anything.... so.. 1.System Restore is not an option, that restore point is overwritten now... 2. This is not an appearance tab/settings issue with a larger DPI set or anything like that... Because, sometimes I click on my computer to restart and the font is all fine and will continue to be, othertimes, some program or something causes this to happen, I restart the PC and then its fine again... Can anyone tell me what I did wrong and how to fix it, easily.. if possible :) I have searched all over and while I've noticed people with simila

Per app install/copy of .net (instead of .net installed on the machine)


Is it possible for an application to have its own version of the .net runtime rather than have to depend on .net being installed on the machine?

I'm working on a java project that when installed, contains its own version of the java runtime in the application's directory (c:\programs\myapp\jre). My boss considering moving over to .net just as long as they don't have to depend on .net being installed on the target machine.



Detect SQL Express 2008 installed on machine


Hello all,

How cal I detect if SQL Express is installed on may machine through C#.





SSC 3.5 SP2 Private Deployment issue on Windows Mobile with SSC 3.5 (3.5.5386) installed


I want to deploy applications that use Private Deployment for SQL Server Compact 3.5 SP2 for Windows Mobile.
I made test sample according to SQL Server Compact 3.5 Service Pack 2 Books Online instructions.

I tested with WM 6.5 device and emulator.

I deploy to application folder on WM the following files:
C:\Program Files\Microsoft SQL Server Compact Edition\v3.5\Devices\System.Data.SqlServerCe.dll
C:\Program Files\Microsoft SQL Server Compact Edition\v3.5\Devices\wce500\armv4i\sqlceme35.dll
C:\Program Files\Microsoft SQL Server Compact Edition\v3.5\Devices\wce500\armv4i\sqlceqp35.dll
C:\Program Files\Microsoft SQL Server Compact Edition\v3.5\Devices\wce500\armv4i\sqlcese35.dll

The code is simple:
using (SqlCeConnection sqlCeConnection = new SqlCeConnection())
   button1.Text = sqlCeConnection.ServerVersion;

When I run my test on clean WM 6.5(with SSCE 3.1 in ROM), it's ok. Server version is 3.5.8080.0.

When I run my test on WM 6.5 with SSC 3.5 SP1 installed, test fails with the error:
The application is trying to load native components of version 5386 that are incompatible with ADO.NET provider of version 8080.
Incompatible versions can lead to application instability and hence loading of SQL Server Compact has been aborted.

SqlCe deployment - using Installshield express


ErikEj provided the answer as to what is required for a deployment to work with private assemblies for SqlCe

However when I attempt to use InstallShield express I cannot get the InstallShield deployment project to emit an exe that creates the required sub folders containing x86 and amd64 dlls.

When a sub folder is specified for the install folder an msi that does not work is emitted

Could anyone helf out there....


Client can't connect to WCF on deployment machine Windows 2003 Sp2 server .NET 3.5



I have a WCF service hosted in a Windows service application.  I have a Windows Form client that connects to it.  I am using net.tcp binding for two endpoints.   It all works fine in my environment, but when I deploy it on my cutomer's machine the client does not get a response from the service.

I ran netstat -na and I can see the endpoints listening.  I can even see the connection ESTABLISHED when my client runs the first method.  But my client times out and receives a "Could not communicate with XXX service.  This request operation sent to net.tcp..... did not receive a reply within the configured timeout (00.01.00) The time alloted... etc"

I tried removing all security from the configuration file, but that did not make a difference.

I reinstalled .NET Framework 3.5

I added     System.Net.ServicePointManager.DefaultConnectionLimit = 200 as suggested in another post.

I am creating a trace for the client and the server.  The server does not log any activity of a connection.  The client is catching a communication exception.

Any insight would be greatly appreciated.  What else can I try to see why the client is not able to chake hands with the server on this particular machine?

Many thanks,



Determine whether Forms Server is installed on a server

Check whether the Microsoft.Office.InfoPath.Server.dll and FormServer.aspx files are installed on the server.

Control your Pocket PC with your desktop

My Mobiler is a Free tool that allows you to use your desktop keyboard, mouse and monitor to navigate and control your Windows Mobile Pocket PC. With it you can view your Windows Mobile screen on your desktop PC. This makes it easy to "control your Windows mobile device with a desktop keyboard and mouse". Moreover, you can drag and drop files from your desktop to your windows mobile device, Cut and paste text from your desktop PC to your Windows mobile device and capture your windows mobile screen or even stream capture from your desktop PC.

Can't get an Icon to show for Desktop shortcut and Program Menu



I've created a SetupWizard, but can't get it to show the Icon for the shortcut on desktop and program menu. The installation goes fine without any errors, the only problem is the icon.

I've made a shortcut of my exe file in the Application Folder and dragged the shortcut to the Desktop folder, then on the shortcut properties, I assigned it an icon picture located in Application Folder.

Any suggestions will be very much appreciated.


Debugging ASHX after deployment



I'm finished with a part of my ASHX handler and need to test it against the software that'll be calling it using HTTP POST. The software required an https url so I created an internally hosted site in IIS and published the project there. 

Question now is how do I do any debugging on the script to see what data is coming out of it before the data goes back into the software that's calling it? Do I set something on the project itself to be able to step into the published DLL? 

Multiple MSIs from one deployment project


We have several .NET based products for which we need to generate multiple MSI files to allow for multiple instances of the same app to be installed on the same machine.  For instance, we might have a single server running version of the app that are pointed at either test or QA databases, or may use the same server box to deploy the product for multuple clients.  (So, for instance, our web server might have separate installs of the same code in different locations for product names "Client A test", "Client A QA", "Client B Test", etc., where the only real differences are in the web.cionfig files that are not overwritten by the install of a new version.)

Right now we simply have a deployment project for each named variation of the app.  This works, but is likely to become a maintenance mess as the number of instances grows.  We'd like to be able to maintain only a single deployment project and script the creation of multiple MSIs, one for each product variation, after the build of a baseline MSI.

As I understand it, this should be acheivable by building the MSI, then for each possible instance, making a copy of the MSI and giving it a unique ProductCode and PackageCode; this way Windows should recognize each instance as a unique application.  I've done this (as well as changing the produc

web deployment project (WS_deploy) on VS2008


I am building a asp.net webservice in VS2008 and the web service compiles and debug fine. The project should be using : Net 3,5

 I have

  1. VS2005 and VS208 installed
  2. .Net 1.1 - 3.5
  3. WebDeploymentSetup for VS2008 (and most likely a version for VS2005 as well)

But when I add a web deployment project the fun stops. The .WS_deploy project will not compile and I cannot find any precompiled output.

--------------debug output-------------------

------ Build started: Project: **************.DAL, Configuration: Debug Any CPU ------
Build started 13-08-2010 08:17:14.
Target EntityDeploy:
    Processing 0 EDMX files.
    Finished processing 0 EDMX files.
Target CoreResGen:
    No resources are out of date with respect to their source files. Skipping resource generation.
Target CopyFilesToOutputDirectory:
    **************.DAL -> C:\Development\VS2008\**************\**************.DAL\bin\Debug\**************.DAL.dll

Build succeeded.

Time Elapsed 00:00:00.14
------ Build started: Project: **************.BLL, Configuration: Debug Any CPU ------
Build started 13-08-2010 08:17:14.
Target EntityDeploy:
    Processing 0 EDMX files.
    Finished processing 0 EDMX files.
Target ResolveProjectReferences:
Target CoreResGen:
    No resources are out of

vs2010 web deployment project restarts w3svc even when restartwwwservice = false


We've updated some of our projects from VS2008 to VS2010.  When these projects are deployed the w3svc is restarted on the target machine, even when restartwwwservice = false in the vdproj file.


This was a problem in 2008 until SP1 (http://forums.asp.net/p/1300097/2534736.aspx).  Does this same problem exist in VS2010?


This is a major problem for us -  we need to be able to deploy projects without restarting IIS.


I've tried creating a new web deployment package and setting the restartWWWService field to false, but this still does a restart when it's installed.


Has anyone come across this problem in VS2010?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend