List Info

Thread: Activator.CreateInstance throws error 8007007e -- "Specified module could not be found"




Activator.CreateInstance throws error 8007007e -- "Specified module could not be found"
user name
2006-04-14 18:36:14
Hi,

I apologize if this is a trivial question, but I could not
find any
documentation about this.

I have an web application where I need to load a COM
component. I use

System.Type type =
System.Type.GetTypeFromProgID("comName");
System.Object obj = Activator.CreateInstance(type);

and it works fine when running in C# from the command line
or when
debugging as an ASP page (with C# code-behind) from
VisualStudio
2005. However after I deploy the application to my PC I get
a message
that says:

Retrieving the COM class factory for component with CLSID
 failed due to the
following
error: 8007007e.

The error code 8007007e stands for "the specified
module could not be
found". Anyone knows what I need to do to correct
this? I tought either the
path has to be specified differently or permissions have to
be adjusted, but
I couldn't find anything in the documentation.

Thanks,

Alain

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )