Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 20th, 2005, 09:41 AM
Authorized User
 
Join Date: Sep 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default updating .Net exe on the network

Hi
I have a VB.Net exe on the network, for my client PC to use the program, i had to go round all the PCs and use the framework wizard to trust an assembly.

I am now at the point where I want to update the exe file, in doing so I will have to go round ALL the PCs to repeat the task above. Surely there must be a better way??

I have tried looking at caspol

caspol -addgroup 1 -appdir file:S:\customApps\Temp\ FullTrust

though I am a little confused and not sure of the syntax above, could someone point me in the correct direction or preferred method on handling this.

Thanks
 
Old November 19th, 2005, 02:57 PM
Registered User
 
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Daniel,

I was having the same issue and I solved it as follows.

First of all u have to generate a public key for the application. There is a utility provided in the Visual Studio 2003 command prompt (i dont remember the name right now, but u can search on web, it provides all info on how to generate public key file). This key file will be something like xxx.snk (snk being the extension).

Then in your assembly info file, add the path to this key. The when you build your exe, the public key will get added to your application.

Now when u use the trust wizard for the first time, it gives u two options (give access to this assembly, which u are probably using and the other option is give access to all assemblies with the same public key). select the second option. Once u do that, u wont have to do the trust wizard everytime u do a new exe (as long as u dont change ur public key file )

Thanks

Balu
:)






Similar Threads
Thread Thread Starter Forum Replies Last Post
Pro .NET Network Programming jeff5509 All Other Wrox Books 7 August 2nd, 2010 09:03 AM
VB.Net PROBLEM IN THE NETWORK ZoroAstris VB.NET 4 March 31st, 2005 02:22 PM
Professional .NET Network Programming webfreek23 All Other Wrox Books 2 December 20th, 2004 06:23 AM
How can I call a vb.net Exe from an asp.net page? jorevil Classic ASP Basics 0 October 1st, 2003 11:34 AM
.NET Network Programming Error TripleClamps .NET Web Services 0 August 13th, 2003 06:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.