how to run C# application on LAN

Posted on 2004-08-24
Last Modified: 2008-01-09
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.
Question by:vinhmtt
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Expert Comment

ID: 11879872
Do you get an error message of any variety?
Does the machine you are trying to run it from have .NET runtimes installed?


Expert Comment

ID: 11880122
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!

Author Comment

ID: 11888446
I do so, but it still appear error message 'System.Security.SecurityException'.
What must I do now?
(All machines have installed .NET Framework)
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Accepted Solution

AndreSteffens earned 100 total points
ID: 11894455
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?

Author Comment

ID: 11898945
I really have SQL Server.
I try to use ODBC connection, and it runs well.
Thanks for helping me.

Expert Comment

ID: 11904560
Hi vin,

Is your problem solved now?


Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below.…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question