This is my first question so I apologize if I my post has any mistakes. I've searched about this issue for close to two days now and I still only am a bit closer than I was before.Here is my problem.
We have a website developed using .net 4.5 that accepts file uploads in csv. Recently the client wanted to migrate to cloud, so I put it in a windows server 2008R2 (ec2 instance of aws) and boom the file upload keeps throwing exception. I thought that I had missed some file and transferred the files again yet I had the same problem.
I downloaded visual studio express and brought the source code to debug it (debug uses ASP.net webserver). I found that the content type of csv is being read as text/plain instead of text/csv or application/csv or application/vnd.ms-excel. I was confused as the same code read the content type as application/vnd.ms-excel in the server from which I am migrating.
After a day's worth of search and trying to change MIME type in IIS I got the upload to detect the right type by changing the content type mapping in Registry. My happiness lasted exactly one minute because the same change was not reflected in the site hosted in IIS. I have tried changing in various keys of Registry, IIS and web.config. No go......
I am beyond desperate and close to despondent any help is appreciated, TIA.