Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi !!

I am getting ISAM Error in Asp.net . Could not find installable ISAM. I have uninstall my office 2003 and reinstall it but still i am getting this error . I have repair my office 2003 also but no result.
Any one please suggest me some solution for this !!! I am using visual studio 2005 an Xp in my system.


My Coding is below

Imports System.Data.OleDb.OleDbCommand
Imports System.Data.OleDb.OleDbDataReader
Imports System.Data.OleDb
Imports System
Imports System.Data.OleDb.OleDbConnection
Imports System.IO

Partial Class Paripatro
    Inherits System.Web.UI.Page

    Dim cmd As OleDbCommand
    Dim cn As OleDbConnection

    Dim dr As OleDbDataReader
    Dim cmdstr As String

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        cn = New OleDbConnection("Provider = Microsoft.Jet.Oledb.4.0;Datasource=" & server.MapPath ("DEO.mdb"))

        cn.Open()

        cmd = New OleDbCommand("select * from Paripatra", cn)

        cmd.ExecuteNonQuery()

        
    End Sub
End Class
Posted
Updated 25-Feb-13 18:34pm
v2
Comments
Richard C Bishop 25-Feb-13 13:47pm    
Your OleDb connection is not set up acurately. It should not even be compiling. Change it to this:

"Provider=Microsoft.Jet.OleDb.4.0;Data Source=" & server.MapPath("DEO.mdb") & ";Extended Properties=" + "\"" + "Excel 8.0;" + "\"";
Md Jamaluddin Saiyed 26-Feb-13 1:14am    
Thanks a lot sir !! I got the solution by removing "Excel8.0" from coding provided by you !! with excel 8.0 I got table format error !! Thanks again

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900