Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:

Go Back   DevX.com Forums > DevX Developer Forums > Web

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 03-24-2004, 07:21 AM
mnhesh mnhesh is offline
Registered User
 
Join Date: Feb 2004
Posts: 12
Excel connection from ASP gives error - Unable to open registry key

Hi All,

I have developed a site for online reporting. It has a option fromwhere user can browse an excel sheet which will be used to update the database.
It works well on my machine but gives error on web server.

The erroe is
"Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Excel Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x7dc Thread 0x89c DBC 0x10030024 Excel'. "

The connection string is

cn.Open "Provider=MSDASQL;Driver={Microsoft Excel Driver (*.xls)};Initial Catalog = '" & xlpath & "' "

The web server is a win 2000 advance server.

Please let me know the solution for this.

Thanks in advance
__________________
mnhesh
Reply With Quote
  #2  
Old 03-24-2004, 09:21 AM
pclement's Avatar
pclement pclement is offline
Moderator
 
Join Date: Dec 2003
Posts: 2,750
I'm not sure what type of authentication you are using for your web application (or Anonymous?) but it's probably a permissions issue.

PRB: Error Message: 0x80004005: General Error Unable to Open Registry Key

If your web app is set up for Anonymous access then either the IWAM_<machine name> or IUSR_<machine name> probably does not have access to the registry key mentioned in the article.
__________________
Paul
~~~~
Microsoft MVP (Visual Basic)
Reply With Quote
  #3  
Old 03-25-2004, 02:35 AM
mnhesh mnhesh is offline
Registered User
 
Join Date: Feb 2004
Posts: 12
Excel connection from ASP gives error - Unable to open registry key

Thanks pclement,

I read the article you have suggested. But the registry structure for my machine (win 2000) differs from that of described in the article. ( i.e. there is no security node under ODBC)

Quote:
If your web app is set up for Anonymous access then either the IWAM_<machine name> or IUSR_<machine name> probably does not have access to the registry key mentioned in the article.
How can I do this? could you please explain?
The web server is in same city but far from my place. I have paid them for the hosting. Even these guys have no idea about this issue. If you can explain me I can go there and try it out.

Thanks again
__________________
mnhesh
Reply With Quote
  #4  
Old 03-25-2004, 09:34 AM
pclement's Avatar
pclement pclement is offline
Moderator
 
Join Date: Dec 2003
Posts: 2,750
Make sure you run Regedt32.exe and not Regedit.
__________________
Paul
~~~~
Microsoft MVP (Visual Basic)
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:16 AM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.