[quoted text, click to view] "John" <John@nospam.infovis.co.uk> wrote in message
news:%23N3uAIQcIHA.4072@TK2MSFTNGP02.phx.gbl...
> Hi
>
> I created a setup file of my app and remotely installed it on a clients
> machine. The app bombs at start-up with the error;
>
> Error while initializing application: Retrieving the COM class factory for
> component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to
> the following error: 8007007e.
>
> The application also gave a stack trace which is given below at the end.
> What's more there is no JIT debugger on the target system. What is the
> problem and how can I proceed from here specially when I have little or
> now way to debug the app on the target system.
>
> Many Thanks
>
> Regards
>
>
>
> Stack Trace
> ========
>
> See the end of this message for details on invoking
> just-in-time (JIT) debugging instead of this dialog box.
>
> ************** Exception Text **************
> System.NullReferenceException: Object reference not set to an instance of
> an object.
---------------------------------------
What it means is that you have a Object reference to a DLL, and the DLL is
not there on the target machine where the applications is running, so it
can't create an Object derived from the DLL that is not there. As opposed
to this DLL being on your development machine where the Object can be
derived from the reference you had set in the development project to the
DLL. Or the DLL is there. but it's dependant upon another DLL that is not
there.
You need to find out what that DLL is that is not on the client's machine,
and you include it in your setup package so that it gets installed with your
application. You never assume that a client machine is going to have all
components you need for your application to run properly. You must make sure
your setup package has all the components that must be installed with the
application in the application's setup packet and install them no matter
what, even if they are all ready there.