Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > BOOK: Beginning ASP.NET 1.1
|
BOOK: Beginning ASP.NET 1.1
This is the forum to discuss the Wrox book Beginning ASP.NET 1.1 with Visual C#.NET 2003 by Chris Ullman, John Kauffman, Chris Hart, Dave Sussman, Daniel Maharry; ISBN: 9780764557088
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 3rd, 2004, 11:36 PM
Registered User
 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to urbanwebdev
Default Please help cannot find solution to this problem

Server Error in '/begASPNET' Application.
--------------------------------------------------------------------------------

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 19: objConnection = New OleDbConnection(strConnect)
Line 20: objCommand = New OleDbDataAdapter(strCommand, objConnection)
Line 21: objCommand.Fill(DataSet1, "Products")
Line 22: DataGrid1.DataSource=DataSet1.Tables("Products") .DefaultView
Line 23: DataGrid1.DataBind()


Source File: C:\begASPNET\ch02\datacontrol1.aspx Line: 21

Stack Trace:


[OleDbException (0x80004005): Could not find installable ISAM.]
System.Data.OleDb.OleDbConnection.ProcessRes ults(Int32 hr) +20
System.Data.OleDb.OleDbConnection.Initialize Provider() +57
System.Data.OleDb.OleDbConnection.Open() +203
System.Data.Common.DbDataAdapter.QuietOpen(I DbConnection connection, ConnectionState& originalState) +44
System.Data.Common.DbDataAdapter.FillFromCom mand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +304
System.Data.Common.DbDataAdapter.Fill(DataSe t dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77
System.Data.Common.DbDataAdapter.Fill(DataSe t dataSet, String srcTable) +36
ASP.datacontrol1_aspx.Page_Load(Object Sender, EventArgs E) in C:\begASPNET\ch02\datacontrol1.aspx:21
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

HERE IS MY CODE:

<%@ Import Namespace="system.Data" %>
<%@ Import Namespace="System.Data.OleDb" %>
<%@ Page Language="vb" Debug="true" %>
<script language="vb" runat="server">
    Sub Page_Load(Sender As Object, E as EventArgs)
        Dim objConnection As OleDbConnection
        Dim objCommand As OleDbDataAdapter
        Dim strConnect As String
        Dim strCommand As String
        Dim DataSet1 As New DataSet

        StrConnect = "Provider=Microsoft.Jet.OLEDB.4.0;"
        StrConnect += "Data Scorce=C:\begASPNET\sourceCode\Ch02\"
        'StrConnect += "Samples\quickstart\aspplus\samples\grocertogo\dat a"
        StrConnect += "\grocertogo.mdb;"
        StrConnect += "Persist Security Info=False"

        StrCommand = "SELECT ProductName, UnitPrice FROM products"
        objConnection = New OleDbConnection(strConnect)
        objCommand = New OleDbDataAdapter(strCommand, objConnection)
        objCommand.Fill(DataSet1, "Products")
        DataGrid1.DataSource=DataSet1.Tables("Products").D efaultView
        DataGrid1.DataBind()
    End Sub
</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Data Grid Control example</title>
</head>
<body>
    <asp:DataGrid id="DataGrid1" runat="server" />
</body>
</html>

What can I do to get up and running with this ASP.NET example.
 
Old November 5th, 2004, 02:52 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Your connectionstring doesn't look good:

Data Scorce


Should be

Data Source

Take a look here: http://www.able-consulting.com/dotne...anagedProvider (under Jet) for a full example of a connection string.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old November 6th, 2004, 09:52 AM
Registered User
 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to urbanwebdev
Default

Thank you, I really appreciate your quick response. I guess I have to remember that alot of the errors in the code are spelling errors.






Similar Threads
Thread Thread Starter Forum Replies Last Post
VBScript or SQL solution to problem mat41 Classic ASP Professional 5 October 8th, 2008 05:13 PM
A serious string problem. Urgent solution needed. asfak XSLT 2 November 28th, 2007 06:08 AM
try this and please find a solution... tinujose Oracle 2 March 22nd, 2007 11:26 PM
Solution Excel's can't find the project or library Born2BFree Excel VBA 0 October 21st, 2005 11:49 AM
ConnectionString Problem when load Solution bekim BOOK: ASP.NET Website Programming Problem-Design-Solution 12 July 6th, 2004 10:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.