Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > ClickOnce and SDF Files in another Project
 

ClickOnce and SDF Files in another Project

I want to include an SDF file in my click once deployment. The file that I want to include exists in another project that is not the same project as where it's being published from, but the project IS reference by this project. My SDF is set as "content," but it does not show up under application files when I want to publish. So when I deploye the exe cannot find the database.

Why doesn't the SDF show up under the application files? When I add it manually to this project it shows up (but bombs on launch after install). What's the correct way to make sure the SDF is included in the install without moving it out of my project.

Client.Exe --> BAL --> DAL (which contains references to SDF)

Thanks in advance for the help.
travich
travich  Tuesday, September 08, 2009 7:31 PM
The file has to be a part of the solution in order to be published with the application. You don't say if both projects are in the same solution. Are they?

You also don't say why it bombs on launch after install, but I would guess it has something to do with where you are deploying the sdf file, and the connection string you are using to access it.

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Wednesday, September 09, 2009 6:20 AM
The file has to be a part of the solution in order to be published with the application. You don't say if both projects are in the same solution. Are they?

You also don't say why it bombs on launch after install, but I would guess it has something to do with where you are deploying the sdf file, and the connection string you are using to access it.

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Wednesday, September 09, 2009 6:20 AM

You can use google to search for other answers

Custom Search

More Threads

• ClickOnce CAB Application
• vdproj: how to include all files from a directory?
• ClickOnce Deployment Issue
• Unable to set .NET 3.5 SP2 as a prerequisite
• Deployment failed at customer computer
• how to add more than one setup programs in a single setup file using c#
• Error received after installing SSL cert on DB server...
• app.config
• clickonce update error
• download issue about non-English filename