ช่วยทีครับ! หัดใช้ Dreamweaver(asp.net) กับฐานข้อมูล Access ตอนเชื่อม และ Test ฐานข้อมูลผ่านทั้งหมด แต่ตอนลองนำไปใช้กับ web browzer(IE) แล้ว Error ตามด้านล่าง
Server Error in '/' Application.
________________________________________
Parser Error
Parser Error Message: Could not load file or assembly 'DreamweaverCtrls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=836f606ede05d46a' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 1:<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1"%>
Line 2: <%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %>
Line 3: <MM:DataSet
Line 4: id="DataSet1"
Source File:/.. /TestDB.aspx Line: 2
Assembly Load Trace: The following information can be helpful to determine why the assembly 'DreamweaverCtrls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=836f606ede05d46a' could not be loaded.
ผู้ใดทราบวิธีแก้ไข ช่วยแนะนำด้วยครับ ?
Tag : - - - -
Date :
24 ม.ค. 2551 15:15:30
By :
sahaphap
View :
2149
Reply :
1
No. 1
Guest
Code (ASP)
<%@ Import Namespace="System.Data"%>
<%@ Import Namespace="System.Data.OleDb"%>
<%@ Page Language="VB" %>
<script runat="server">
Dim objConn As OleDbConnection
Dim objCmd As OleDbCommand
Sub Page_Load(sender As Object, e As EventArgs)
Dim strConnString As String
strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.MapPath("database/mydatabase.mdb")&";Jet OLEDB:Database Password=;"
objConn = New OleDbConnection(strConnString)
objConn.Open()
If objConn.State = ConnectionState.Open Then
Me.lblText.Text = "Access Connected"
Else
Me.lblText.Text = "Access Connect Failed"
End IF
End Sub
Sub Page_UnLoad()
objConn.Close()
objConn = Nothing
End Sub
</script>
<html>
<head>
<title>ThaiCreate.Com ASP.NET - Microsoft Access</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Label id="lblText" runat="server"></asp:Label>
</form>
</body>
</html>