473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How get ClickOnce to include a file when publishing?

I have a Win app that references a class library project. Within the
latter, there is a remoting.config file.

When I publish my app using ClickOnce, it errors telling me it can't find
the remoting.config file.

How do I get this thing to "go along" with the project?

Of course, its impossible to see what ClickOnce actually copies to the
client hard drive as is so cryptic and hidden from what I remember.

Thanks for any help,
Ron
Feb 22 '07 #1
3 9413
Lets see if I can remmeber everything:
1. Add your file via Projecy Explorer
2. Right click on file, select properties and set Build Action to "content"
3. Go to Project, yourprojectnameProperties, then Publish tab, then
Application Files button
4. you should see the file listed there then set to Include(auto).

After you publish the app, you shoudl see the files in a directory like:
C:\Documents and Settings\username\Local Settings\Apps\2.0

"Ronald S. Cook" wrote:
I have a Win app that references a class library project. Within the
latter, there is a remoting.config file.

When I publish my app using ClickOnce, it errors telling me it can't find
the remoting.config file.

How do I get this thing to "go along" with the project?

Of course, its impossible to see what ClickOnce actually copies to the
client hard drive as is so cryptic and hidden from what I remember.

Thanks for any help,
Ron
Feb 22 '07 #2
Yeah, but the remoting.config isn't in the client Windows project, it's in
the class library project that is referenced from the Windows client
project.

I got it to work by copying the file into the client project and then doing
as you said but theis seems like a hack. Is there not a more "professional"
way to do this?

Thanks,
Ron
"Chris" <Ch***@discussions.microsoft.comwrote in message
news:CB**********************************@microsof t.com...
Lets see if I can remmeber everything:
1. Add your file via Projecy Explorer
2. Right click on file, select properties and set Build Action to
"content"
3. Go to Project, yourprojectnameProperties, then Publish tab, then
Application Files button
4. you should see the file listed there then set to Include(auto).

After you publish the app, you shoudl see the files in a directory like:
C:\Documents and Settings\username\Local Settings\Apps\2.0

"Ronald S. Cook" wrote:
>I have a Win app that references a class library project. Within the
latter, there is a remoting.config file.

When I publish my app using ClickOnce, it errors telling me it can't find
the remoting.config file.

How do I get this thing to "go along" with the project?

Of course, its impossible to see what ClickOnce actually copies to the
client hard drive as is so cryptic and hidden from what I remember.

Thanks for any help,
Ron

Feb 22 '07 #3
Sorry Ronald. Not sure I know the answer.

"Ronald S. Cook" wrote:
Yeah, but the remoting.config isn't in the client Windows project, it's in
the class library project that is referenced from the Windows client
project.

I got it to work by copying the file into the client project and then doing
as you said but theis seems like a hack. Is there not a more "professional"
way to do this?

Thanks,
Ron
"Chris" <Ch***@discussions.microsoft.comwrote in message
news:CB**********************************@microsof t.com...
Lets see if I can remmeber everything:
1. Add your file via Projecy Explorer
2. Right click on file, select properties and set Build Action to
"content"
3. Go to Project, yourprojectnameProperties, then Publish tab, then
Application Files button
4. you should see the file listed there then set to Include(auto).

After you publish the app, you shoudl see the files in a directory like:
C:\Documents and Settings\username\Local Settings\Apps\2.0

"Ronald S. Cook" wrote:
I have a Win app that references a class library project. Within the
latter, there is a remoting.config file.

When I publish my app using ClickOnce, it errors telling me it can't find
the remoting.config file.

How do I get this thing to "go along" with the project?

Of course, its impossible to see what ClickOnce actually copies to the
client hard drive as is so cryptic and hidden from what I remember.

Thanks for any help,
Ron


Feb 23 '07 #4

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

Similar topics

3
by: Asaf | last post by:
Hi, After publishing my test application using ClickOnce with VS.NET 2005 I am getting these warnings: Warning: Could not download 'ClickOnce.application' from… Warning: Could not download...
11
by: moondaddy | last post by:
I have a .net 2.0 smarclient app and am trying to deploy it to IIS where users can access it from. I created an application folder in IIS where I'm trying to deployee to. 1) When the...
1
by: Daniel Knöpfel | last post by:
Hello Im triying to create an installer using ClickOnce and visual studio 2005. This works fine on my computer, but as soon as i start the created installer on another pc I get the following...
2
by: Dustin Davis | last post by:
This is my first attempt at using ClickOnce. It seems it is publishing OK, but I can't run the install. If I use IE, I just see XML in the web browser. If I use Firefox, I download a setup file,...
1
by: Andrew86 | last post by:
I have an application which requires a number of DLLs (unmanaged ansi C dlls) to reside in the same directory as the application. I currently have these dlls included in the project folder and...
3
by: Meelis Lilbok | last post by:
Hi I have made a project with vb.net and publish it(clickonce) On firs laucnh app creates a xml file in startuppath\database\file.xml Now when i update my app and publish it, after...
5
by: DCDev | last post by:
I have a solution with multiple projects. One project is a windows forms project. I have report files (.rdlc) in a separate project that are built as "Content" with the "Copy Always" option....
0
by: Mecena | last post by:
Hi all! I'm new to the ClickOnce concept and having some difficulties publishing my app. I'm publishing my app to the network server. When I install the app from there, ClickOnce copies the files...
1
by: Jack | last post by:
Hi there, Apologies if this NG is off-topic but I can't find anything more appropriate (feel free to let me know). I'm looking at ClickOnce as a possible alternative to MSI and have poured...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.