Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# aspx页面呈现为空/空白_C#_Asp.net_Webforms_Iis 10 - Fatal编程技术网

C# aspx页面呈现为空/空白

C# aspx页面呈现为空/空白,c#,asp.net,webforms,iis-10,C#,Asp.net,Webforms,Iis 10,我已在IIS上部署了web应用程序(asp.net webform),但index.apsx页面在浏览器(Chrome/IE/Microsoft Edge)中显示为空/空,Mozila firfox显示为: XML Parsing Error: no element found Location: http://localhost:90/index.aspx Line Number 1, Column 1: index.aspx是登录页和起始页。 我搜索了很多,但没有找到适合我的解决方案 注意

我已在IIS上部署了web应用程序(asp.net webform),但index.apsx页面在浏览器(Chrome/IE/Microsoft Edge)中显示为空/空,Mozila firfox显示为:

XML Parsing Error: no element found
Location: http://localhost:90/index.aspx
Line Number 1, Column 1:
index.aspx是登录页和起始页。 我搜索了很多,但没有找到适合我的解决方案

注意:部署后html页面显示良好。同样,在VS-2012中,web应用程序运行良好


有什么帮助吗?如果您需要web.config文件或任何其他帮助您理解问题的文件,请告诉我。谢谢

我在Visual Studio 2013中遇到了这个问题。我的解决方案是通过添加


你确定你的IIS..没有设置默认页面吗?我的意思是IIS可能被配置为显示index.htm页面(注意htm扩展)…IIS有默认文档列表,但我想说的是,当我打开
index.htm
时,它工作正常,同时,如果我将
index.htm
更改为
index.aspx
,则它不会显示任何内容。空白页。您可以将调试器附加到工作进程,查看是否点击调试器?给我们看看你的aspx页面的代码?