Home All Groups Group Topic Archive Search About

security issues with an upgraded VB6 program

Author
20 Apr 2006 1:05 PM
garyme2
Hello,
I'm not a professional developer. I have several in-house VB6 programs that
I have upgraded to VB.NET. One of them runs fine while I'm in the
VisualStudio.NET environment, but the .exe will not run standalone. I get
security messages, I guess because I am creating folders and copying files on
a network drive. I think I must do more to deploy the program correctly, but
I can't figure out what it might be.
If anyone can help, I would GREATLY appreciate it.
Thanks
Gary

Author
20 Apr 2006 6:04 PM
Ken Tucker [MVP]
Hi,

         The security settings for an application being run on a local
computer are different than one being run on the local network.  You can use
caspol.exe to give your application the required permissions.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfcodeaccesssecuritypolicyutilitycaspolexe.asp

If you are using vb 2005 click once simplifies the process for you.

http://msdn2.microsoft.com/en-us/library/91z17fc9(VS.80).aspx

Ken
------------------

Show quoteHide quote
"garyme2" wrote:

> Hello,
> I'm not a professional developer. I have several in-house VB6 programs that
> I have upgraded to VB.NET. One of them runs fine while I'm in the
> VisualStudio.NET environment, but the .exe will not run standalone. I get
> security messages, I guess because I am creating folders and copying files on
> a network drive. I think I must do more to deploy the program correctly, but
> I can't figure out what it might be.
> If anyone can help, I would GREATLY appreciate it.
> Thanks
> Gary
>
Author
21 Apr 2006 5:32 PM
garyme2
Thanks very much, Ken. I don't believe I fully installed the SDK since I have
lot of information and documentation installed, but the program isn't found
where it says it should be. I will re-install the SDK and probably fix my
problem.

Thanks again.

Gary


Show quoteHide quote
"Ken Tucker [MVP]" wrote:

> Hi,
>
>          The security settings for an application being run on a local
> computer are different than one being run on the local network.  You can use
> caspol.exe to give your application the required permissions.
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfcodeaccesssecuritypolicyutilitycaspolexe.asp
>
> If you are using vb 2005 click once simplifies the process for you.
>
> http://msdn2.microsoft.com/en-us/library/91z17fc9(VS.80).aspx
>
> Ken
> ------------------
>
> "garyme2" wrote:
>
> > Hello,
> > I'm not a professional developer. I have several in-house VB6 programs that
> > I have upgraded to VB.NET. One of them runs fine while I'm in the
> > VisualStudio.NET environment, but the .exe will not run standalone. I get
> > security messages, I guess because I am creating folders and copying files on
> > a network drive. I think I must do more to deploy the program correctly, but
> > I can't figure out what it might be.
> > If anyone can help, I would GREATLY appreciate it.
> > Thanks
> > Gary
> >