Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > .NET Framework > Forum > ช่วยด้วยคับเอาเว็บขึ้น Host เกิด Runtime Error Server Error in '/' Application.Runtime ErrorD



 

ช่วยด้วยคับเอาเว็บขึ้น Host เกิด Runtime Error Server Error in '/' Application.Runtime ErrorD

 



Topic : 034235



โพสกระทู้ ( 3 )
บทความ ( 0 )



สถานะออฟไลน์




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>

ผมรันบนrootผ่านหมดแล้วตอนนี้เอาขึ้นhost ของgodaddy พอเขาเว็บ มันขึ้นอย่างข้างบนคับ
ช่วยอธิบายได้ป่าวคับว่าต้องเขียนโค้ดที่ไหนถึงจะไม่ติด

โค้ด index.aspx ของผม


Code (VB.NET)
<%@ Page Language="VB" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.OleDb" %>
<identity impersonate="true" />
<script runat="server">
	Sub Page_Load(Sender As Object, E As EventArgs)
		Dim Conn As new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.MapPath("mydatabase.mdb")&";")
		Dim Mydatasql As new OleDbDataAdapter("Select * From product" ,Conn)
		Dim org As new DataSet()
		Mydatasql.Fill(org,"Detail1")
		Name1.DataSource=org.Tables("Detail1")
		Name1.DataBind()
	End Sub
</script>
<html><style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style3 {
	font-size: 12px;
	color: #000000;
}
.style5 {
	font-size: 12px;
	color: #999999;
}
-->
</style>
<title>ตัวอย่างเว็บ</title>
<body>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><IMG height=244 alt="" src="http://www.ตัวอย่างเว็บ.com/image/logo.jpg" width=980></td>
  </tr>
</table>
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table align="center">
<tr>
<td>
<asp:DataList ID="Name1" runat="server" GridLines="None" RepeatColumns="6" RepeatDirection="Horizontal" RepeatLayout="Table" Width="980">
	<itemtemplate> 
		<table border="1" cellspacing="0" align="center" bordercolor="#0033FF">
			<tr>
				<td width="115" height="115" align="center">
				<a href="showitem.aspx?productId=<%# Container.DataItem("productId")%>"><img width="115" src="http://ตัวอย่างเว็บ.com/image/<%#Container.DataItem("image1")%>"></img></a>
				</td>
			</tr>
		</table>
		<table border="0" cellspacing="0" align="center">
			<tr>
				<td width="150" height="12" align="center" class="style3">
				<%# Container.DataItem("productName")%>
				</td>
			</tr>
		</table>
		<table border="0" cellspacing="0" align="center">
			<tr>
				<td width="150" height="12" align="center" class="style3">
				<%# Container.DataItem("productID")%>
				</td>
			</tr>
		</table>
		<table><tr><td>&nbsp;</td></tr></table>
	</itemtemplate>
</asp:DataList>
</td>
</tr>
</table>
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td class="style5" align="center">Copy right &copy; 2008 www.ตัวอย่างเว็บ.com All right reserved.</td>
  </tr>
  <tr>
  	<td>&nbsp;</td>
  </tr>
</table>
</body>
</html>




Tag : - - - -







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2009-11-11 16:32:12 By : ahmad99 View : 6725 Reply : 5
 

 

No. 1



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

ลองเปลี่ยน

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


คาดว่าคงจะ Error ครับ

Code
Dim Conn As new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.MapPath("mydatabase.mdb")&";")


ครับ






Date : 2009-11-11 21:37:16 By : webmaster
 


 

No. 2



โพสกระทู้ ( 3 )
บทความ ( 0 )



สถานะออฟไลน์


ขอบคุณคับตอนนี้เอาขึ้นได้แล้ว แต่มีปัญหาใหม่คือมันไมยอมupdateมันขึ้นงี้ Record can not update Error (Operation must use an updateable query.)แต่รันที่wwwrootได้คับ ไม่รู้ว่าดาต้าเบสเวลาอัพขึ้นhostมีปัญหาหรือป่าว ช่วยด้วยทำงัยดีงงมากเลยที่rootได้แต่พอขึ้นhostไมได้ ต้องแก้ดาต้าเบสยังงัยบ้างคับ ตอนอัพขึ้นhostมีวิธีตั้งค่าอะไรหรือป่าวคับ
Date : 2009-11-20 16:58:36 By : ahmad99
 

 

No. 3



โพสกระทู้ ( 3 )
บทความ ( 0 )



สถานะออฟไลน์


ได้แล้วคับพี่น้อง 555+สำเร็จซะที่
Date : 2009-11-30 14:42:04 By : ahmad99
 


 

No. 4

Guest


เออ ดีเนอะ สำเร็จแล้ว... ....แต่ไม่ยอมเผื่อแผ่คนอื่นเลย ว่าแก้ยังไง
Date : 2012-02-08 16:05:35 By : คนใจดี
 


 

No. 5

Guest


นั่นดิไม่ยอมบอกว่าแก้ยังไง เห็นแก่ตัวจริงๆ ได้เสร็จสะบัดตูดหาย
Date : 2014-09-04 11:32:37 By : จิตสำนึก
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ช่วยด้วยคับเอาเว็บขึ้น Host เกิด Runtime Error Server Error in '/' Application.Runtime ErrorD
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 04
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่