Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. connection string prob, works in VS but not IIS

connection string prob, works in VS but not IIS

Scheduled Pinned Locked Moved ASP.NET
helpvisual-studiosysadminwindows-admin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gerryR com
    wrote on last edited by
    #1

    Hi All I've got the following connection string in my web.config file, when I "view in browser" through VS's built in web server everything works fine, however when I copy everything to the IIS wwwroot folder and browse that I get the following error: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified I've searched high an low but can't get the thing working! <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"/> Really appreciate any help (again :( )

    V 1 Reply Last reply
    0
    • G gerryR com

      Hi All I've got the following connection string in my web.config file, when I "view in browser" through VS's built in web server everything works fine, however when I copy everything to the IIS wwwroot folder and browse that I get the following error: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified I've searched high an low but can't get the thing working! <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"/> Really appreciate any help (again :( )

      V Offline
      V Offline
      Venkat Eswaran
      wrote on last edited by
      #2

      Can you try re-registering .net with IIS using aspnet_regiis.exe

      Venky

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups