I\'m working on asp.net web project. When I run the project, It works correctly. But In server, I got the following error. How to solve this problem?
Using theme
I feel none of the answers made above can resolve the actual issue faced by user if the page is not meant to render html. In this case, the solution is - just paste following
EnableTheming = "False" StylesheetTheme="" Theme=""
in the @Page attribute of that page.
For example, the following source code sample:
DownloadFile.aspx.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DownloadFile.aspx.cs"
Inherits="WebUI.Monitorization.DownloadFile" EnableTheming="False" StylesheetTheme="" Theme="" %>