鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆侟/title> <meta name="viewport" content="width=device-width" /> <style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:pointer; } @media screen and (max-width: 639px) { pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; } } @media screen and (max-width: 479px) { pre { width: 280px; } } </style> </head> <body bgcolor="white"> <span><H1>鈥?鈥濆簲鐢ㄧ▼搴忎腑鐨勬湇鍔″櫒閿欒銆侟hr width=100% size=1 color=silver></H1> <h2> <i>鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆侟/i> </h2></span> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "> <b> 璇存槑: </b>鎵ц褰撳墠 Web 璇锋眰鏈熼棿锛屽嚭鐜版湭缁忓鐞嗙殑寮傚父銆傝妫€鏌ュ爢鏍堣窡韪俊鎭紝浠ヤ簡瑙f湁鍏宠閿欒浠ュ強浠g爜涓鑷撮敊璇殑鍑哄鐨勮缁嗕俊鎭€ <br><br> <b> 寮傚父璇︾粏淇℃伅: </b>System.NullReferenceException: 鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆侟br><br> <b>婧愰敊璇?</b> <br><br> <table width=100% bgcolor="#ffffcc"> <tr> <td> <code> 鍙湁鍦ㄨ皟璇曟ā寮忎笅杩涜缂栬瘧鏃讹紝鐢熸垚姝ゆ湭缁忓鐞嗙殑寮傚父鐨勬簮浠g爜鎵嶄細鏄剧ず鍑烘潵銆傝嫢瑕佸惎鐢ㄦ鍔熻兘锛岃鎵ц浠ヤ笅姝ラ涔嬩竴锛岀劧鍚庤姹 URL: <br><br>1. 鍦ㄤ骇鐢熼敊璇殑鏂囦欢鐨勯《閮ㄦ坊鍔犱竴鏉♀€淒ebug=true鈥濇寚浠ゃ€備緥濡侜 <br><br>   <%@ Page Language="C#" Debug="true" %><br><br>鎴曻<br><br>2. 灏嗕互涓嬬殑鑺傛坊鍔犲埌搴旂敤绋嬪簭鐨勯厤缃枃浠朵腑:<br><br><configuration><br>    <system.web><br>        <compilation debug="true"/><br>    </system.web><br></configuration><br><br> 璇锋敞鎰忥紝绗簩涓楠ゅ皢浣跨粰瀹氬簲鐢ㄧ▼搴忎腑鐨勬墍鏈夋枃浠跺湪璋冭瘯妯″紡涓嬭繘琛岀紪璇戯紱绗竴涓楠や粎浣胯鐗瑰畾鏂囦欢鍦ㄨ皟璇曟ā寮忎笅杩涜缂栬瘧銆侟br><br>閲嶈浜嬮」: 浠ヨ皟璇曟ā寮忚繍琛屽簲鐢ㄧ▼搴忎竴瀹氫細浜х敓鍐呭瓨/鎬ц兘绯荤粺寮€閿€銆傚湪閮ㄧ讲鍒扮敓浜ф柟妗堜箣鍓嶏紝搴旂‘淇濆簲鐢ㄧ▼搴忚皟璇曞凡绂佺敤銆 </code> </td> </tr> </table> <br> <b>鍫嗘爤璺熻釜:</b> <br><br> <table width=100% bgcolor="#ffffcc"> <tr> <td> <code><pre> [NullReferenceException: 鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆俔 product_list1_4_1.LoadContentByKind() +855 ASP.product_list1_4_1_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) +364 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +270 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +14 System.Web.UI.Page.Render(HtmlTextWriter writer) +30 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +67 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +101 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +27 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1342 </pre> </code> </td> </tr> </table> <br> <hr width=100% size=1 color=silver> <b>鐗堟湰淇℃伅:</b> Microsoft .NET Framework 鐗堟湰:4.0.30319; ASP.NET 鐗堟湰:4.8.4075.0 </font> </body> </html> <!-- [NullReferenceException]: 鏈皢瀵硅薄寮曠敤璁剧疆鍒板璞$殑瀹炰緥銆 鍦 product_list1_4_1.LoadContentByKind() 鍦 ASP.product_list1_4_1_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) 鍦 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) 鍦 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) 鍦 System.Web.UI.Page.Render(HtmlTextWriter writer) 鍦 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) 鍦 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) 鍦 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException]: 寮曞彂绫诲瀷涓衡€淪ystem.Web.HttpUnhandledException鈥濈殑寮傚父銆 鍦 System.Web.UI.Page.HandleError(Exception e) 鍦 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 鍦 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 鍦 System.Web.UI.Page.ProcessRequest() 鍦 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) 鍦 System.Web.UI.Page.ProcessRequest(HttpContext context) 鍦 ASP.product_list1_4_1_aspx.ProcessRequest(HttpContext context) 鍦 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 鍦 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) 鍦 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --><!-- 姝ら敊璇〉鍙兘鍖呭惈鏁忔劅淇℃伅锛屽洜涓 ASP.NET 閫氳繃 <customErrors mode="Off"/> 琚厤缃负鏄剧ず璇︾粏閿欒娑堟伅銆傝鑰冭檻鍦ㄧ敓浜х幆澧冧腑浣跨敤 <customErrors mode="On"/> 鎴 <customErrors mode="RemoteOnly"/>銆?->