Solved

how to run C# application on LAN

Posted on 2004-08-24
8
376 Views
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.
0
Comment
Question by:vinhmtt
  • 3
  • 2
8 Comments
 
LVL 9

Expert Comment

by:WinterMuteUK
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?

Wint.
0
 
LVL 4

Expert Comment

by:AndreSteffens
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!
0
 

Author Comment

by:vinhmtt
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)
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 4

Accepted Solution

by:
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?
0
 

Author Comment

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

Expert Comment

by:AndreSteffens
ID: 11904560
Hi vin,

Is your problem solved now?

Andre
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Greetings C# program 17 107
System.Security 2 27
rest webservice call over https via c# 6 41
Close form "before" open 3 40
Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

809 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