473,772 Members | 2,420 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 9440
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, yourprojectname Properties, 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\userna me\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 "profession al"
way to do this?

Thanks,
Ron
"Chris" <Ch***@discussi ons.microsoft.c omwrote in message
news:CB******** *************** ***********@mic rosoft.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, yourprojectname Properties, 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\userna me\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 "profession al"
way to do this?

Thanks,
Ron
"Chris" <Ch***@discussi ons.microsoft.c omwrote in message
news:CB******** *************** ***********@mic rosoft.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, yourprojectname Properties, 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\userna me\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
4549
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 'ClickOnce_1_0_0_3.application' from… Warning: Could not download 'ClickOnce_1_0_0_3/ClickOnce.exe.config.deploy' from… Warning: Could not download 'ClickOnce_1_0_0_3/ClickOnce.exe.deploy' from…
11
14670
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 application folder was set to 'Allow scripts only', I get an error: Failed to connect to 'http://192.168.0.5/TransAct/' with the following error:
1
6826
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 message: "Unable to install or run the application. The application requires that assembly EnvDTE Version 7.0.330.0 be installed in the Global Assembly Cache (GAC) first." When I now reference the assembly Envdte (Version 7.0.330.0) and include...
2
1508
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, run it, then see XML in the browser. I'm using Windows 2000, though my friend tried it on XP and got the same results. Any suggestions? I've tried on 4 different computers with the same results - I always see just the xml :(
1
1703
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 marked as "content". When I publish the application with ClickOnce and update my application - these dlls (along with a .chm help file that doesnt change) keep being redownloaded. From what I've read in all of the ClickOnce marketing hype, it...
3
2685
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 dwonloading updates on client machine cliconce "deletes" my directory and file. How to prevent this?
5
6539
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. When I build the solution, these files are copied to the bin\Release directory, as they should be. However, when I publish the Windows Forms project, these content files are not copied. How can I make it so that these content files from the one...
0
1031
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 to some wild folder in Documents and Settings/%User%/Local Data/App/... or something. Is there a way to make it install the app somewhere else? Or do I need to combine MSI install and ClickOnce for updating? Anyone please care to elaborate? Thanx,...
1
1937
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 through much of the docs trying to figure out how to customize my app's install if possible. In my deployment scenario users will be downloading the app from my web site in WYSIWYG fashion but I'm stuck on the following issues: 1) I need to prompt...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9911
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
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
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
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
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
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.