Home All Groups Group Topic Archive Search About

error OleDb.OleDbException migrating on 2.0

Author
14 Nov 2005 5:09 PM
Christophe Sauvage
Hello,

I have the version 2.0 of framework.
And i have an error message on a developpment who work on 1.1 :

Exception Details: System.Data.OleDb.OleDbException: Erreur non spécifiée
Source Error:
Line 25: DataSet myDataSet = new DataSet("Entreprise");
Line 26:
Line 27: myDataAdapter.Fill(myDataSet,"Entreprises");


Here is my code  :
string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
(Server.MapPath("/data/planning.mdb"));
OleDbConnection conn = new OleDbConnection(connectionString);
OleDbDataAdapter myDataAdapter = new OleDbDataAdapter("Select * from
Entreprises",conn);
DataSet myDataSet = new DataSet("Entreprise");
myDataAdapter.Fill(myDataSet,"Entreprises");
....

This method still work on asp.net 2.0 ?

Author
15 Nov 2005 12:53 AM
William (Bill) Vaughn
It would help to know what exception is thrown.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

Show quote
"Christophe Sauvage" <csauv***@dpsgroup.com> wrote in message
news:%23Ju0i4T6FHA.2040@TK2MSFTNGP14.phx.gbl...
> Hello,
>
> I have the version 2.0 of framework.
> And i have an error message on a developpment who work on 1.1 :
>
> Exception Details: System.Data.OleDb.OleDbException: Erreur non spécifiée
> Source Error:
> Line 25: DataSet myDataSet = new DataSet("Entreprise");
> Line 26:
> Line 27: myDataAdapter.Fill(myDataSet,"Entreprises");
>
>
> Here is my code  :
> string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
> +
> (Server.MapPath("/data/planning.mdb"));
> OleDbConnection conn = new OleDbConnection(connectionString);
> OleDbDataAdapter myDataAdapter = new OleDbDataAdapter("Select * from
> Entreprises",conn);
> DataSet myDataSet = new DataSet("Entreprise");
> myDataAdapter.Fill(myDataSet,"Entreprises");
> ...
>
> This method still work on asp.net 2.0 ?
>
>
>
>
Author
15 Nov 2005 11:01 AM
Christophe Sauvage
Yes it would help. But the message of the server is :
"Exception Details: System.Data.OleDb.OleDbException: Erreur non spécifiée"
Erreur non spécifiée = error no specify


"William (Bill) Vaughn" <billvaRemoveT***@nwlink.com> a écrit dans le
message de news: %23pk2L6X6FHA.2***@TK2MSFTNGP12.phx.gbl...
Show quote
> It would help to know what exception is thrown.
>
> --
> ____________________________________
> William (Bill) Vaughn
> Author, Mentor, Consultant
> Microsoft MVP
> INETA Speaker
> www.betav.com/blog/billva
> www.betav.com
> Please reply only to the newsgroup so that others can benefit.
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> __________________________________
>
> "Christophe Sauvage" <csauv***@dpsgroup.com> wrote in message
> news:%23Ju0i4T6FHA.2040@TK2MSFTNGP14.phx.gbl...
>> Hello,
>>
>> I have the version 2.0 of framework.
>> And i have an error message on a developpment who work on 1.1 :
>>
>> Exception Details: System.Data.OleDb.OleDbException: Erreur non spécifiée
>> Source Error:
>> Line 25: DataSet myDataSet = new DataSet("Entreprise");
>> Line 26:
>> Line 27: myDataAdapter.Fill(myDataSet,"Entreprises");
>>
>>
>> Here is my code  :
>> string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
>> +
>> (Server.MapPath("/data/planning.mdb"));
>> OleDbConnection conn = new OleDbConnection(connectionString);
>> OleDbDataAdapter myDataAdapter = new OleDbDataAdapter("Select * from
>> Entreprises",conn);
>> DataSet myDataSet = new DataSet("Entreprise");
>> myDataAdapter.Fill(myDataSet,"Entreprises");
>> ...
>>
>> This method still work on asp.net 2.0 ?
>>
>>
>>
>>
>
>
Author
15 Nov 2005 4:59 PM
William (Bill) Vaughn
Did you setup a try/catch exception handler to trap the exception display
the message?

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

Show quote
"Christophe Sauvage" <csauv***@dpsgroup.com> wrote in message
news:eGbRpPd6FHA.1276@TK2MSFTNGP09.phx.gbl...
> Yes it would help. But the message of the server is :
> "Exception Details: System.Data.OleDb.OleDbException: Erreur non
> spécifiée"
> Erreur non spécifiée = error no specify
>
>
> "William (Bill) Vaughn" <billvaRemoveT***@nwlink.com> a écrit dans le
> message de news: %23pk2L6X6FHA.2***@TK2MSFTNGP12.phx.gbl...
>> It would help to know what exception is thrown.
>>
>> --
>> ____________________________________
>> William (Bill) Vaughn
>> Author, Mentor, Consultant
>> Microsoft MVP
>> INETA Speaker
>> www.betav.com/blog/billva
>> www.betav.com
>> Please reply only to the newsgroup so that others can benefit.
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> __________________________________
>>
>> "Christophe Sauvage" <csauv***@dpsgroup.com> wrote in message
>> news:%23Ju0i4T6FHA.2040@TK2MSFTNGP14.phx.gbl...
>>> Hello,
>>>
>>> I have the version 2.0 of framework.
>>> And i have an error message on a developpment who work on 1.1 :
>>>
>>> Exception Details: System.Data.OleDb.OleDbException: Erreur non
>>> spécifiée
>>> Source Error:
>>> Line 25: DataSet myDataSet = new DataSet("Entreprise");
>>> Line 26:
>>> Line 27: myDataAdapter.Fill(myDataSet,"Entreprises");
>>>
>>>
>>> Here is my code  :
>>> string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
>>> Source=" +
>>> (Server.MapPath("/data/planning.mdb"));
>>> OleDbConnection conn = new OleDbConnection(connectionString);
>>> OleDbDataAdapter myDataAdapter = new OleDbDataAdapter("Select * from
>>> Entreprises",conn);
>>> DataSet myDataSet = new DataSet("Entreprise");
>>> myDataAdapter.Fill(myDataSet,"Entreprises");
>>> ...
>>>
>>> This method still work on asp.net 2.0 ?
>>>
>>>
>>>
>>>
>>
>>
>
>
Author
16 Nov 2005 11:31 AM
Christophe Sauvage
with try/catch exception handler i have :

System.Data.OleDb.OleDbException: Erreur non spécifiée at
System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString
constr, OleDbConnection connection) at
System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions
options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection
owningObject) at
System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection
owningConnection, DbConnectionPoolGroup poolGroup) at
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection
owningConnection) at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection
outerConnection, DbConnectionFactory connectionFactory) at
System.Data.OleDb.OleDbConnection.Open() at
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[]
datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand
command, CommandBehavior behavior) at
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord,
Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior
behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String
srcTable) at ASP.admin_planning_accueil_aspx.Page_Load(Object sender,
EventArgs E) in h:\Planning\Admin_Planning\accueil.aspx:line 27


