簡體   English   中英

第一次機會異常system.web.httpexception文件不存在

[英]first chance exception system.web.httpexception file does not exist

我是Web編程的新手,所以一開始我在記事本中制作了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

從Debug-> Exceptions拋出

之后,我遇到了兩個未解決的異常相同的錯誤,分別是Continue或Break和其他信息:文件不存在

這些是我的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#"%>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM