Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 411
  • Last Modified:

how to run C# application on LAN

I built an C# Application. It use Microsoft SQL Server. From other computer, I create shorcut and try but it doesn't run (LAN).
I need help, thank.
  • 3
  • 2
1 Solution
Do you get an error message of any variety?
Does the machine you are trying to run it from have .NET runtimes installed?

Standard .Net security is configured to block LAN calls:
In the map: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 you will find the program .Net wizards. When you open this you find an applet to adjust the .Net security. Changes the settings of 'LAN settings' to 'full trust' and there you are!
vinhmttAuthor Commented:
I do so, but it still appear error message 'System.Security.SecurityException'.
What must I do now?
(All machines have installed .NET Framework)
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

In which method does the error arise? Can you show the offending code?
Be sure:

to share the map in which the database itself resides, check if you can open this map using windows explorer.

to check that you can access the SLQ server database over the LAN, it is possible to have SQL server block all LAN traffic. Do this by trying to set up a ODBC connection to the database from a client computer using the ODBC applet in the Settings (Settings-System administration in Win XP)

If this last advise is too complicated let me know telling me which OS you have than will I explain it to you one step at a time. Do you really have SQL server, or MSDE?
vinhmttAuthor Commented:
I really have SQL Server.
I try to use ODBC connection, and it runs well.
Thanks for helping me.
Hi vin,

Is your problem solved now?

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now