Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2006

Tip: Looking for answers? Try searching our database.

ClickOnce doesn't include data files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve Teeples - 09 Jun 2006 23:51 GMT
I have an application that I'd like to deploy via ClickOnce from a NETWORK
share server.  I've walked through the wizard and deployed the application,
but when I run the app all of my data files are missing.  I have XML, TXT and
custom data files that my application uses during execution.  How do I get
ClickOnce to install those data files along with my DLLs and EXE file?
Signature

-----------
Thanks,
Steve

Marcus Heege - 10 Jun 2006 08:53 GMT
Hi Steve,

>I have an application that I'd like to deploy via ClickOnce from a NETWORK
> share server.  I've walked through the wizard and deployed the
[quoted text clipped - 3 lines]
> custom data files that my application uses during execution.  How do I get
> ClickOnce to install those data files along with my DLLs and EXE file?

Have you added the files as "content" files to your project?
Can you see them in the "Application Files" dialog that appears if you click
the Project Settings/Publish/"Application Files ..." button?
Steve Teeples - 10 Jun 2006 16:43 GMT
The files are not linked to my EXE project.  The files are associated with
libraries that are linked into my overall project build.  I noticed that data
files linked directly to the EXE project are brought over as data files, but
files associated with libraries are not.  I'm thinking I need to redesign my
program to either put the files into resources or have them reference in the
main EXE project.  What do you think?
Signature

-----------
Thanks,
Steve

> Hi Steve,
>
[quoted text clipped - 9 lines]
> Can you see them in the "Application Files" dialog that appears if you click
> the Project Settings/Publish/"Application Files ..." button?
james - 11 Jun 2006 17:54 GMT
> The files are not linked to my EXE project.  The files are associated with
> libraries that are linked into my overall project build.  I noticed that
[quoted text clipped - 6 lines]
> the
> main EXE project.  What do you think?

I usually add Data files ( like an Access database for example) to a folder
in my project and on startup of my application I use Application.StartupPath
or :

(be sure to include System.Reflection at the top of the Class where this is
used)
Path.GetDirectoryName([Assembly].GetExecutingAssembly().Location)

to direct my program to the database.  That way, when I used ClickOnce
Deployment, the folder and the database will be included in the
installation.
james
Linda Liu [MSFT] - 12 Jun 2006 03:04 GMT
Hi Steve,

Thank you for posting.

Yes, I think you should add the XML, TXT and custom data files to your EXE
project in order to publish these files along with your DLLs and EXE file  
via ClickOnce.

Sincerely,
Linda Liu
Microsoft Online Community Support

====================================================
When responding to posts,please "Reply to Group" via
your newsreader so that others may learn and benefit
from your issue.
====================================================

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.