Asp.net Web.config是否也影响.html文件?
我上传了一个index.html到asp.net主机,效果很好。 在我将web.config文件添加到网站后,当我再次尝试访问index.html时,会出现以下错误。为什么? “由于发生内部服务器错误,无法显示页面。” 您可以在以下位置下载代码:Asp.net Web.config是否也影响.html文件?,asp.net,Asp.net,我上传了一个index.html到asp.net主机,效果很好。 在我将web.config文件添加到网站后,当我再次尝试访问index.html时,会出现以下错误。为什么? “由于发生内部服务器错误,无法显示页面。” 您可以在以下位置下载代码: 猫谁代码演示 法国巴黎 Lorem ipsum dolor sit amet,是一位杰出的献身者。 整数福西布斯 演示 HTML文件仍然托管在应用程序中。如果web.config出现问题,应用程序将无法正确加载,这将阻止html文件的显示。宿主
猫谁代码演示
法国巴黎
Lorem ipsum dolor sit amet,是一位杰出的献身者。
整数福西布斯
演示
HTML文件仍然托管在应用程序中。如果web.config出现问题,应用程序将无法正确加载,这将阻止html文件的显示。宿主asp.net服务器是否正确配置为支持framework 4.0?你能检查一下服务器日志吗?他们可能会让你更好地了解正在发生的事情。
<!DOCTYPE html>
<html lang="en" manifest="offline.manifest">
<head>
<meta charset="utf-8">
<title>Cats Who Code demo</title>
<link href="style.css" type="text/css" rel="stylesheet" media="screen">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;">
</head>
<body>
<div id="container">
<header class="ma-class-en-css">
<h1 id="logo">
<a href="#">Cats Who Code</a></h1>
</header>
<div id="content">
<h2>
Paris, France</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</p>
<p>
Integer faucibus.</p>
</div>
<!-- #content -->
<footer>A demo by <a href="http://www.catswhocode.com">CatsWhoCode</a></footer>
</div>
<!-- #container -->
</body>
</html>
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
</system.web>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".manifest" mimeType="text/cache-manifest" />
</staticContent>
</system.webServer>
</configuration>