Here is the error as I have posted above sir. Thanks
I am getting the following error at line headXConn.Open();
Exception Details: System.Runtime.InteropServ
ices.SEHEx
ception: External component has thrown an exception.
SEHException (0x80004005): External component has thrown an exception.]
System.Data.Common.IDBInit
ializeInit
ialize.Inv
oke(IntPtr
pThis) +0
System.Data.OleDb.DataSour
ceWrapper.
Initialize
AndCreateS
ession(Ole
DbConnecti
onString constr, SessionWrapper& sessionWrapper) +304
System.Data.OleDb.OleDbCon
nectionInt
ernal..cto
r(OleDbCon
nectionStr
ing constr, OleDbConnection connection) +193
System.Data.OleDb.OleDbCon
nectionFac
tory.Creat
eConnectio
n(DbConnec
tionOption
s options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +86
System.Data.ProviderBase.D
bConnectio
nFactory.C
reateNonPo
oledConnec
tion(DbCon
nection owningConnection, DbConnectionPoolGroup poolGroup) +29
System.Data.ProviderBase.D
bConnectio
nFactory.G
etConnecti
on(DbConne
ction owningConnection) +4911420
System.Data.ProviderBase.D
bConnectio
nClosed.Op
enConnecti
on(DbConne
ction outerConnection, DbConnectionFactory connectionFactory) +117
System.Data.OleDb.OleDbCon
nection.Op
en() +40
importsEmails.headExcelCon
nection() in importsEmails.aspx.cs:65
importsEmails.BtnViewHeade
r_Click(Ob
ject sender, EventArgs e) in importsEmails.aspx.cs:89
System.Web.UI.WebControls.
Button.OnC
lick(Event
Args e) +111
System.Web.UI.WebControls.
Button.Rai
sePostBack
Event(Stri
ng eventArgument) +110
System.Web.UI.WebControls.
Button.Sys
tem.Web.UI
.IPostBack
EventHandl
er.RaisePo
stBackEven
t(String eventArgument) +10
System.Web.UI.Page.RaisePo
stBackEven
t(IPostBac
kEventHand
ler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePo
stBackEven
t(NameValu
eCollectio
n postData) +36
System.Web.UI.Page.Process
RequestMai
n(Boolean includeStagesBeforeAsyncPo
int, Boolean includeStagesAfterAsyncPoi
nt) +1565