.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

Private deployment: CRT binary not signed?

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :

I want to use SQL CE 4 in my WPF application. I've added the contents of SQLCE's Private/ folder to my project and modified the app.config, as described here. The application worked fine with SQL CE 4 before I switched to private deployment.

When I run the application, I get a SqlCeException, the message roughly translates to "The CRT binary in the application/bin folder is not signed and might pose a security risk. Put the original Microsoft CRT binary in the application/bin folder."

I used Windows Explorer to check all dll's in the x86/Microsoft.VC90.CRT and amd64/Microsoft.VC90.CRT folders, they are digitally signed.

View Complete Post

More Related Resource Links

MSSQL CE 3.5 SP2 Private Deployment

I use Visual C# express 2008 for my development.  I use MSSQL CE3.5 SP1 and have deployed this will my application for over a year as a private deployment (just included all the DLLs in my project).  This has worked well and kept me from being dependent on the product deployments.  I am running into an issue with the application deploying on Windows 7 64-bit home edition.  From my readings it seems that I need to upgrade to the MSSQL CE 3.5 SP2 but the indication is that I need to deploy 32-bit and the 64-bit SP2 for the 64-bit environements.  Since my development environment is on Windows XP I have not found a way to obtain the 64-bit version of the DLLs to include in my project as a private deployment.  Can I do this?  Is there a better way?  Where can I get the 64-bit DLLs. Thanks in advance for any help anyone can provide.David Allen

private deployment of SQL CE & accesss from unmanaged code. Possibel?



is it possible to access an sql ce database from unmanaged code, if i do private deployment? Unfortunatelly we have some  scenarios where we must assume that neither .net frameork nor sql ce is installed. Do we have any chance to use sql-ce in this scenarios?

Thanks in advance!










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.

Private deployment of SQL CE 3.5 SP2 on .NET 4.0 blocked by no aparrent way to private deploy the Vi


I find many discussion threads on this topic, some a lot clearer than others, but I really am trying to avoid having to include either the .NET Framework 2.0 or Visual C++ Runtime 2005 in my ClickOnce deployment of a .NET 4.0 application for which I strongly want to do a private deployment.  I'm deploying to hundreds to thousands of machines outside of the corporate umbrella, and I really want to minimize the number of dependencies outside the application.  My current goal is to keep it to JUST .NET 4.0 (and the windows installer to support that).  However, installs on clean Windows XP SP2 and SP3 machines fail to load the private deployment of SQL CE engine.  It's frustrating that everyone seems to give up and fall back on doing full installs of more prereqs.

Based on reviewing the threads out there, I feel pretty confident that I understand the problem, and I can get it to work by just my .NET 4.0 ClickOnce prereq and then a manual install of the Visual C++ 2005 Runtime redistributable.  Therefore, I am convinced I have everything working other than the VC runtime.  As far as I have read, I am supposed to be able to do a "private assemblies" deployment of the VC runtime as well by including in my copy deployment the Microsoft.VC80.CRT and Microsoft.VC80.MFC that are available under a VS.NET 2005 install.

VB2008 Express and SQL Server CE 3.5 private deployment issues


Windows Forms application developed with VB 2008 Express.
Using private deployment as described in SQL Server Books Online.
Deploying SQL CE version 3.5.8080.0.
Development system is 32 bit Windows 7 Home Premium SP1 version 6.1.7601.65536.
System installed SQL CE version is 3.5.8080.0.

For several months of development there have been no issues with this setup.  A month or so ago I began getting an occasional error message while making updates to the application in the development environment.  The message dialog would come in waves of three several minutes apart and would subside once I rebuilt the project.  The error message is "Unable to load the native components of SQL Server Compact corresponding to the ADO.NET provider version 8080".
The application uses a designer generated DataSet.  While trying to add an additional TableAdapter from the DataSet to the main form the above mentioned error dialog, for which I would click OK, would try to prevent changes from being made.  After several design environment restarts and restoring the impacted form.Designer.vb and .resx files I could finally complete making changes in the form designer.

The changes in the designer were not carried over into the

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?

Web deployment project - web.config section replacement does not add remove tag


