473,769 Members | 4,584 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Publishing not including XML, XMS files

I have a simple application built with several DLLs that access XML files for
information. My local setup works just fine. As defined in my Install
folder, the files are copied to the "applicatio n folder" and the DLLs find
them just fine.

However, when I publish the same application to a local server for users to
use the "click once" install feature, my XML, XMS files are NOT copied to the
local machine's application folder. All other files are copied just fine.
Can someone tell me why those files are not included in the "click once"
install?
--
-----------
Thanks,
Steve
Jun 8 '06 #1
3 7096
Hi Steve,

Thank you for posting.

Firstly, please check the value of Build Action property of the xml file in
your project . To check this value, right-click the xml file in Solution
Explorer and select the Properties command. In the Property window, you
could see the value of Build Action property of the xml file.

If the xml file's Build Action property is set to "None" or "Compile" or
"Embedded Resource", the file has no chance to be published. For publishing
the xml file, please set the Build Action property of the file to "Content".

Secondly, you should set the Publish Status of the xml file correctly. Open
the Project Designer page(right-click the Project icon in Solution Explorer
and select the Properties command) and click the "Applicatio n Files.."
button opening an Application Files dialog box. In this dialog box, you
will see the xml file is listed in the listbox. To include the file in the
manifest and copy to the publish location when the publish command is
executed, you should set the Publish Status of the xml file to "Data File"
or "Include". The only difference between these two choices is that the
file will be located in different folders after end users install the
program.

If you set the Publish Status to "Data File", the xml file will be located
in a data directory which is stored in the user's Documents and Settings
folder after the ClickOnce application is installed on an end user's
machine. For information on reading from and writing to the Data Directory,
please refer to the following link.
http://msdn2.microsoft.com/en-us/lib...wy(d=ide).aspx

If you set the Publish Status to "Include", the xml file will be located in
the Application Directory where the application's executable (.exe) files
and assemblies reside. In this case, you could access this xml file
directly by a relative path.

Hope this is helpful to you.
If you have any other concerns or need anything else, please don't hesitate
to let me know.


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.
=============== =============== =============== =======

Jun 9 '06 #2
Linda,

Your explanation below was very useful. The details work well when the data
file is in the project containing the EXE. However, I am linking into my EXE
some DLLs that are created for my application. These DLLs reference specific
data files (XML, TXT, etc.). It is these data files that are not included in
the "Applicatio n Files..." list. How do I get data files from my DLL
libraries to also be included and copied by ClickOnce?

--
-----------
Thanks,
Steve
"Linda Liu [MSFT]" wrote:
Hi Steve,

Thank you for posting.

Firstly, please check the value of Build Action property of the xml file in
your project . To check this value, right-click the xml file in Solution
Explorer and select the Properties command. In the Property window, you
could see the value of Build Action property of the xml file.

If the xml file's Build Action property is set to "None" or "Compile" or
"Embedded Resource", the file has no chance to be published. For publishing
the xml file, please set the Build Action property of the file to "Content".

Secondly, you should set the Publish Status of the xml file correctly. Open
the Project Designer page(right-click the Project icon in Solution Explorer
and select the Properties command) and click the "Applicatio n Files.."
button opening an Application Files dialog box. In this dialog box, you
will see the xml file is listed in the listbox. To include the file in the
manifest and copy to the publish location when the publish command is
executed, you should set the Publish Status of the xml file to "Data File"
or "Include". The only difference between these two choices is that the
file will be located in different folders after end users install the
program.

If you set the Publish Status to "Data File", the xml file will be located
in a data directory which is stored in the user's Documents and Settings
folder after the ClickOnce application is installed on an end user's
machine. For information on reading from and writing to the Data Directory,
please refer to the following link.
http://msdn2.microsoft.com/en-us/lib...wy(d=ide).aspx

If you set the Publish Status to "Include", the xml file will be located in
the Application Directory where the application's executable (.exe) files
and assemblies reside. In this case, you could access this xml file
directly by a relative path.

Hope this is helpful to you.
If you have any other concerns or need anything else, please don't hesitate
to let me know.


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.
=============== =============== =============== =======

Jun 9 '06 #3
Hi Steve,

Thanks for your response.

I have noticed that you have put another issue for the same question in
microsoft.publi c.dotnet.framew ork newsgroup which I have already responded.
Please check my answer there and if you need any further assistance on
this particular issue, please reply to me in that thread so I can follow up
with you in time.

For your convenience, I have included my reply as follows:

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.

Thank you and have a nice day!
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.
=============== =============== =============== =======

Jun 12 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1403
by: Ahmad | last post by:
Dear all, I'm not sure if this is the write newsgroup, but ... I've been trying to update the web-site for the local orphanage (www.bedaya.org.my) via FP2002. This whole project started on my humble Win98 and FP2000, then I've upgraded to an XP and FP2002. Without reading any on-line docs, I've simply reloaded the website from HD (via C:\Inetpub\xxx) into FP2002. It seemed OK.
3
2057
by: Tim Dempsey | last post by:
Folks, I need some advice. I hpoe some of you can advise me. Our church's weekly bulletin has been published on paper for years. It is created in MS Word and sent to the publishing company. Now I need to publish the same information on our new web site. But I don't want to put an image of the paper bulletin on the web site. I want it to look natural there, as if it were produced with god web design principles.
5
1764
by: JT | last post by:
Hi, I think I need a "best practices" lesson on web sites and web services. In order to conform to the restraints of my web host, my web services seem to need to be in a subfolder of my web site. So if I have a wwwroot folder containing my site, which maps to www.MySite.com, then to reference my web service, MyService, I place it in a folder that maps to wwwroot/MyService/MyService.asmx. This is dandy. I reference it by using the...
2
1851
by: dani kotlar | last post by:
I have two questions concerning publishing and installation: 1. I used the publish wizard to publish an application. The application gets installed on the target computer in some obscure folder. My question is: how can I control the path in which the program gets installed? 2. When I install a new version of the program all the files in folder of the program get deleted, including files that are not overriden by newer versions. How can...
5
1875
by: rmgalante | last post by:
I've been using the VS2005 Publish utility on one of my projects for about six months. I have a large site with hundreds of files, thousands if you include the code behind files. So I thought I'd use the publish utility and pre-compile my site, but make it updateable. I thought I would be increasing the access time for each page. Here is what I've found. 1. If I publish a pre-compiled, updateable version of the site, it takes 50...
2
6377
by: Max2006 | last post by:
Hi, After I right-click on my web application project file and choose "Publish ." and do the publishing, the result publishable files does not include the *.ashx files. Is it by design? How can I add *.ashx files to the publish target?
3
1962
by: =?Utf-8?B?UmljaGFyZA==?= | last post by:
I have a solution with multiple web apps. Some of the web apps have folders containing .pdf files, etc. When I publish any of these web apps, the .pdf files do not get copied; I have to remember to copy these files over manually. Ideally I would like to keep the "Only files needed to run the application" selected. I've selected the "All files in source project folder" which not only brings in too much, but it fails because the SourceSafe...
0
2162
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hi all, I have a publishing Click Once of my application. Now I want create new version of my application for modify some files, like app.config.
0
2102
by: David Troxell - Encourager Software | last post by:
Product Scope 7 (http://www.encouragersoftware.com/) and Profile Exchanges enhanced with SetupCast publishing methods NOTE: If you are a software author, releasing commercial and/or shareware software, this announcement will be of interest to you - particularly our Shareware and Search Engine Profile Exchanges - Even our Clarion 3rd Party Profile Exchange displays over 60 NON-Clarion products of interest to Developers including...
0
9587
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10211
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10045
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8870
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3958
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.