TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
vaden.cobb
NA
4
0
Running a C# app across the network
Dec 12 2003 3:23 PM
Have a small problem. When I run this code on my PC, it works. If I place it out on a network share and run it from my PC, I get Security errors. I guess what the code is doing is trying to grab the environmental data on the PC with the network share. How can I change the focus, so that I can execute the application from a network share? using System; using System.IO; using System.Management; public class NetTest { public static void Main() { string pcName = "", userId = ""; pcName = Environment.MachineName; userId = Environment.UserName; Console.WriteLine("Computer Name : " + pcName); Console.WriteLine("User ID : " + userId); } }
Reply
Answers (
2
)
Working with assemblies.
Determine if a Previous Instance of an C# Application Is Being Run