Re: serial port and securityexception

From: Anand Balasubramanian (anandb_at_online.microsoft.com)
Date: 03/10/04


Date: Wed, 10 Mar 2004 22:01:49 GMT

Hi Jason,
  Its not a problem if you want me to explain things. Basically when you
write a VB,net aplication, you would create an MSI which is the setup
project for the application. You woudl then install this on every pc it is
going to run. So when the user executes, everything will work fine, because
the exe is from the local box. So the .Net security will not complain. But
if you install it on a server and the users click it and run it, then you
will have to give the necessary permissions on each machine to trust the
network share. The reason why people deploy apps in a network share is
because then you always update it only on the server and dont have to
update it on every client machine. Although this process looks like it
would save a lot of work, we generally do not recommend it. The reason is
when the user clicks the app on the network share, it will still run on the
local machine, and it has to download the depenedent dlls to the local
machine before executing it. This will work in many cases, but there can be
problems too. I just had a customer who did the same thing and he had
problems with his application because some of the dls were not downloaded
to the client machine. To circumvent this problem there is a new way of
deploying applications called no-touch deployment. Basically in this case,
you would put you application in a web folder in a web server and then the
client can browse to the app vie IE and that will take care of downloading
the dependent dlls. Here is a link about this topic
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechar
t/html/vbtchNo-TouchDeploymentInNETFramework.asp

If you still have questions please do post back to the news group and I
will answer it as best as I could.

Anand Balasubramanian
Microsoft, Visual Basic .NET

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks



Relevant Pages

  • Re: Download, Edit file and then Upload file again
    ... Do you have any sample code to upload/download to network and edit, ... If the file is on the network that you are connected to, ... want the OS to just run whatever app is registered to handle the file, ... user wants to download and edit a file and then upload the same file ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Running a .Net WinForms app from network drive etc...
    ... Ok, I tested it and althoug I can now get the app to Run, I cannot get the ... reports to run when I simply place all the files in the mapped folder. ... Attempting download of new URL ...
    (microsoft.public.dotnet.framework.windowsforms)
  • VB.net & ASP.net
    ... Just a really quick question to clarify something. ... for creating an app. ... in other words this would download to the client machine and do ...
    (microsoft.public.inetserver.asp.db)
  • Application.Blocks Updater Question
    ... We have a product that will be installed on a network. ... Each client machine will have access to the network share ... codebase to check the cache first and if a new version ... exist in the network share we would download it first. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Thinking out loud....
    ... create their own private P2P network which only consists of whoever is ... which is a server program operated by the entity wishing to ... download the DLLs it needs as it needs them. ... we have a few too many file-sharing applications with no real open standards ...
    (microsoft.public.dotnet.general)