Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/70.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# first chance exception system.web.httpexception文件不存在_C#_Html_Asp.net_Visual Studio 2010_Exception - Fatal编程技术网

C# first chance exception system.web.httpexception文件不存在

C# first chance exception system.web.httpexception文件不存在,c#,html,asp.net,visual-studio-2010,exception,C#,Html,Asp.net,Visual Studio 2010,Exception,我是网络编程新手,所以一开始我在记事本中制作了一份html简历,现在我正在尝试使用Visual Studio 2010并将该html页面(简历)嵌入其中 当我检查调试输出时,在chrome中打开了一些目录列表,出现以下异常 A first chance exception of type 'System.Web.HttpException' occurred in System.Web.dll 在那之后,我做了两个改变 1-我选择了起始页 2-检查 CLR exceptions

我是网络编程新手,所以一开始我在记事本中制作了一份html简历,现在我正在尝试使用Visual Studio 2010并将该html页面(简历)嵌入其中 当我检查调试输出时,在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>

官方简历
函数displayDate(){
document.getElementById(“demo”).innerHTML=Date();
}

这是一段

显示日期 阿巴斯
教育类 大学学位 BS NI F P S MCS
我没有在.cs文件中写入任何内容
我找的大部分东西我都听不懂。请帮助我理解我的问题并解决它。

由于您没有代码隐藏文件,只需从您的
页面
指令中取出
代码隐藏
和其他服务器端属性:

<%@ Page Language="C#"%>


WebForm1.aspx.cs
是否存在?如果没有服务器端控件,为什么要使用ASP.NET?@DStanley我将WebForm1.aspx添加为一个项目,这样它就存在了,前四行与已经编写的相同