<%@ page language="VB" debug="true"%>
<%@ Import NameSpace="System.data.oledb"%>
<html>
<head>
<title>database connection</title>
</head>
<script language="VB" runat="server">
public sub dbconnect()
dim cnaccess as OleDbConnection
cnaccess=new oledbconnection("provider=Microsoft.Jet.OLEDB.4.0;datasource=c:\inutpub\wwwroot\web.mdb")
cnaccess.open()
response.write("connection succeeded!")
end sub
</script>
<body>
<%dbconnect()%>
</body>
</html>一发布,就提示
异常详细信息: System.Data.OleDb.OleDbException: 找不到可安装的 ISAM。
<%@ Import NameSpace="System.data.oledb"%>
<html>
<head>
<title>database connection</title>
</head>
<script language="VB" runat="server">
public sub dbconnect()
dim cnaccess as OleDbConnection
cnaccess=new oledbconnection("provider=Microsoft.Jet.OLEDB.4.0;datasource=c:\inutpub\wwwroot\web.mdb")
cnaccess.open()
response.write("connection succeeded!")
end sub
</script>
<body>
<%dbconnect()%>
</body>
</html>一发布,就提示
异常详细信息: System.Data.OleDb.OleDbException: 找不到可安装的 ISAM。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货