| || |
Help :Cannot load Assembly System.Data.OleDb
I am trying to read excel file using the DotNetFactory object. QTP throws error at the first line itself:
Here is that line,
Set m_connexcel = DotNetFactory.CreateInstance("System.Data.OleDb.Ol eDbConnection","System.Data.OleDb")
Do we need to configure anything to use DotNetFactory object? I am not sure why it's not able to load the specified assembley.
Thanks a lot in advance.
Re: Help :Cannot load Assembly System.Data.OleDb
Well, this has been resolved i just removed OleDb from namespace name. However I am not sure why I need to remove it. I thought the assembley name should specify the namespace in which the designated class (for which you create object Or first argument of CreateInstance method) resides.
Any thought would be appreciated. Thanks.