Tag: 内部服务器错误

ASP.NET:HTTP错误500.19 – 内部服务器错误0x8007000d

我正在复制Web应用程序部署,发现与HTTP Error 500.19相关的几个问题。 我的机器正在运行Windows 7,而工作开发使用Windows 8 。 我们正在使用Visual Studio 2010开发我们的Web应用程序。 首先,我得到错误代码0x80070021 ,类似于这里发布。 我根据接受的答案更新我的web.config,然后我得到以下错误代码(这是类似于张贴在这里 )。 HTTP Error 500.19 – Internal Server Error Error Code 0x8007000d Config Source -1: 0: 我已经阅读了Microsoft支持页面中的症状定义,错误原因是: 发生此问题是因为ApplicationHost.config文件或Web.config文件包含格式不正确的XML元素。 和解决scheme是 从ApplicationHost.config文件或从Web.config文件中删除格式错误的XML元素。 但是,我使用的web.config是在原始开发环境中完美的工作。 这是我已经检查和尝试到目前为止: 通过调用aspnet_regiis -i来安装ASP.NET 将我的应用程序设置为使用不同的应用程序池(ASP.NET v4.0,.NET v4等) ApplicationHost.config文件仍然使用Windows 7中的默认值。 这是我的Web.Config的一部分 <system.webServer> <section name="handlers" overrideModeDefault="Allow" /> <section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Allow" /> <validation validateIntegratedModeConfiguration="false" /> […]

500内部服务器错误的PHP文件不为HTML

我的网站只有4-5个静态页面。 index.html & index.php都在那里。 index.html工作正常。 如果我更改为index.php,它会提供500 Internal Server Error 。 我不知道我的错误在哪里? 注意:如果我用php_flag display_errors 1使用.htaccess文件, 它显示Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. 如果我用empty .htaccess文件, 它显示Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. 如果我给../contact-us.php ,它显示正确。 […]