ช่วยทีคัย มือใหม่


คือผมอัพเว็บลง host ใช้ asp.net กับ SQL



ผมใส่ database ใน App_data ตอนรันใน VB2008 ไม่มีปัญหาคับ



พอกดลิ้งไปหน้า database มันก้อขึ้นแบบนี้อะคับ



จะต้องแก้อะไรมั่งคับ

 

 



Server Error in '/' Application.





Runtime Error



Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.



Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".




 










<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>




Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.











<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>


23 ก.พ. 2554 2 4,894

ข้อความที่เห็นเป็น Error จาก Server ละครับ ซึ่งอาจเกิดจากข้อผิดพลาดใดๆก้ได้ (เดายาก เนื่องจากมันไม่บอกอะไรเลย)



หนทางแก้ไขในตอนนี้คงไม่มี แต่ที่อยากจะแนะนำก็คือ อาจต้องตั้งค่า Error ของ asp.net ให้แสดงข้อมูลมากกว่านี้หน่อย เพื่อให้ง่ายขึ้น หรือไม่ก็ลองใช้ เครื่องมือ debug ดูครับ ว่าข้อผิดพลาดจริงๆอยู่ที่ไหน
#1

ขอบคุนมากคับ แต่เปิดตงไหนอะคับ
#2
ความคิดเห็น
ไฟล์อัปโหลด ชนิด jpg, jpeg ขนาดไฟล์ไม่เกิน 1024
^