|
 |
aspx_beginners thread: Could not find installable ISAM
Message #1 by "Z Kofler" <zkofler@h...> on Mon, 22 Apr 2002 19:26:09 -0700
|
|
<html><div style='background-color:'><DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>
<DIV></DIV></DIV>
<DIV></DIV><%@Import Namespace="System.Data"%>
<DIV></DIV>
<DIV>YIKES! I am going through the example in "Beginning ASP.NET using C#" on page 72 and I get the following error
(btw, I've downloaded and reinstalled both MDAC 2.7 and Jet stuff and rebooted; I've got Windows 2000 Server installed on my home
system):</DIV>
<DIV></DIV>
<P><STRONG>Server Error in '/'
Application</STRONG>.<BR><STRONG>--------------------------------------------------------------------------------&
lt;/STRONG></P>
<DIV></DIV>
<P><STRONG>Could not find installable ISAM. <BR></STRONG>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. </P>
<DIV></DIV>
<P>Exception Details: System.Data.OleDb.OleDbException: Could not find installable ISAM.</P>
<DIV></DIV>
<P>Source Error: <BR>Line 20: objConnection = new OleDbConnection(strConnect);<BR>Line 21:
objCommand = new OleDbDataAdapter(strCommand, objConnection);<BR>Line 22: objCommand.Fill(DataSet1,
"Products");<BR>Line 23: DataGrid1.DataSource=DataSet1.Tables["Products"].DefaultView;<BR>Line 24:
DataGrid1.DataBind();<BR> </P>
<DIV></DIV>
<P>Source File: c:\inetpub\wwwroot\datacontrol.aspx Line: 22 </P>
<DIV></DIV>
<P>Stack Trace: </P>
<DIV></DIV>
<P><BR>[OleDbException (0x80004005): Could not find installable ISAM.]<BR>
System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) +20<BR>
System.Data.OleDb.OleDbConnection.InitializeProvider() +57<BR> System.Data.OleDb.OleDbConnection.Open()
+131<BR> System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState&
originalState) +44<BR> System.Data.Common.DbDataAdapter.Fill(Object data, Int32 startRecord, Int32
maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +98<BR>
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior) +77<BR> System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
+36<BR> ASP.DataControl_aspx.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\datacontrol.aspx:22<BR> System.Web.UI.Control.OnLoad(EventArgs e)
+67<BR> System.Web.UI.Control.LoadRecursive() +29<BR>
System.Web.UI.Page.ProcessRequestMain() +724</P>
<DIV></DIV>
<P> </P>
<DIV></DIV>
<P><BR>--------------------------------------------------------------------------------<BR>Version Information:
Microsoft .NET Framework Version:1.0.3705.209; ASP.NET Version:1.0.3705.0 </P>
<DIV></DIV>
<P> </P>
<DIV></DIV>
<P><STRONG>Source Code:<%@Import Namespace="System.Data.OleDb"%><%@Page Language="C#" Debug="true"%>
<DIV></DIV>
<SCRIPT language=c# runat="server">
</DIV>void Page_Load(object sender, EventArgs e)
</DIV>{
</DIV> OleDbConnection objConnection;
</DIV> OleDbDataAdapter objCommand;
</DIV> string strConnect;
</DIV> string strCommand;
</DIV> DataSet DataSet1= new DataSet();
</DIV> strConnect =@"Provider=Microsoft.Jet.OLEDB.4.0;";
</DIV> // If you don't have the grocertogo.mdb db, then you will have to
</DIV> // change the following three lines to point to a different database
</DIV> strConnect+=@"Data Source=C:\Program Files\Microsoft Visual Studio
.NET\FrameworkSDK\Samples\QuickStart\aspplus\samples\grocertogo\data\grocertogo.mdb;";
</DIV> strConnect+=" Persist Sercurity Info=False";
</DIV> // If you don't have grocertogo.mdb, you will have to change this line too
</DIV> strCommand="SELECT ProductName, UnitPrice FROM Products";
</DIV> objConnection = new OleDbConnection(strConnect);
</DIV> objCommand = new OleDbDataAdapter(strCommand, objConnection);
</DIV> objCommand.Fill(DataSet1, "Products");
</DIV> DataGrid1.DataSource=DataSet1.Tables["Products"].DefaultView;
</DIV> DataGrid1.DataBind();
</DIV>}
</DIV></SCRIPT>
<DIV></DIV><?xml:namespace prefix = asp /><asp:DataGrid id=DataGrid1
runat="server"></asp:DataGrid><BR></STRONG><<A href="mailto:%@Import">%@Import</A>
Namespace="System.Data"%><BR><<A href="mailto:%@Import">%@Import</A>
Namespace="System.Data.OleDb"%><BR><<A href="mailto:%@Page">%@Page</A> Language="C#"
Debug="true"%>
<P></P>
<DIV></DIV>
<P><script language="c#" runat="server"><BR>void Page_Load(object sender, EventArgs
e)<BR>{<BR> OleDbConnection objConnection;<BR> OleDbDataAdapter
objCommand;<BR> string strConnect;<BR> string strCommand;<BR> DataSet DataSet1= new
DataSet();<BR> strConnect <A
href='mailto:=@"Provider=Microsoft.Jet.OLEDB.4.0'>=@"Provider=Microsoft.Jet.OLEDB.4.0</A>;";<BR> // If you
don't have the grocertogo.mdb db, then you will have to<BR> // change the following three lines to point to a
different database<BR> <A href='mailto:strConnect+=@"Data'>strConnect+=@"Data</A> Source=C:\Program
Files\Microsoft Visual Studio
.NET\FrameworkSDK\Samples\QuickStart\aspplus\samples\grocertogo\data\grocertogo.mdb;";<BR> strConnect+=" Persist
Sercurity Info=False";<BR> // If you don't have grocertogo.mdb, you will have to change this line
too<BR> strCommand="SELECT ProductName, UnitPrice FROM Products";<BR> objConnection = new
OleDbConnection(strConnect);<BR> objCommand = new OleDbDataAdapter(strCommand,
objConnection);<BR> objCommand.Fill(DataSet1,
"Products");<BR> DataGrid1.DataSource=DataSet1.Tables["Products"].DefaultView;<BR> DataGrid1.DataBind(
);<BR>}<BR></script><BR><html><BR><head><title>Data
Grid Control
example</title></head><BR><body><BR> <asp:DataGrid
id="DataGrid1" runat="server" /><BR></body><BR></html><BR><BR></P>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV><EM>John Kofler</EM></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV></div><br clear=all><hr>MSN Photos is the easiest way to share and print your photos: <a
href='http://g.msn.com/1HM205401/k'>Click Here</a><br></html>
Message #2 by "Jon Maz" <jonmaz@s...> on Tue, 23 Apr 2002 08:44:23
|
|
Have a look at this thread for a discussion of the same problem:
http://www.aspmessageboard.com/forum/aspplus.asp?M=375070&F=36&P=1
Turns out to have been a .NET beta bug...
hth,
JON
|
|
 |