468,548 Members | 1,886 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,548 developers. It's quick & easy.

TransmitFile causes event: "TransmitFile failed ... Error: 0x80070

The issue is TransmitFile does not transmit any data or throw an exception
(Although it does generate an event in the event log, see below.)

Event Log:

TransmitFile failed. File: \\DATA1\UserData\guid.tmp, Impersonation Enabled:
0, Token Valid: 1, Error: 0x8007052e

The code works correctly on 2 of 3 web servers. This how the code looks:

{ transmitFile( tmpFile ); }
{ File.Delete(tmpFile ); }

The cause? TransmitFile is Asynchronous and the Delete statement deletes the
file before it even begins transmitting. But instead of giving an error, the
code just continues. Sometimes the temp file will delete, sometimes it will
not. But neither TransmitFile or File.Delete ever throw an exception.

Debugging is a pain because since it works locally all I can do is make a
change, recompile, upload and test on the problem-child server.

The Solution? Removing the File.Delete allows the code to run on all
machines. But now I've got great globs of temp files hanging around.

I feel this is a bug because, even if my code is wrong, TransmitFile does
not behave as expected.

1. If it is Asynchronous, why can I not check the status of the xfer so I
can delete my temp file?

2. If it is not Asynchronous, then why is it behaving this way?

3. If the source file is deleted while in transfer, why does TransmitFile
not throw an error?

It seems odd that I may be the only one with this issue, but I'm important.


This posting includes my server configurations:


Nov 19 '05 #1
0 1455

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by New MSSQL DBA | last post: by
3 posts views Thread by Venkat | last post: by
5 posts views Thread by Eric Sabine | last post: by
1 post views Thread by Jonas Auken | last post: by
4 posts views Thread by Clint | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by UniDue | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.