Problem :
I have been working on developing Windows Services for one of the ArcGIS application which use .NET Remoting and ArcObjects. Its been working fine until I am testing on my local machine. As soon as I installed on server it started throwing below error.
{Retrieving the COM class factory for component with CLSID {16AA0B9E-79AC-43B5-86CA-AB961FBEED5F} failed due to the following error: 80040154. }
It was throwing the exception, the place where I was initialising ArcGIS product.
Solution :
After a lot efforts, I found that I was trying to use 32 bit resource on 64 bit machine which was give that error. In such case, go to Project --> Properties -- > select build section. Change the platform target from "Any CPU" to "x86" and compile the project and install it to server and it should work now.
Monday, February 8, 2010
Subscribe to:
Posts (Atom)