ก็เลยทำตามคำแนะนำคือเพิ่ม Tag customErrors mode="off" เข้าไปใน Web.Config
แล้วรันใหม่ก็ปรากฏจุดที่ทำให้เกิด Error ที่บรรทัดที่เท่าไร
เมื่อพบว่าเกิด Error เกี่ยวกับรูปแบบของ Date จึงไปแก้ไข Code ที่ Page นั้นโดยเพิ่ม
UICulture = "en" Culture = "en-GB"
เข้าไปในบรรทัดแรกของ Page นั้นกลายเป็น
<%@ Page Language="VB" MasterPageFile="~/YourMasterPage.master" AutoEventWireup="false" CodeFile="YourPage.aspx.vb" Inherits="YourPage" UICulture = "en" Culture = "en-GB" title="Your Title" %>เท่านี้ก็จบ สามารถรันได้เป็นปกติ
No comments:
Post a Comment