Results 1 to 3 of 3

Thread: ISAM error

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2002
    Posts
    4

    Unhappy ISAM error

    Hello Again.. i have yet another question.. BTW, you all have been very kind to offer assistance.. I have an error message that reads the following:

    Server Error in '/6152' 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:

    The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

    1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

    <%@ Page Language="C#" Debug="true" %>

    or:

    2) Add the following section to the configuration file of your application:

    <configuration>
    <system.web>
    <compilation debug="true"/>
    </system.web>
    </configuration>

    Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

    Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

    Stack Trace:


    [OleDbException (0x80004005): Could not find installable ISAM.]
    System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) +20
    System.Data.OleDb.OleDbConnection.InitializeProvider() +57
    System.Data.OleDb.OleDbConnection.Open() +131
    System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +44
    System.Data.Common.DbDataAdapter.Fill(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +98
    System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77
    System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +36
    ASP.datacontrol_aspx.Page_Load(Object sender, EventArgs e) +136
    System.Web.UI.Control.OnLoad(EventArgs e) +67
    System.Web.UI.Control.LoadRecursive() +29
    System.Web.UI.Page.ProcessRequestMain() +724




    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.0.3705.209; ASP.NET Version:1.0.3705.0



    I am trying to connect to an access db using the following code:

    <%@ Import Namespace="System.Data" %>
    <%@ Import Namespace="System.Data.OleDb" %>
    <script Language="c#" runat="server">
    void Page_Load(object sender, EventArgs e){
    OleDbConnection objConnection;
    OleDbDataAdapter objCommand;
    string strConnect;
    string strCommand;

    DataSet DataSet1 = new DataSet();
    strConnect = @"Provider=Microsoft.Jet.OLEDB.4.0;";
    strConnect += @"DataSource=C:\Inetpub\wwwroot\campus.mdb;";
    strConnect += "Persist Security Info=False";

    strCommand = "SELECT vtpdomain FROM VLANs";

    objConnection = new OleDbConnection(strConnect);
    objCommand = new OleDbDataAdapter(strCommand, objConnection);
    objCommand.Fill(DataSet1, "VLANs");
    DataGrid1.DataSource=DataSet1.Tables["VLANs"].DefaultView;
    DataGrid1.DataBind();

    }
    </script>

    <html>
    <head>
    <title>Data Grid example</title>
    </head>
    <body>

    <aspataGrid id="DataGrid1" runat="server" />
    </body>
    </html>


    Any suggestions? Thanks in advance!
    Danielle

  2. #2
    Fanatic Member Patoooey's Avatar
    Join Date
    Aug 2001
    Location
    New Jersey, USA
    Posts
    774
    This is being run on your local system I assume. You don't seem to have the DB drivers installed properly or at all.

    Do a search at http://www.microsoft.com for "MDAC".

    I believe they are up to version 2.7. Install that and try again.


    John

  3. #3
    Fanatic Member Patoooey's Avatar
    Join Date
    Aug 2001
    Location
    New Jersey, USA
    Posts
    774

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width