I am trying to take screenshots of any open Internet Explorer. I have writen the code and it works fine when I run the site in debug mode.
Once the site is published I get the following error:
BrijeshRetrieving the COM class factory for component with CLSID
{9BA05972-F6A8-11CF-A442-00A0C90A8F39} failed due to the following
error: 8007007e.
Description: An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the
error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException:
Retrieving the COM class factory for component with CLSID
{9BA05972-F6A8-11CF-A442-00A0C90A8F39} failed due to the following
error: 8007007e.
Source Error:Stack Trace:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[FileNotFoundException: Retrieving the COM class factory for component with CLSID {9BA05972-F6A8-11CF-A442-00A0C90A8F39} failed due to the following error: 8007007e.]
_Default.Button1_Click(Object sender, EventArgs e) +159
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
I have given permission to various files for aspnet user.
I have looked up most of the forum but to no avail.
Any help would be greatly appreciated.
Thanks,

Retrieving the COM class factory for component{} - 8007007e
nkpatt
I am still going through the results of the captured data. Some of it is weird. Somehow it is now giving the same error in the debug mode and so I am trying to trace through as to which file is missing.
Thanks,
Brijesh
toront
I am going through the "Captured Data" of File monitor and I find that I have included the shdocvw.dll.
But apparently the system keeps on adding \%SystemRoot%\System32 if the file is found in the particular directory and it keeps on trying to get the file from locations that do not exists.
Any idea as to what is causing this and how to resolve this
Thanks,
Brijesh
katghoti
Are you saying that your COM object is trying to load shdocvw.dll from %SystemRoot%\System32 and failing
That would seem like a serious problem with the system you are running on. I believe shdocvw.dll is a system dll that is distributed with the OS. It should always be present and should always be found in %systemroot%\System32 so I'm not sure why it would be misisng on your system.
What version of the operating system are you using
Icemandia
Also, my code tries to start a process (iexplore.exe). The process actually get started and show up on the task manager under ASPNET user but the actual Internet Browser is not opening.
From the logs it seems that for some of the dlls eg CRYPTUI.dll it is trying to access
CRYPTUI.dll.2.Manifest and CRYPTUI.dll.2.Config and there are couple of other files with similar names that it is trying to access.
The error I am getting is
Retrieving the COM class factory for component with CLSID {9BA05972-F6A8-11CF-A442-00A0C90A8F39} failed due to the following error: 8007000e.
[OutOfMemoryException: Retrieving the COM class factory for component with CLSID {9BA05972-F6A8-11CF-A442-00A0C90A8F39} failed due to the following error: 8007000e.]
_Default.Button1_Click(Object sender, EventArgs e) +159
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
Thanks
Brijesh
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
Peter Dorotiak
The HRESULT 0x8007007E is "The specified module could not be found.". The module in this case is almost certainly a DLL but whether it is the DLL that implements your component or a DLL that your DLL depends upon we can't really tell. However, if we assume that your COM object DLL is properly deployed and registered the most likely cause is that some other DLL that your DLL depends upon is missing.
One useful tool for these kinds of problems is FileMon from sysinternals: http://www.sysinternals.com/Utilities/Filemon.html. Run filemon on your IIS Server system and reproduce your problem. The filemon log will show every file system access including whatever failure gave rise to the file not found exception. Once you know what DLL is "not found" you have some chance of figuring out why it is not found.