I get an error (Server cannot set content type after HTTP headers have been sent.) on the following code (ContentType line). What should I change?
ContentType
I had the same problem and the following solution solved the problem, run a response.ClearHeaders(); before run response.AddHeader(
response.ClearHeaders();
response.AddHeader(