473,790 Members | 2,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET problem - Creating dataset

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="Syst em.Data" %>
<%@ Import Namespace="Syst em.Data.OleDb" %>

<script runat="server">
sub Page_Load(Sende r as Object, e as EventArgs)
'set up connection
dim ObjConn as new OleDbConnection ("Provider=Micr osoft.Jet.OLEDB .4.0;" & _
"DataSource=c:\ Inetpub\wwwroot \aspbook\data\b anking.mdb")

'open connection
dim ObjCmd as new OleDbDataAdapte r("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.Data Source = ds.Tables("tblU sers").DefaultV iew
MyDataList.Data Bind()
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.Data Item, "FirstName" )%>
<%# DataBinder.Eval (Container.Data Item, "LastName") %>
</i></b>
</div>
<br>
<b>Address: </b><%# DataBinder.Eval (Container.Data Item, "Address")%><br >
<b>City: </b><%# DataBinder.Eval (Container.Data Item, "City")%><b r>
<b>State: </b><%# DataBinder.Eval (Container.Data Item, "State")%>< br>
<b>ZIP: </b><%# DataBinder.Eval (Container.Data Item, "ZipCode")%><br >
<b>Phone: </b><%# DataBinder.Eval (Container.Data Item, "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.Ole Db.OleDbExcepti on: 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
Jul 21 '05 #1
2 1463
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.mi crosoft.com> wrote in
message news:03******** *************** ***********@mic rosoft.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="Syst em.Data" %>
<%@ Import Namespace="Syst em.Data.OleDb" %>

<script runat="server">
sub Page_Load(Sende r as Object, e as EventArgs)
'set up connection
dim ObjConn as new OleDbConnection ("Provider=Micr osoft.Jet.OLEDB .4.0;" & _ "DataSource=c:\ Inetpub\wwwroot \aspbook\data\b anking.mdb")

'open connection
dim ObjCmd as new OleDbDataAdapte r("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.Data Source = ds.Tables("tblU sers").DefaultV iew
MyDataList.Data Bind()
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.Data Item, "FirstName" )%>
<%# DataBinder.Eval (Container.Data Item, "LastName") %>
</i></b>
</div>
<br>
<b>Address: </b><%# DataBinder.Eval (Container.Data Item, "Address")%><br >
<b>City: </b><%# DataBinder.Eval (Container.Data Item, "City")%><b r>
<b>State: </b><%# DataBinder.Eval (Container.Data Item, "State")%>< br>
<b>ZIP: </b><%# DataBinder.Eval (Container.Data Item, "ZipCode")%><br >
<b>Phone: </b><%# DataBinder.Eval (Container.Data Item, "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.Ole Db.OleDbExcepti on: 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

Jul 21 '05 #2
Use this to replace what you have originally:
dim ObjConn as new OleDbConnection
("Provider=Micr osoft.Jet.OLEDB .4.0;" & _
"DataSource=c:\ Inetpub\wwwroot \aspbook\data\b anking.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.mi crosoft.com> wrote inmessage news:0374AF5C-6174-4474-8ABC- 59**********@mi crosoft.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="Syst em.Data" %>
<%@ Import Namespace="Syst em.Data.OleDb" %>

<script runat="server">
sub Page_Load(Sende r as Object, e as EventArgs)
'set up connection
dim ObjConn as new OleDbConnection ("Provider=Micr osoft.Jet.OLEDB .4.0;" &_
"DataSource=c:\ Inetpub\wwwroot \aspbook\data\b anking.mdb"
)
'open connection
dim ObjCmd as new OleDbDataAdapte r("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.Data Source = ds.Tables ("tblUsers").De faultView MyDataList.Data Bind()
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.Data Item, "FirstName" )%>
<%# DataBinder.Eval (Container.Data Item, "LastName") %>
</i></b>
</div>
<br>
<b>Address: </b><%# DataBinder.Eval (Container.Data Item, "Address")%><br > <b>City: </b><%# DataBinder.Eval (Container.Data Item, "City")%><b r> <b>State: </b><%# DataBinder.Eval (Container.Data Item, "State")%>< br> <b>ZIP: </b><%# DataBinder.Eval (Container.Data Item, "ZipCode")%><br > <b>Phone: </b><%# DataBinder.Eval (Container.Data Item, "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.Ole Db.OleDbExcepti on:

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

.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1332
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 " yet ". But now when I goto my VS.Net create any project in C# or VB.Net and then try to Add a new Dataset by right clicking on my Project at Solution Explorer to create a Typed Dataset, its gives me an error from Biztalk Editor saying "Empty Choice is...
9
8900
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 this out of an XML file or Excel Template file. Next I need to convert a dataset to xml and try and transform this data into the users xml file..........i've seen a few things on this but havent had much success...
1
3334
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 on filling the dataset. I have also tried creating it from the XML schema but I am having problems manipulating it. If someone could point me to some resources, that would be great as I can't find anything.
8
5970
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; this.oleDbDeleteCommand1.Parameters.Add(new System.Data.OleDb.OleDbParameter("Original_ApplicantName", dataset.Tables.Columns.DataType, 50,
4
2851
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.
1
1505
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 static object in the main accounts page - "public Customer.DataSet dsMyData = new Customer.DataSet();" and populate the tables with information about the account, services, etc which are referenced from the other pages as such: lblEMail.Text =...
10
1641
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) and Visual Basic .NET created an update command--very long as there are a lot of fields. Now there are more large tables to copy. Is there an easy way to have Visual Basic create these update commands itself for the other tables with out...
3
3049
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 devil of a time doing this. The problem is that my application uses an encapsulated data tier for accessing the database vs. accessing it directly via the client tier. However, EVERY example that I have ever seen for creating a Crystal Report at...
4
2412
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 there anything that i can do to speed the app up a bit? namespace SQLToAccessBackup
0
1407
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 buttons for this. What I want to do is to select values from 4 Listbox controls and input some text in the textbox i.e year to display information on another page including all the information from $ listboxes too. I have no idea how to program this...
0
9512
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10413
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10145
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9986
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9021
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3707
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.