Automation Error Cannot Find The File Specified
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business automation error the system cannot find the file specified vb6 Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation
Automation Error The Specified Module Cannot Be Found
Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like automation error the system cannot find the file specified tlb you, helping each other. Join them; it only takes a minute: Sign up COM registration fails: “Automation error: the system cannot find the file specified”, when installing dll into other folder than the tlb file up vote 3 ms access automation error. the system cannot find the file specified down vote favorite We have a COM component (let's call it MyLib) developed in VB.NET, for our Access application (let's call it MyApp) to use. In order to do that, we need to do COM registration using the generated MyLib.dll and MyLib.tlb files. When I am installing both files into our MyApp's folder, everything is working fine, the COM function is invoked correctly. However, I am having an error mentioned in the title when I
Regasm Codebase
am installing the dll into a common folder - the reason I am doing it is because we want to allow different versions of MyApp to be installed on the same machine. So if the COM component doesn't change, we of course want to share it among these different versions and let Windows do the reference count. I am not sure where I should put the MyLib.tlb file, either in MyApp's installation folder, or the same common folder as MyLib.dll. But anyway, I tried both locations, and they all gave the same error. I tried to compare the registry files between the case when I put MyLib.* into MyApp's folder, and the case when I put MyLib.dll into common folder. I can't see any difference except of course the CodeBase of the Class I am trying to register under HKCR\Wow6432nodes\CLSID{MYCLSID}\InprocServer32. Another thing I don't understand is there is no sub-key named TypeLib under HKCR\Wow6432nodes\CLSID{MYCLSID} in both cases, which in my understanding is the way to link the TypeLib to the dll (but why is is still working when I put tlb and dll into the same folder?) since in MyApp it only knows that there is a reference we add by reference of MyLib.tlb. I don't understand exactly how COM reference works for Access application, so if I am wrong please correct me. Can
SQL Server 2014 Express resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and reference Dev centers automation error in vba Retired content Samples We’re sorry. The content you requested has been removed. You’ll regasm tlb be auto redirected in 1 second. Ask a question Quick access Forums home Browse forums users FAQ Search related threads
Regasm Unregister
Remove From My Forums Answered by: error -2147024894 (80070002) Automation Error Archived Forums V > Visual Basic Interop and Upgrade Question 0 Sign in to vote hi guys, this too is in http://stackoverflow.com/questions/11673878/com-registration-fails-automation-error-the-system-cannot-find-the-file-speci relation to this thread.i'm having problems running the vb6 app, and the error occurs when i make the form show. i've followed the instructions from the help file and still the problem arises everytime.here's another weird thing, when i added the interop form to an existing vb6 application, it was ok when run inside the ide. when i compiled this to an .exe file, the error https://social.msdn.microsoft.com/Forums/en-US/7c5c16d7-4029-4b6f-9a29-55a1c27718b5/error-2147024894-80070002-automation-error?forum=vbinterop happened. i also tried creating fresh vb6 app and it worked, so any ideas on this issue? thanks.dave. Wednesday, August 29, 2007 3:09 AM Answers 0 Sign in to vote Hi Dave, When you ran it as an .exe file did you have your .NET Dll in the same directory? On a target machine you need to run regasm (with /codebase if you want a relative path). If you have a dependency on stdole.dll, do you have that in the GAC? (If you don't have it referenced in your .NET project then don't worry about this one). Hope that helps, let me know if you're still having issues with it. Jonathan Friday, August 31, 2007 9:33 PM Moderator All replies 0 Sign in to vote Hi Dave, When you ran it as an .exe file did you have your .NET Dll in the same directory? On a target machine you need to run regasm (with /codebase if you want a relative path). If you have a dependency on stdole.dll, do you have that in the GAC? (If you don't have it referenced in your .NET project then don't worry abo
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/Advanced ASP.NET/Enterprise Services Integration/automation error, The system cannot find the file specified automation error, The http://forums.asp.net/t/1073809.aspx?automation+error+The+system+cannot+find+the+file+specified system cannot find the file specified RSS 2 replies Last post Feb 20, 2007 02:47 AM by prasant.swain ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email https://bytes.com/topic/c-sharp/answers/438152-interop-call Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search Reply prasant.swai... Member 21 Points 10 Posts automation error, The system cannot find the file specified Feb automation error 10, 2007 03:11 AM|prasant.swain|LINK in my .net application i am using a COM file (that is written in vb 6) . this function internally call another dll and reading the globla.asa file using ASPTypeLibrary .. and when i usethe function in my application it is giving me this error automation error The system cannot find the cannot find the file specified. :-2147024894 .. Please if anyone have simillar kind of problem then please give me it's solution.. Thanks.. Prasant Swain Reply SGWellens All-Star 124309 Points 10172 Posts Moderator Re: automation error, The system cannot find the file specified Feb 10, 2007 04:29 PM|SGWellens|LINK With depends.exe, you can look at any executable file and see the list of file it needs to run. http://www.dependencywalker.com/ Steve Wellens My blog Reply prasant.swai... Member 21 Points 10 Posts Re: automation error, The system cannot find the file specified Feb 20, 2007 02:47 AM|prasant.swain|LINK Thankyou SG Wellens.. actually i find the problem. that is due to the missing of a registry entry.. And again thank you for providing such a important tool.. Prasant Swain ‹ Previous Thread|Next Thread › This site is managed for Microsoft by Neudesic, LLC. | © 2016 Microsoft. All rights reserved. Privacy Statement| Terms of Use| Contact Us| Advertise With Us| CMS by Umbraco| Hosted on Microsoft Azure Feedback on ASP.NET| File Bugs| Support Lifecycle
tips & solutions from a community of 418,436 IT Pros & Developers. It's quick & easy. Interop call P: n/a Tim I have a vb6 Exe. I need to call a C# dll's methods from the VB Exe. I have used RegAsm to register the C# dll. If the VB6 Exe and the C# dll are in the same folder, then everything is fine. But I want to place them in different folders. When I place the VB6 Exe in a folder called 'A' and the C# dll in a folder called 'B', the VB6 Exe throws the following error when it tries to invoke the c# dll's method. -2147024894 - Automation error. The system cannot find the file specified. What do I have to do to make it work? Dec 22 '05 #1 Post Reply Share this Question 6 Replies P: n/a Vadym Stetsyak Put the asm in the new folder and reregister it. When you register dll, actually you register a COM component ( VB6 sees your dll as a COM ). Registration means that appropriate aliases a placed to the windows registry. You can think of alias as GUID <-> assembly path. -- Vadym Stetsyak aka Vadmyst http://vadmyst.blogspot.com "Tim"