Problem creating file on remote computer

S

shawn

Hi -

I am trying to save a file from one server to another. Both are on the
same network. When I attempt the operation, I get the following:

There is a time and/or date difference between the client and server.

Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.IO.IOException: There is a time and/or date
difference between the client and server.

The code is:

StreamReader sr = new StreamReader(sTemplate);
string sZone = sr.ReadToEnd();
sr.Close();

string sNewZonePath = DNSFilePath + _ZoneName + ".new";
using (StreamWriter sw = new StreamWriter(sNewZonePath))
{
sw.Write (sZone);
sw.Close();
}


This works fine another another client server to the same target
server.

Thanks in advance...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top