Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hy friends

I had developing a application to fetch data from a biometric fingerprint machine but when I run it in VS2010 its complete build sucessfully and then gives an error

System.InvalidOperationException was unhandled
Message="An error occurred creating the form. See Exception.InnerException for details. The error is: Retrieving the COM class factory for component with CLSID {00853A19-BD51-419B-9269-2DABE57EB61F} failed due to the following error: 80040154."
Source="CardManagement"
StackTrace:
at Card.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at Card.My.MyProject.MyForms.get_Card()
at Card.My.MyApplication.OnCreateMainForm() in C:\Documents and Settings\XPMUser\Desktop\card\Card Management\My Project\Application.Designer.vb:line 35
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at Card.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

Can any one help I am running out of time.And I tried all the changes and all targetted platform
Posted

You can register Zmkeeper.dll with administrative right. open run window with administrator.
After registering the dll, right click on Project Name -> Properties -> Compile -> Advance compile options..-> Target CPU to Any CPU.
 
Share this answer
 
v2
Comments
mijan93 31-Dec-15 2:00am    
THANKS A LOT. IT SOLVED MY PROBLEM. :-)
Start by doing what the error says: "An error occurred creating the form. See Exception.InnerException for details" If you look at the InnerException, it should (hopefully) give you an idea as to why the exception was thrown - almost certainly it is because you have passed a wrong parameter or parameter value to something.

If you can't find it that way, then put a breakpoint at the top of the form constructor and single step your way through until you find what is causing the exception.

Sorry to be so general about this, but with that little information we can't be a lot more specific - and you using the debugger to examine what is going on is going to be the quickest way to get better info and solve the problem.
 
Share this answer
 
Ya I have solved ...This error occur because the com dll Zmkeeper.dll was not able to register .I tried it manually using regsvr32 but failed.At last I installed the demo software package which came along with the software which register all the wanted dll and after that added the dlls again as reference .It worked.but now also I dont know why i cannot do the same by regsvr32
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900