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

G

Guest

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:

try
{ transmitFile( tmpFile ); }
finally
{ 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.
:)

http://www.google.com/search?hl=en&q="TransmitFile+failed"+ASP.NET&btnG=Google+Search

This posting includes my server configurations:

http://forums.asp.net/898093/ShowPost.aspx
 

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

Top