Automation Error Could Not Read Key From Registry
Join INTELLIGENT WORK FORUMSFOR COMPUTER PROFESSIONALS Log In Come Join Us! Are you aComputer / IT professional?Join Tek-Tips Forums! Talk With Other Members Be Notified Of ResponsesTo Your Posts Keyword Search One-Click Access To YourFavorite Forums Automated SignaturesOn Your Posts Best Of All, It's Free! Join Us! *Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting Guidelines Promoting, selling, recruiting, coursework and thesis posting is forbidden.Tek-Tips Posting Policies Jobs Jobs from Indeed What: Where: jobs by Link To This Forum! Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.Just copy and paste the BBCode HTML Markdown MediaWiki reStructuredText code below into your site. VBA Visual Basic for Applications (Microsoft) Forum at Tek-Tips HomeForumsProgrammersLanguagesVBA Visual Basic for Applications (Microsoft) Forum Using Excel Object, error reading registry key thread707-1075324 Forum Search FAQs Links MVPs Using Excel Object, error reading registry key Using Excel Object, error reading registry key jsteph (TechnicalUser) (OP) 11 Jun 05 08:02 I have a vb .dll, which opens an Excel.Application object, then attempts to open an .xls file:eXL.Workbooks.Open "C:\foo.xls", FalseAt this statement, I get the error "Automation Error: Could not read key from registry"The user has all registry read rights.A search on google produced nothing about this, (with the exception of a listing of vba errors).Does anyone know about this or have you seen it?Some particulars are that this is a .dll on a web server, which is called by an asp page, so I believe it's running under a dllhost or svchost (I'm not sure which) service.The user is IUSER_SERVERNAME, and when I first got this, I gave that user all registry read rights, propogated to all child keys, just to be sure.Still get the error.Also, I prototyped this .dll using Access on my workstation, and it worked fine there, but the same code (essentially) in a compiled .dll causes this error.All other code in the dll runs fine.Thanks for any info on this,--Jim RE: Using Excel Object, error reading registry key jsteph (TechnicalUser) (OP) 11 Jun 05 14:08 I partially answered my question--it is a user/security issue, but giving iuser_machine doesn't help, I had to change the authentication to Windows Authentication, which I didn't want to do, but that did stop that error, though my question still stands but is ammended:
security: Could not read key from registry; Interface not registered Sorry for the complicated subject line; it reflects the nature of the subject :-) So far, we have web application that uses COM components under MTS/COM+ to communicate with database. Everything works generally fine. We started the deployment, and found out that on some servers (both NT or W2K) for unclear reason we get the following errors when we try to run the application: -2147221168 (80040150) Could not read key from http://www.tek-tips.com/viewthread.cfm?qid=1075324 registry OR -2147221163 (80040155) Interface not registered. We have found out that the issue may be resolved by running regedt32 utility on the problemmatic machine and setting the security level for all registry keys and subkeys to Full Access for Everyone. After that the application works fine; moreover, if we change security settings to Read Only after that, it looks http://computer-programming-forum.com/64-vb-com/1b58dd5f9b0bca14.htm like the application continues to work fine. It looks like first time on some configurations MTS tries to change some registy settings and unable without Full Access for Everyone. It is not a huge problem, but extremely annoying and unprofessional if we need to make a complicated manual intervention during every installation. We are intended to either find the reason of such behaviour, or at least write a code to change access level to the appropriate registry keys. The problem is that I cannot find which keys are responsible for the described behavior. If anybody knows anything about the described situation, I would appreciate any help or advice. Thank you very much beforehand, Gene Mon, 10 Feb 2003 03:00:00 GMT Sabb#2 / 3 Registry security: Could not read key from registry; Interface not registered the mts/com+ application identity is the identity used to access the registry, i'd use an account that has local admin privileges, security checks should have already been done with role-based security at the application entry points. get an utility from www
and I am getting the following error when I run the project: Exception Details: System.Runtime.InteropServices.COMException: http://www.yqcomputer.com/56_47708_1.htm Could not read key from registry Source Error: Line 27: Line 28: http://www.vbforums.com/showthread.php?10066-Automation-error //conn.InitConnection("TSTDR-MIT", "", ""); Line 29: conn.InitConnectionEx("TSTDR-MIT"); Line 30: conn.ConnectProject("JerryGarcia", "guest", ""); Line 31: TDAPIOLELib.ListClass tdList = (ListClass)conn.ProjectsList; Source File: c:\inetpub\wwwroot\tdtest\webform1.aspx.cs Line: 29 Stack Trace: [COMException (0x80040150): Could not read key from registry] TDAPIOLELib.TDConnectionClass.InitConnectionEx(String ServerName) +0 TDTest.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\tdtest\webform1.aspx.cs:29 System.Web.UI.Control.OnLoad(EventArgs e) System.Web.UI.Control.LoadRecursive() System.Web.UI.Page.ProcessRequestMain() Any suggestions would automation error be greatly appreciated. Mark Top Could not read key from registry by Svein Terj » Sun, 19 Sep 2004 02:07:17 If you don't already know, perhaps you could use RegMon from SysInternals to figure out exactly which registry key the COM component is trying to read, and then grant rights for the ASPNET user for the automation error could key? Could also be something related to code access security. Perhaps you could try requesting the rights your component needs in the assemblyinfo file. When you then try to run, an error should be thrown if the rights are not sufficient. An obvious right to request would be the right to run Interop assemblies. Sincerely Svein Terje Gaup Top Could not read key from registry by Kevin Spen » Sun, 19 Sep 2004 03:02:47 Your ASP.Net account doesn't have the necessary permissions to read from the registry. Grant them, or use an account that already has them. -- HTH, Kevin Spencer .Net Developer Microsoft MVP I get paid good money to solve puzzles for a living Top 1. Could not read key from registry 2. Automation Error - could not read key from registry 3. How to interprete runtime error "Could not read key from registry" 4. IIS Error "Could not read key from registry" 5. Reading registry key throws "Requested registry access is not allowed." 6. read registry using regist
your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 2 of 2 Thread: Automation error Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Feb 23rd, 2000,06:53 PM #1 Frederik Gekiere View Profile View Forum Posts Thread Starter Member Join Date Apr 1999 Posts 38 I have code that used to work It creates an instance of an object and does some stuff with it ... Then I was looking (read 'testing') some things in the Remote Automation Connection Manager (delivered with VB) and when I started the code I wrote, I got the following error message on the CreateObject command: -------------------------------------------- -2147221166 Automation error Could not find the key in the registry -------------------------------------------- Does anybody know what I could have done wrong and how to solve this problem ?? Edited by Frederik Gekiere on 02-24-2000 at 07:54 AM Reply With Quote Feb 23rd, 2000,07:37 PM #2 Frederik Gekiere View Profile View Forum Posts Thread Starter Member Join Date Apr 1999 Posts 38 need no longer help, problem solved ! I compared my registry to another one and restored the differences in the ClassID of the involved object. Reply With Quote Quick Navigation Visual Basic 6 and Earlier Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Visual Basic Visual Basic .NET VB.net CodeBank Visual Basic 6 and Earlier CodeBank - Visual Basic 6 and earlier Modern Windows Experience (Metro) Office Development Mobile Development ASP, VB Script Database Development Reporting API Games and Graphics Programming Game Demos COM and ActiveX Network Programming Visual Basic FAQs Slow Chat with the Microsoft Visual Basic team .NET ASP.NET Visual Basic .NET MVC .Net C# WPF, WCF, WF Silverlight .NET Architecture and Design General General Developer Forum IoT, IoE, and Maker Forum Testers and Testing Application Testing Application Deployment Linux Development General PC VBForums Coding Contests Contest Entries Code It Better Maths Forum Other Languages Other BASIC C and C++ Java PHP XML, HTML, Javascript, Web and CSS jQuery Assembly Other Programming Langu