tags:

views:

86

answers:

1

Hi there!

I building a GIS Application but wenever i run the code its giving me this error

System.Runtime.InteropServices.COMException was unhandled

Message= Retrieving the COM class factory for component with

**CLSID {FBF5715D-A05D-11D4-A64C-0008C711C8C1} failed**

due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

and also in the Project Properties the Option for Register For COM Interop is disabled

Please help me.....can anyone tell how to fix this error Thanks in Advance

A: 

Just looking at the message it sounds like one or more of the components that you reference, or one or more of their dependencies is not registered properly.

If you know which component it is you can use regsvr32.exe to register it, just open a command prompt, go to the directory where the component is and type regsvr32 filename.dll (assuming it's a dll), if it works, try to run the code again otherwise come back here with the error.

If you don't know which component it is, try re-installing/repairing the GIS software (I assume you've installed some GIS software that includes the component you're trying to use).

ho1
thanx alot it worked :)i registered it and nw its working fine ..yeah you are right i was using the GIS Component in my app.thanx again for ur help