I am creating an ASP.NET Web Service and I am trying to do something very basic... delete a file. The code is simple:
string testFilePath = @"C:\Test\Test.zip";
if(File.Exists(testFilePath)) //it sees the file just fine
File.Delete(testFilePath); // then throws an exception... why?
I get an error that states: "Request format is unrecognized."
The same exact code will work perfect in a windows app, but not in this web service... why?