Hi All
I've a simple web app that pulls data from an excel sheet into a small aspx
page. When I browse the site through VS2005 everything works fine. When I
copy the project to IIS wwwroot folder I get a
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found
and no default driver specified
[OdbcException (0x80131937): ERROR [IM002] [Microsoft][ODBC Driver Manager]
Data source name not found and no default driver specified]
Below is my connection string stored in web.config
<connectionStri ngs>
<add name="Connectio nString5" connectionStrin g="DSN=Excel
Files;DBQ=C:\In etpub\wwwroot\A 2Z.xls;;Default Dir=C:\Inetpub\ wwwroot\;Driver Id=1046;MaxBuff erSize=2048;Pag eTimeout=5;"
providerName="S ystem.Data.Odbc "/>
</connectionStrin gs>
Don't think its a permissions problem as for testing purposes I've given
"everyone" read write access to the wwwroot.
Really appreciate any help, am fairly new to this so apologies if its an
obvious solution. If you need any more info just ask.
Rgds
Gerry
I've a simple web app that pulls data from an excel sheet into a small aspx
page. When I browse the site through VS2005 everything works fine. When I
copy the project to IIS wwwroot folder I get a
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found
and no default driver specified
[OdbcException (0x80131937): ERROR [IM002] [Microsoft][ODBC Driver Manager]
Data source name not found and no default driver specified]
Below is my connection string stored in web.config
<connectionStri ngs>
<add name="Connectio nString5" connectionStrin g="DSN=Excel
Files;DBQ=C:\In etpub\wwwroot\A 2Z.xls;;Default Dir=C:\Inetpub\ wwwroot\;Driver Id=1046;MaxBuff erSize=2048;Pag eTimeout=5;"
providerName="S ystem.Data.Odbc "/>
</connectionStrin gs>
Don't think its a permissions problem as for testing purposes I've given
"everyone" read write access to the wwwroot.
Really appreciate any help, am fairly new to this so apologies if its an
obvious solution. If you need any more info just ask.
Rgds
Gerry
Comment