asp.net mvc 3 - Returning a .csv file error on prod, but not on test -


we have system in asp.net mvc3 , running on iis7.

my controller looks this:

public actionresult display(string reportid)        {     string fullname = service.initiategistaxjurcsvgeneration();     string filename = path.getfilename(fullname);     return file(fullname, "text/csv", filename); } 

the service creates , saves .csv file users local windows temp directory. next 2 lines of code return file user in browser can downloaded.

the download of file works fine on local web server (the 1 build visual studio). have test environment , production environment. on same server , instance of iis. test , prod different websites on same instance of iis. returning file works fine our test website, prod website returning code http500.

this makes me think there has setting somewhere in iis server different between 2 different websites (prod , test). cannot find different between two, knowledge of iis not deep. there can think of may have missed possibly cause problem such this?


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -