Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Problem creating file on remote computer

Thread Tools

Problem creating file on remote computer
Posts: n/a
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();

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

This works fine another another client server to the same target

Thanks in advance...

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote access to my office computer from my home computer. =?Utf-8?B?Um9uSm9u?= Microsoft Certification 3 05-14-2008 10:50 AM (File::Remote) problem Dayton Jones Perl Misc 9 03-03-2006 01:12 AM
Remote Assistance fails to connect, remote remote host name could not be resolved Peter Sale Wireless Networking 1 12-11-2004 09:09 PM
Remote computer dialup and host computer dsl using both Windows XP problems Bun Mui Computer Support 0 06-04-2004 02:26 PM