Intranet Error

G

Guest

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?
 
J

Jon Skeet [C# MVP]

wrytat said:
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.
 
G

Guest

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.
 
J

Jon Skeet [C# MVP]

wrytat said:
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)
 

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