G
gerryR
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
<connectionStrings>
<add name="ConnectionString5" connectionString="DSN=Excel
Files;DBQ=C:\Inetpub\wwwroot\A2Z.xls;;DefaultDir=C:\Inetpub\wwwroot\;DriverId=1046;MaxBufferSize=2048;PageTimeout=5;"
providerName="System.Data.Odbc"/>
</connectionStrings>
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
<connectionStrings>
<add name="ConnectionString5" connectionString="DSN=Excel
Files;DBQ=C:\Inetpub\wwwroot\A2Z.xls;;DefaultDir=C:\Inetpub\wwwroot\;DriverId=1046;MaxBufferSize=2048;PageTimeout=5;"
providerName="System.Data.Odbc"/>
</connectionStrings>
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