I have a web application that is actually installed as a component of a third party site.  In some configurations, I need to remove certain connection strings and re-add them.  I'm replacing this web.config section with a xml file that includes the following:

      <remove name="MyOverridenConnection"/>
      <add connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=MyDb;Data Source=MyServer" name="MyOverridenConnection"

For some reason the remove tag is left out during the substitution and I end up with the following in the installed config:

      <add connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=MyDb;Data Source=MyServer" name="MyOverridenConnection"

Is there any way to issue removes in replaced sec

Web Deployment - Setup failing - aspnetca.exe


I have created websetup in windows 7 environment, asp.net 3.5, IIS 7.

Client System is windows 7 and IIS 7

Our client configuration is Windows 7, IIS7 dotNet Framework 3.5.
Following error raising below...
Faulting application name: aspnetca.exe, version: 7.5.7600.16385, time stamp: 0x4a5bcd3c
Faulting module name: aspnetca.exe, version: 7.5.7600.16385, time stamp: 0x4a5bcd3c
Exception code: 0xc0000005
Fault offset: 0x0001d912
Faulting process id: 0xe80
Faulting application start time: 0x01cb3604624975cd
Faulting application path: C:\Windows\system32\inetsrv\aspnetca.exe
Faulting module path: C:\Windows\system32\inetsrv\aspnetca.exe
Report Id: a05d368d-a1f7-11df-8336-4487fc612414
PFA Here I"m attaching custom action script. 

Web Deployment with IIS settings of remote server


Im trying to deploy a web application project (VS 2010) via team build (TFS 2010), i got to use IIS settings of development server for deployment. So from the project properties I configured the web projects to use Custom web server, (enabled radio button), once i do this the Option in the tab Package/Publish Web "Include all IIS Settings as configured in IIS manager" gets disabled and as a result the deployed web project does not have this IIS settings.

What am I missing here, Im not using the option "Use local IIS Web Server" because the build happens in a build server and would try to take local IIS settings for packaging which is not present.

If this is not possible, suggest me any workaround. Any help on this is greatly appreciated.

Could not load file or assembly - Web Deployment Project



I have the following projects in a solution :

- A Web Application

- A Class Library

- A Web Deployment project

The Web Application compiles and run fine when I don't go through the Web Deployment Project. However when I try to use that, I get the following error:

Error 1 An error occurred creating the configuration section handler for hibernate-configuration: Could not load file or assembly 'NHibernate' or one of its dependencies. The system cannot find the file specified. (F:\Folke\Folke.csproj_deploy\Release\web.config line 4) 1 1 Folke.csproj_deploy

"An error occurred creating the configuration section handler for hibernate-configuration: Could not load file or assembly 'NHibernate' or one of its dependencies. The system cannot find the file specified. (F:\Folke\Folke.csproj_deploy\Release\web.config line 4)"

This is the beginning of my Web.config:


SMTP not working if I use web deployment package to deploy my app.


Hi all

I use msdeploy to install my web app. deployment package. everything about web app works, but find out email was not working.

I checked telnet smtp is running.

I debug the project, and it was sending out email too.

So my solution was upload the whole project (not complied) to wwwroot, and email works too. Thats why I assume the deployment cause the problem.

at last, I also tried to copy the web deployment web.config to replace the project's web.config, and the email also work, so it wasn't the web.config problem.

Could anyone tell me whats going on?

My environment:

window 2003

iis 6

.net framework 4.0

Web Deployment Projects (WDP) arabic character



I built web project using asp.net & c# in VS2005 and i use arabic label in my project and every think working good when i run my application. but when i use WDP to make msi file All arabic letter come like ?????. 


Visual Studio Web Deployment Project for VS 2008


What is the latest version of Visual Studio web deployment project which I can use with  VS 2008 ?

Can I use VS 2010 Web Deployment Project with  VS 2008 ?


MOSS 2007: Automate Web App Deployment with the SharePoint API


Learn how to automate custom SharePoint application deployments, use the SharePoint API, and avoid the hassle of custom site definitions.

E. Wilansky, P. Olszewski, and R. Sneddon

MSDN Magazine May 2008

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