Hi All - I am an experienced ASP developer but am new to ASP.NET and the .NET
framework and am trying to learn how to access datasets.
When I try to build the following page, I get the errow below. I've
reviewed my code over and over and looked for similar errors/information on
the web but I can't seem to find what the problem is, and therefore I can't
come up with a solution. Can anyone help me? Thanks in advance...
Page (am hitting a local Access db/table, which does have records):
<%@ Page Language="VB" Debug="True"%>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb" %>
<script runat="server">
sub Page_Load(Sender as Object, e as EventArgs)
'set up connection
dim ObjConn as new OleDbConnection ("Provider=Microsoft.Jet.OLEDB.4.0;" & _
"DataSource=c:\Inetpub\wwwroot\aspbook\data\bankin g.mdb")
'open connection
dim ObjCmd as new OleDbDataAdapter("select * from tblUsers", objConn)
'fill dataset
dim ds as DataSet = new DataSet()
ObjCmd.Fill(ds, "tblUsers")
'select data view and bind to server control
MyDataList.DataSource = ds.Tables("tblUsers").DefaultView
MyDataList.DataBind()
end sub
</script>
<html><body>
<ASP:DataList id="MyDataList" RepeatColumns="2" RepeatDirection="Vertical"
runat="server">
<ItemTemplate>
<div style="padding:15,15,15,15; font-size:10pt; font-family:Verdana">
<div style="font:12 pt verdana; color:darkred">
<i><b>
<%# DataBinder.Eval(Container.DataItem, "FirstName")%>
<%# DataBinder.Eval(Container.DataItem, "LastName")%>
</i></b>
</div>
<br>
<b>Address: </b><%# DataBinder.Eval(Container.DataItem, "Address")%><br>
<b>City: </b><%# DataBinder.Eval(Container.DataItem, "City")%><br>
<b>State: </b><%# DataBinder.Eval(Container.DataItem, "State")%><br>
<b>ZIP: </b><%# DataBinder.Eval(Container.DataItem, "ZipCode")%><br>
<b>Phone: </b><%# DataBinder.Eval(Container.DataItem, "Phone")%><br>
</div>
</ItemTemplate>
</ASP:DataList>
</body></html>
Error:
Could not find installable ISAM.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: Could not find
installable ISAM.
Source Error:
Line 14: 'fill dataset
Line 15: dim ds as DataSet = new DataSet()
Line 16: ObjCmd.Fill(ds, "tblUsers")
Line 17:
Line 18: 'select data view and bind to server control 2 1444 http://support.microsoft.com/kb/209805 http://www.dotnet247.com/247referenc.../12/61447.aspx http://www.dotnet247.com/247referenc...22/112430.aspx
--
W.G. Ryan, MVP www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
"David Whitfield" <Da************@discussions.microsoft.com> wrote in
message news:03**********************************@microsof t.com... Hi All - I am an experienced ASP developer but am new to ASP.NET and the
..NET framework and am trying to learn how to access datasets.
When I try to build the following page, I get the errow below. I've reviewed my code over and over and looked for similar errors/information
on the web but I can't seem to find what the problem is, and therefore I
can't come up with a solution. Can anyone help me? Thanks in advance...
Page (am hitting a local Access db/table, which does have records): <%@ Page Language="VB" Debug="True"%> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.OleDb" %>
<script runat="server"> sub Page_Load(Sender as Object, e as EventArgs) 'set up connection dim ObjConn as new OleDbConnection ("Provider=Microsoft.Jet.OLEDB.4.0;" &
_ "DataSource=c:\Inetpub\wwwroot\aspbook\data\bankin g.mdb")
'open connection dim ObjCmd as new OleDbDataAdapter("select * from tblUsers", objConn) 'fill dataset dim ds as DataSet = new DataSet() ObjCmd.Fill(ds, "tblUsers")
'select data view and bind to server control MyDataList.DataSource = ds.Tables("tblUsers").DefaultView MyDataList.DataBind() end sub </script>
<html><body> <ASP:DataList id="MyDataList" RepeatColumns="2" RepeatDirection="Vertical" runat="server"> <ItemTemplate> <div style="padding:15,15,15,15; font-size:10pt; font-family:Verdana"> <div style="font:12 pt verdana; color:darkred"> <i><b> <%# DataBinder.Eval(Container.DataItem, "FirstName")%> <%# DataBinder.Eval(Container.DataItem, "LastName")%> </i></b> </div> <br> <b>Address: </b><%# DataBinder.Eval(Container.DataItem, "Address")%><br> <b>City: </b><%# DataBinder.Eval(Container.DataItem, "City")%><br> <b>State: </b><%# DataBinder.Eval(Container.DataItem, "State")%><br> <b>ZIP: </b><%# DataBinder.Eval(Container.DataItem, "ZipCode")%><br> <b>Phone: </b><%# DataBinder.Eval(Container.DataItem, "Phone")%><br> </div> </ItemTemplate> </ASP:DataList> </body></html>
Error: Could not find installable ISAM. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: Could not find installable ISAM.
Source Error:
Line 14: 'fill dataset Line 15: dim ds as DataSet = new DataSet() Line 16: ObjCmd.Fill(ds, "tblUsers") Line 17: Line 18: 'select data view and bind to server control
Use this to replace what you have originally:
dim ObjConn as new OleDbConnection
("Provider=Microsoft.Jet.OLEDB.4.0;" & _
"DataSource=c:\Inetpub\wwwroot\aspbook\data\bankin g.mdb;"
& _
"User ID=Admin; Password=")
Regards,
Nelson -----Original Message----- http://support.microsoft.com/kb/209805 http://www.dotnet247.com/247referenc.../12/61447.aspx http://www.dotnet247.com/247referenc...22/112430.aspx
-- W.G. Ryan, MVP
www.tibasolutions.com | www.devbuzz.com |
www.knowdotnet.com"David Whitfield"
<Da************@discussions.microsoft.com> wrote inmessage news:0374AF5C-6174-4474-8ABC-
59**********@microsoft.com... Hi All - I am an experienced ASP developer but am new
to ASP.NET and the..NET framework and am trying to learn how to access datasets.
When I try to build the following page, I get the errow
below. I've reviewed my code over and over and looked for similar
errors/informationon the web but I can't seem to find what the problem is,
and therefore Ican't come up with a solution. Can anyone help me? Thanks
in advance... Page (am hitting a local Access db/table, which does
have records): <%@ Page Language="VB" Debug="True"%> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.OleDb" %>
<script runat="server"> sub Page_Load(Sender as Object, e as EventArgs) 'set up connection dim ObjConn as new OleDbConnection
("Provider=Microsoft.Jet.OLEDB.4.0;" &_ "DataSource=c:\Inetpub\wwwroot\aspbook\data\bankin g.mdb"
) 'open connection dim ObjCmd as new OleDbDataAdapter("select * from
tblUsers", objConn) 'fill dataset dim ds as DataSet = new DataSet() ObjCmd.Fill(ds, "tblUsers")
'select data view and bind to server control MyDataList.DataSource = ds.Tables
("tblUsers").DefaultView MyDataList.DataBind() end sub </script>
<html><body> <ASP:DataList id="MyDataList" RepeatColumns="2"
RepeatDirection="Vertical" runat="server"> <ItemTemplate> <div style="padding:15,15,15,15; font-size:10pt; font-
family:Verdana"> <div style="font:12 pt verdana; color:darkred"> <i><b> <%# DataBinder.Eval(Container.DataItem, "FirstName")%> <%# DataBinder.Eval(Container.DataItem, "LastName")%> </i></b> </div> <br> <b>Address: </b><%# DataBinder.Eval
(Container.DataItem, "Address")%><br> <b>City: </b><%# DataBinder.Eval
(Container.DataItem, "City")%><br> <b>State: </b><%# DataBinder.Eval
(Container.DataItem, "State")%><br> <b>ZIP: </b><%# DataBinder.Eval
(Container.DataItem, "ZipCode")%><br> <b>Phone: </b><%# DataBinder.Eval
(Container.DataItem, "Phone")%><br> </div> </ItemTemplate> </ASP:DataList> </body></html>
Error: Could not find installable ISAM. Description: An unhandled exception occurred during the
execution of the current web request. Please review the stack trace for
more informationabout the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException:
Could not find installable ISAM.
Source Error:
Line 14: 'fill dataset Line 15: dim ds as DataSet = new DataSet() Line 16: ObjCmd.Fill(ds, "tblUsers") Line 17: Line 18: 'select data view and bind to server control
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ravi |
last post by:
Hi all,
I am facing a strange problem !
I have a machine with Win 2000 Advanced Server, VS.Net 2003 and Biztalk Server 2004 with HL7 Accelrator installed.
Biztalk is working fine..no problems "...
|
by: Paul |
last post by:
Hi all
Arggghhh...........
The problem.....I want the user to be able to create an excel document and
name particular cells in the document where they want the data to be placed
and then save...
|
by: Chris Kennedy |
last post by:
How do create a dataset from scratch based on an XML schema. This will not
be filled by a dataadapter. It will be a dataset which I add rows to and
then save as an XML file. All the example depend...
|
by: Nanda |
last post by:
hi,
I am trying to generate parameters for the updatecommand
at runtime.
this.oleDbDeleteCommand1.CommandText=cmdtext;
this.oleDbDeleteCommand1.Connection =this.oleDbConnection1;...
|
by: Filippo Pandiani |
last post by:
I have a grid that shows the file list from a folder.
On the postback, how do I get a Dataset from this grid?
Thanks,
Filippo.
|
by: Andre Ranieri |
last post by:
I'm designing an extranet web site that customers will use to log in and see their account history, make payments against their balance, etc.
I've declared a strongly typed DataSet as a public...
|
by: cj |
last post by:
I have lots of tables to copy from one server to another. The new
tables have been created to match the old ones. I practiced with one
table. I created the select command (select * from tableA)...
|
by: Tyranno.Lex |
last post by:
I am using Visual Studio .NET 2003 and have successfully deployed a
commercial web application written in C# and ASP.NET. I am now wanting
to add reporting using Crystal Reports and am having a...
|
by: RSH |
last post by:
Hi,
I have a situation where I have created a little application that makes an
Access database from a SQL Database for reporting purposes. it does the job
well, but it seems a bit slow. Is...
|
by: koonda |
last post by:
Hi guys,
I posted a message before and I got some help from the forum. I have a database in SQL Server and I wanted to create a web interface in C#. I had 4 Listbox controls and a Textbox and two...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |