Results 1 to 4 of 4

Thread: Signing VB app

  1. #1
    Senior Member
    Join Date
    Aug 2005
    Location
    Surrey
    Posts
    299
    Thanks
    3
    Thanked
    4 times in 4 posts

    Signing VB app

    Hi Guys,

    I've created a small VB app that I want to run from a network drive, however it hangs when running. I think this is due to it not being signed.

    Is there a way to sign the code to make it trusted on my local machine? I've tried the Visual Basic Express help, but can;t find anything?

    Thanks,

    Mark

  2. #2
    NOT Banned
    Join Date
    Jan 2007
    Posts
    5,905
    Thanks
    412
    Thanked
    278 times in 253 posts

    Re: Signing VB app

    Don't you have to pay for signing? I'd like to know about this too

  3. #3
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,168
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: Signing VB app

    Ah so this is VB.Net.

    Basically with .Net microsoft decided that anything on a network, would quite rightly run with internet level permissions only. So in your case not run.

    What you need to do is to allow it to run by changing the machines config. Or just by copying it your local PC.

    If you want to be able to run code you right anywhere on your company PCs you ideally want to sign it as you said, this is very easy to do because your not "buying" a signature from Verisign or similar, infact your just generating a public and a private key.

    Once you've signed it (i don't know if/how you can do this with the Express ide, so command line instructions) using "sn" which is found in the SDK files. You then add the key to your FullTrust local machine using CasPol which is found in the .Net 2.0 runtime folder.

    For more info on strong names:
    http://www.codeproject.com/KB/securi...Explained.aspx

    more info on caspol:
    http://msdn.microsoft.com/en-us/libr...tz(VS.80).aspx

    If you cba to sign all the code, and just want to trust a network share (this is a security risk and bad imo):
    http://blogs.msdn.com/shawnfa/archiv...30/344554.aspx
    throw new ArgumentException (String, String, Exception)

  4. #4
    Senior Member
    Join Date
    Aug 2005
    Location
    Surrey
    Posts
    299
    Thanks
    3
    Thanked
    4 times in 4 posts

    Re: Signing VB app

    Thanks for the info, it is for internal use so the CA here will sign it.

    I'll have a read though all that and see how it goes.

    Mark
    Intel i5 2500K
    Gbyte Z68mx-ud3
    2x 4GB Corsair Vengance
    NEC ND3540A BLACK DVDR
    1TB HDD
    Sony SDM-HS75P 17" TFT
    Logitech Cordless Mouse and Keyboard LX700

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. App - V Win 7 Beta
    By digit in forum Software
    Replies: 2
    Last Post: 02-03-2009, 11:46 AM
  2. Lilt : Amazing little app!
    By Gordy in forum Apple Mac
    Replies: 10
    Last Post: 28-12-2006, 07:31 PM
  3. VB Directories
    By PHTC in forum Software
    Replies: 1
    Last Post: 01-02-2006, 01:55 AM
  4. Lan download amount app
    By PHTC in forum Software
    Replies: 0
    Last Post: 17-01-2006, 09:17 PM
  5. USA/Canada ONLY: Free VB .NET 2003 Standard Edition
    By Atomic in forum Retail Therapy and Bargains
    Replies: 2
    Last Post: 31-05-2004, 08:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •