473,588 Members | 2,471 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Update local C# exe file

How do I push out a new version of my C# exe file to all the client
computers? The client computers are in my local area network, and I have
administrator rights. Currently I walk over to each computer and copy the
exe file off the fileserver and copy the exe to the client's local hard
drive.

The method I use for my VB 6.0 exe, works a lot better. I leave the VB 6.0
exe on the fileserver and create a shortcut from the client computer to the
exe on the fileserver. Whenever I update the VB 6.0 exe, I replace the exe on
the fileserver with the new exe. This method works for VB 6.0 exe but not
for VS 2005.

Even when I run CasPol.exe and it says, "Added union code group with '-url'
membership condition to the Machine level. Success". When I run the C# exe
from the fileserver, I still get error message, "Applicatio n attempted to
perform an operation not allowed by the security policy."

So, either I want to know how to send the C# exe to each local client
computer, or a fix to the security policy error.

Feb 8 '06 #1
1 4037
Mike,
It sounds like you need to take a look at ClickOnce. The MSDN documentation
on it is reasonably good, and there are several articles on it, including one
I wrote.
You can find it on the Build / Publish menu.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Mike L" wrote:
How do I push out a new version of my C# exe file to all the client
computers? The client computers are in my local area network, and I have
administrator rights. Currently I walk over to each computer and copy the
exe file off the fileserver and copy the exe to the client's local hard
drive.

The method I use for my VB 6.0 exe, works a lot better. I leave the VB 6.0
exe on the fileserver and create a shortcut from the client computer to the
exe on the fileserver. Whenever I update the VB 6.0 exe, I replace the exe on
the fileserver with the new exe. This method works for VB 6.0 exe but not
for VS 2005.

Even when I run CasPol.exe and it says, "Added union code group with '-url'
membership condition to the Machine level. Success". When I run the C# exe
from the fileserver, I still get error message, "Applicatio n attempted to
perform an operation not allowed by the security policy."

So, either I want to know how to send the C# exe to each local client
computer, or a fix to the security policy error.

Feb 9 '06 #2

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

Similar topics

2
3054
by: joo | last post by:
Hi! I need to implement something similar to "Automatic Update" feature which we see in windows 2000. We need this support for our software, basically to provide the software update. How can I exploit .Net technology to implement this? Any idea on this? Thanks.
3
1901
by: Kent P. Iler | last post by:
Hi, I've been using Visual Studio (not .Net) for many years (6+). I'm just now switching to VS.NET 2003. I am building my first project. In the past, I tend to work on my local machine (having local versions of IIS and SQL Server). Then after I'm ready to move the site to the web, I will initially create a new project in the same solution that contains the web server on the Internet. I start by doing a full copy, and then as I make...
1
1815
by: toedipper | last post by:
Hello, PHP4 and MySql I have the code below, a mixture of handcoded and Dreamweaver genaratd php code. Basically it's an update record form - I load the values from a db and bind text boxes etc. This works ok. But I also have an update action - if a user changes any of the text box values then he can click update and the code should write the new values to the db. Should, but it does'nt! When I go and look in the db I can see...
7
3241
by: Alex | last post by:
Hi all, I am trying to install a java stored procedure via the windows development centre. The linux box is running 8.1 FP4 as is the windoze platform. If I am on the linux box i can install the sample jdbc stored procedures o.k. For the purpose of this test I created a sample procedure that executes "select * from department" when conected to the sample database on the linux box.
6
2535
by: Sam-I-Am | last post by:
Hi There I have several websites that use shared assemblies in the GAC. When I try and update the GAC assemblies I get the following error: "The process cannot access the file because it is being used by another process" It seems I have to restart IIS to update the GAC assemblies. This is not a possibility. How else can I update the assemblies without a restart? How can I determine what process/app is holding the reference to my...
0
5805
by: M. David Johnson | last post by:
I cannot get my OleDbDataAdapter to update my database table from my local dataset table. The Knowledge Base doesn't seem to help - see item 10 below. I have a Microsoft Access 2000 database which indexes computer magazine articles for personal reference. I am developing a Visual Basic.NET program whose sole purpose is to enter new records into the database. No updates to existing entries, no deletions, and no display
5
5016
by: Wayne Wengert | last post by:
I want to have my application (VB.NET) check a table on an SQL server to see if there is a newer version released and, if so, download and install the new version. I know how to setup the database table but I am looking for ideas on how to handle the update. Since the application is running, I can't just replace that EXE. The only way I've thought of is to have a small front end app that does the version check and download if needed? I'm...
8
2770
by: robert | last post by:
Hello, I want to put (incrementally) changed/new files from a big file tree "directly,compressed and password-only-encrypted" to a remote backup server incrementally via FTP,SFTP or DAV.... At best within a closed algorithm inside Python without extra shell tools. (The method should work with any protocol which allows somehow read, write & seek to a remote file.) On the server and the transmission line there should never be...
11
1498
by: Jorgen Bodde | last post by:
Hi all, I want to provide my users the ability to download a repository from the web, and after that check for updates. I thought of a mechanism that could do that, but since there is patch and diff readily available I wondered if there is a python solution that allows me to download a file, and let the patch be applied locally. In the patch there are binaries and sources I am not sure if patch can handle them both though.
0
7929
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
7862
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8357
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...
1
7987
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
6634
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
3887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2372
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
1
1459
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1196
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.