473,395 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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:

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...=Google+Search

This posting includes my server configurations:

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

Nov 19 '05 #1
0 1630

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: New MSSQL DBA | last post by:
hi all, have anyone else met with the following problem. we've got a SQL2000SP3a on a 2 active-active node clusters of W2K3, this cluster in using AD. I've found that whenever I use Enterprise...
3
by: Venkat | last post by:
This is the piece of code in Early Binding and works as expected. --------------------------------------------------------------------------- using ControlLicenseService LicenseInfoClient lic =new...
5
by: Eric Sabine | last post by:
the second I add <appSettings> </appSettings> to my web.config file (just after the <system.web>), my web application will no longer run. I get an error that reads: Error while tyring...
1
by: Jonas Auken | last post by:
hi, I have a repeater which dynamically loads another usercontrol throught databinding: OnClick: DataBind() rptProduct_ItemDataBound: ViewSmall _viewSmall = (ViewSmall)...
4
by: Clint | last post by:
All, I can't seem to find a solution to this problem. I'm not sure if this is a Visual Studio problem, a .NET Framework problem, an IIS problem, or an ASP.NET problem, so please stick with me...
0
by: Hawksey | last post by:
Hello, Has anyone else experienced a similar problem. We get an intermittent error trying to send mail using smtpmail. Our SmtpMail.SmtpServer is a different server to our web application...
0
by: ahart | last post by:
Hi- I have recently taken over an application that is written in C#. I am not that familiar with C# and I am getting an error when I try and build the solution. Has anyone seen this error or can...
1
by: Angus | last post by:
Why moving a function from protected to public area in class causes error C2556 - overloaded function differs only by return type I have a protected function called GetState like this: enum...
1
by: ggfota | last post by:
Hi I have a problem with SELECT DISTINCT query. I'm trying to solve why it causes error 3464. Guess that problem might be cause by one field. The source table has text(17) field from which I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.