VB.NET Crash when you start from a network directory

  • Thread starter Alexander Vasilevsky
  • Start date
A

Alexander Vasilevsky

Hello, I have to vb.net a small program that runs and works fine in a local
folder. If it's run from a network folder, then crush happen. It is clear
that the problem with the system safety. NET and when to build on the strong
name FullTrust - all will work. However, I wonder why you crush (home form
has not even shown). I thought I would be thrown SecurityException, which
caught Try Catch download forms, well, or at least dialogue
UnhandledException. In a few buttons and WebBrowser.

How to catch a shortage of power? I would like to put a friendly message,
rather than crush.

http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
Gift
 
K

kimiraikkonen

Hello, I have to vb.net a small program that runs and works fine in a local
folder. If it's run from a network folder, then crush happen. It is clear
that the problem with the system safety. NET and when to build on the strong
name FullTrust - all will work. However, I wonder why you crush (home form
has not even shown). I thought I would be thrown SecurityException, which
caught Try Catch download forms, well, or at least dialogue
UnhandledException. In a few buttons and WebBrowser.

How to catch a shortage of power? I would like to put a friendly message,
rather than crush.

http://www.alvas.net- Audio tools for C# and VB.Net developers + Christmas
Gift

Hi,
See that recent thread, .NET 3.5 SP1 should allow you to run your
application from a network share:
http://groups.google.com/group/micr.../browse_thread/thread/4e574b21d5ecef8f?hl=en#

You can also check blog entries on:
http://blogs.msdn.com/vancem/archiv...code-to-be-launched-from-a-network-share.aspx

http://blogs.msdn.com/brada/archive...code-to-be-launched-from-a-network-share.aspx

...and Google.

To customize your exception message, using Try-Catch blocks, in Catch
block you can handle your own message or directly use Message property
(or StackTrace) of Exception class.


Hope this helps,

Onur Güzel
(e-mail address removed)
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top