"William (Bill) Vaughn" <billvaRemoveT***@nwlink.com> a écrit dans le
message de news: %2381kKWg6FHA.1***@tk2msftngp13.phx.gbl...
Show quote
> Did you setup a try/catch exception handler to trap the exception display
> the message?
>
> --
> ____________________________________
> William (Bill) Vaughn
> Author, Mentor, Consultant
> Microsoft MVP
> INETA Speaker
> www.betav.com/blog/billva
> www.betav.com
> Please reply only to the newsgroup so that others can benefit.
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> __________________________________
>
> "Christophe Sauvage" <csauv***@dpsgroup.com> wrote in message
> news:eGbRpPd6FHA.1276@TK2MSFTNGP09.phx.gbl...
>> Yes it would help. But the message of the server is :
>> "Exception Details: System.Data.OleDb.OleDbException: Erreur non
>> spécifiée"
>> Erreur non spécifiée = error no specify
>>
>>
>> "William (Bill) Vaughn" <billvaRemoveT***@nwlink.com> a écrit dans le
>> message de news: %23pk2L6X6FHA.2***@TK2MSFTNGP12.phx.gbl...
>>> It would help to know what exception is thrown.
>>>
>>> --
>>> ____________________________________
>>> William (Bill) Vaughn
>>> Author, Mentor, Consultant
>>> Microsoft MVP
>>> INETA Speaker
>>> www.betav.com/blog/billva
>>> www.betav.com
>>> Please reply only to the newsgroup so that others can benefit.
>>> This posting is provided "AS IS" with no warranties, and confers no
>>> rights.
>>> __________________________________
>>>
>>> "Christophe Sauvage" <csauv***@dpsgroup.com> wrote in message
>>> news:%23Ju0i4T6FHA.2040@TK2MSFTNGP14.phx.gbl...
>>>> Hello,
>>>>
>>>> I have the version 2.0 of framework.
>>>> And i have an error message on a developpment who work on 1.1 :
>>>>
>>>> Exception Details: System.Data.OleDb.OleDbException: Erreur non
>>>> spécifiée
>>>> Source Error:
>>>> Line 25: DataSet myDataSet = new DataSet("Entreprise");
>>>> Line 26:
>>>> Line 27: myDataAdapter.Fill(myDataSet,"Entreprises");
>>>>
>>>>
>>>> Here is my code  :
>>>> string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
>>>> Source=" +
>>>> (Server.MapPath("/data/planning.mdb"));
>>>> OleDbConnection conn = new OleDbConnection(connectionString);
>>>> OleDbDataAdapter myDataAdapter = new OleDbDataAdapter("Select * from
>>>> Entreprises",conn);
>>>> DataSet myDataSet = new DataSet("Entreprise");
>>>> myDataAdapter.Fill(myDataSet,"Entreprises");
>>>> ...
>>>>
>>>> This method still work on asp.net 2.0 ?
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
Author
16 Nov 2005 2:35 PM
Christophe Sauvage
Ok. I find.
It was a security problem.
I give the permission to thge folder. And now it's work.


"Christophe Sauvage" <csauv***@dpsgroup.com> a écrit dans le message de
news: %23Ju0i4T6FHA.2***@TK2MSFTNGP14.phx.gbl...
Show quote
> Hello,
>
> I have the version 2.0 of framework.
> And i have an error message on a developpment who work on 1.1 :
>
> Exception Details: System.Data.OleDb.OleDbException: Erreur non spécifiée
> Source Error:
> Line 25: DataSet myDataSet = new DataSet("Entreprise");
> Line 26:
> Line 27: myDataAdapter.Fill(myDataSet,"Entreprises");
>
>
> Here is my code  :
> string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
> +
> (Server.MapPath("/data/planning.mdb"));
> OleDbConnection conn = new OleDbConnection(connectionString);
> OleDbDataAdapter myDataAdapter = new OleDbDataAdapter("Select * from
> Entreprises",conn);
> DataSet myDataSet = new DataSet("Entreprise");
> myDataAdapter.Fill(myDataSet,"Entreprises");
> ...
>
> This method still work on asp.net 2.0 ?
>
>
>
>

AddThis Social Bookmark Button