第一次机会异常系统.web.httpexception文件不存在
本文关键字:httpexception 文件 不存在 web 系统 机会 异常 第一次 | 更新日期: 2023-09-27 18:30:24
我是Web编程的新手,所以一开始我在记事本中制作了一个html简历,现在我正在尝试使用Visual Studio 2010并将该html页面(resume)嵌入其中。当我执行网站时一些目录列表在Chrome中打开,当我检查调试输出时,存在异常
A first chance exception of type 'System.Web.HttpException' occurred in System.Web.dll
之后我做了两个更改1-我选择了起始页2-检查
CLR exceptions > System.web > System.Web.HttpException exception
从调试>异常中抛出
之后,我遇到了与未处理的异常相同的错误,其中包含两个选项"继续"或"中断"以及其他信息:文件不存在
这些是我的 html 标签
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Official CV</title>
<script type="text/javascript">
function displayDate() {
document.getElementById("demo").innerHTML = Date();
}
</script>
</head>
<body>
<p id="demo">This is paragraph.</p>
<button type="button" onclick="displayDate()"> Display Date</button>
<table>
<tr>
<td>
<h1>Abbas</h1>
<address> House no 659, Street no 62, G-11/2, I </address>
00923215250936
</br>
<h4>
</br>
<a id="#tips" href="http://abbasnaqvi512.tumblr.com/"> Go to my site </a>
</h4>
</td>
<td>
<img src="C:'Users'Abbas'Documents'My Web Sites'WebSite1'abbasShah.jpg" width="104" height="142" alt="Abbas " >
</td>
</tr>
</table>
<a id="Top"></a>
<a href="#Bottom">Bottom</a>
<hr/>
<table border="1">
<caption>Education</caption>
<tr style="background-color:yellow">
<th>Degree Name</th><th>School</th><th>City</th>
</tr>
<tr>
<td> BS </td> <td> N</td><td>I</td>
</tr>
<tr>
<td>F</td> <td> P</td> <td>S</td>
</tr>
<tr>
<td>M</td><td>C</td><td>S</td>
</tr>
</table>
<a id="Bottom"></a>
<a href="#Top">Top</a>
</body>
</html>
我没有在文件中写任何东西.cs我无法理解我搜索的大部分内容。请帮助我了解我的罗布莱姆并解决它.
由于您没有代码隐藏文件,只需从 Page
指令中取出 CodeBehind
和其他服务器端属性:
<%@ Page Language="C#"%>