troubleshooting Question

Reading a file on another server c#

Avatar of Dinesh Kumar
Dinesh KumarFlag for India asked on
C#ASP.NETNetworking
9 Comments2 Solutions1431 ViewsLast Modified:
Generally we do the following to read the file if that is on same server:

log = File.ReadAllText(@"C:\App_Data\kewl.log");

Requirement:

There is web service running on SERVER1. The requirement is that this web service should read a file which resides on SERVER2

SERVER1: web server
SERVER2: web service server

how can we make this happen in c# i.e. reading a file on different server.

please help in finding the steps or how to do it or any possible blockers.
ASKER CERTIFIED SOLUTION
Éric Moreau
Senior .Net Consultant
Join our community to see this answer!
Unlock 2 Answers and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros