HttpPostedFile.SaveAs
So I'm building a simple app that allows users to upload photos to our public website. I'm using the FileUpload control that is built into ASP.NET. It has worked like a charm before in other apps, but today I started having a problem with it, in place of the files that get uploaded are a little text file (with the same name specified in the HttpPostedFile.SaveAs method) with these contents:
The original file is in the temp folder. Full path of the file: C:\Temp\597fb3e5-542d-48ba-9b61-08bf9f6ddc42.tmp
So I go checkout the Temp folder and sure enough, albeit renamed, my .JPG's are there. After googling, I found a post on the ASP.NET forums, but alas no answers. Absolutely nothing else.
I've tried using IIS on Vista, Visual Studio Development Server, and even pushed it to a staging server, they all produce the same behavior. I have given the ASP.NET process Modify access rights to the folder, but I think if it was a security issue it would throw an "Access Denied" exception. I'm going to revisit some old apps where I have used this control and see if I can spot anything that stands out.
UPDATE: I figured it out, the culprit was a 3rd party component installed previously.