C# Automation Error The System 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 automation error the system cannot find the file specified vba and policies of this site About Us Learn more about Stack Overflow
Automation Error The System Cannot Find The File Specified Tlb
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags ms access automation error. the system cannot find the file specified Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only
Regasm Codebase
takes a minute: Sign up Excel .NET COM - Automation error. The system cannot find the file specified up vote 13 down vote favorite 1 I have a .NET 2.0 COM object that's used by VBA in Excel. It works fine on my dev machine, but when trying to use it on a clean VM workstation I get this error: automation error in vba Automation error. The system cannot find the file specified. The dll is registered with "regasm /tlb /codebase mycom.dll" and not put in the GAC. I don't have administration rights on the VM box Any ideas? .net excel com automation share|improve this question asked May 19 '09 at 9:18 ingt 91124 add a comment| 4 Answers 4 active oldest votes up vote 11 down vote You need to either invoke regasm with the full path to the assembly as the codebase parameter value or put the assembly into some location which is always on the path for searching libraries. Otherwise it will not be found when the client tries to instantiate the COM object. share|improve this answer answered May 19 '09 at 12:09 sharptooth 109k50316704 I did try using regasm on the full path of the assembly which is located in c:\temp, but still the same error –ingt May 19 '09 at 14:07 1 Then I guess your best bet is to start ProcessMonitor - technet.microsoft.com/ru-ru/sysinternals/bb896645.aspx - and look what file exactly is not found. It could
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 Retired content Samples We’re sorry. The content you requested has been removed. You’ll be auto redirected
Regasm Tlb
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 run time error '-2147024894' to vote hi guys, this too is in 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 http://stackoverflow.com/questions/881750/excel-net-com-automation-error-the-system-cannot-find-the-file-specified 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 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 https://social.msdn.microsoft.com/Forums/en-US/7c5c16d7-4029-4b6f-9a29-55a1c27718b5/error-2147024894-80070002-automation-error?forum=vbinterop 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 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 0 Sign in to vote hi jonathan, i had a fun time trying to figure out the problem, and yes i even tried your solution before. something must've been wrong with either my vs2005 or vb6 installations, because at one last desperation attempt, i reinstalled everying and it worked. thanks for the advice.dave. Saturday, September 01, 2007 2:55 PM 0 Sign in to vote hello Jonathan... It's urgent... I need your hel
360 games PC games https://support.microsoft.com/en-us/kb/201318 Windows games Windows phone games Entertainment All Entertainment Movies & TV Music Business & Education Business Students & educators Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet automation error Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Lumia All the system cannot Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft