Home All Groups Group Topic Archive Search About
Author
23 Apr 2006 3:50 AM
wrytat
I have a program that first check the user name of window account used to
login and run the application. Then connect to SQL Server 2005 Express
remotely to retrieve some data. So, I build the program, go to the debug
folder and copy the exe file to a shared folder. I go to another PC in the
same network, go to the shared folder, and try running the exe file. It gives
me error, saying that it's something to do with Intranet security and I have
to change my .net framework settings. The error occurs at the point when I am
checking the user name. But I can't find a .net framework configuration at
that computer's control panel.

And if I copy the .exe file to the local computer, I can run the program.
What can I do?

Author
23 Apr 2006 6:36 AM
Jon Skeet [C# MVP]
wrytat <wry***@discussions.microsoft.com> wrote:
> I have a program that first check the user name of window account used to
> login and run the application. Then connect to SQL Server 2005 Express
> remotely to retrieve some data. So, I build the program, go to the debug
> folder and copy the exe file to a shared folder. I go to another PC in the
> same network, go to the shared folder, and try running the exe file. It gives
> me error, saying that it's something to do with Intranet security and I have
> to change my .net framework settings. The error occurs at the point when I am
> checking the user name. But I can't find a .net framework configuration at
> that computer's control panel.
>
> And if I copy the .exe file to the local computer, I can run the program.
> What can I do?

Follow the error message - change your .NET framework settings to give
trust to code loaded from the intranet.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Author
23 Apr 2006 2:46 PM
wrytat
Change the .Net framework settings of the computer where the file is kept or
the computer that runs the file? The problem is I can't find .NET framework
configuration at my control panel at Windows 98.

Show quote
"Jon Skeet [C# MVP]" wrote:

> wrytat <wry***@discussions.microsoft.com> wrote:
> > I have a program that first check the user name of window account used to
> > login and run the application. Then connect to SQL Server 2005 Express
> > remotely to retrieve some data. So, I build the program, go to the debug
> > folder and copy the exe file to a shared folder. I go to another PC in the
> > same network, go to the shared folder, and try running the exe file. It gives
> > me error, saying that it's something to do with Intranet security and I have
> > to change my .net framework settings. The error occurs at the point when I am
> > checking the user name. But I can't find a .net framework configuration at
> > that computer's control panel.
> >
> > And if I copy the .exe file to the local computer, I can run the program.
> > What can I do?
>
> Follow the error message - change your .NET framework settings to give
> trust to code loaded from the intranet.
>
> --
> Jon Skeet - <sk***@pobox.com>
> http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
> If replying to the group, please do not mail me too
>
Author
23 Apr 2006 3:39 PM
Jon Skeet [C# MVP]
wrytat <wry***@discussions.microsoft.com> wrote:
> Change the .Net framework settings of the computer where the file is kept or
> the computer that runs the file? The problem is I can't find .NET framework
> configuration at my control panel at Windows 98.

It needs to be on the computer that runs the file. I'm afraid I don't
know where the configuration tool link is on Win98, but you could
always try running mscorcfg.msc which is in the framework's directory
(eg C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322)

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

AddThis Social Bookmark Button