visual studio .net general:
Just a guess but... you probably don't have .NET
Framework or other required files installed on the
server.
The reason you can copy a new VB6 .exe there and it runs
is because somebody has previous installed the .exe and
it has all the required "runtime" files. But your
new .NET .exe doesn't have those files.
So you need to find the Framework 1.1 runtime
installation files from Microsoft, and then install that
on the machine first. Also you may need to create an
installation for your app. I'm also new to .NET so I
don't know exactly how to do that yet. :)
Good luck!
[quoted text, click to view] >-----Original Message-----
>I am new to .NET (and really miss the simplicity of VB
6) and am just going
>nuts over a simple app. I created a Windows app that
works just fine on my
>machine. Clean compile etc.
>However when I copy the .exe file (like you could do in
6) to our file
>sharing server it will not run. I get a .NET framework
error about the
>operation needing the SecurityException. How does one
create a VB app that
>can run off a server??
>I am a programmer not a system expert, and am getting
very frustrated over
>what in ver 6 would have been a no brainer.
>..NET framework is installed on our NT 4.0 Server. Can
someone please give me
>some pointers and what needs to be done?
>
>John Tiedt
>Michigan Dept of Information Technology
>
>
>.
John,
You don't need .NET framework on the server as the server is only acting as
a file server and thus your app does not run there.
The exception you are getting is to be expected. This is the way .NET is
supposed to run, it's a secure framework. By default, only apps running on
your local machine are trusted. You can change this on your machine though.
Go to:
Control Panel/Administrative Tools/Microsoft .NET Framework 1.1
Configuration
From there select Runtime Security Policy, and click on Adjust Zone Security
Select make changes to this computer
Select Local Intranet
Then increase the amount of trust to whatever you see fit.
Does this do the trick?
- Santiago
[quoted text, click to view] "John T" <tiedtj@michigan.gov> wrote in message
news:%23lr7lM$nDHA.1676@TK2MSFTNGP09.phx.gbl...
> I am new to .NET (and really miss the simplicity of VB 6) and am just
going
> nuts over a simple app. I created a Windows app that works just fine on my
> machine. Clean compile etc.
> However when I copy the .exe file (like you could do in 6) to our file
> sharing server it will not run. I get a .NET framework error about the
> operation needing the SecurityException. How does one create a VB app that
> can run off a server??
> I am a programmer not a system expert, and am getting very frustrated over
> what in ver 6 would have been a no brainer.
> .NET framework is installed on our NT 4.0 Server. Can someone please give
me
> some pointers and what needs to be done?
>
> John Tiedt
> Michigan Dept of Information Technology
>
>