Groups > Asp .Net > VS 2005 Web Application Projects > Re: Error HRESULT E_FAIL has been returned from a call to a COM component




Error HRESULT E_FAIL has been returned from a call to a COM
component

Error HRESULT E_FAIL has been returned from a call to a COM component
Fri, 28 Dec 2007 18:56:50 +000
Hi all,

I need help with this annoying error.I am trying to setup a .Net (with VB)
development environment on my desktop for one of the application which is
already in the production for couple of years. The application works fine on the
web.

Visual Studio 2005 .Net 2.0 is installed on my desktop. When I try to build the
entire application/solution in the debug mode (i.e., with http://localhost/),
build scceeds and I could get to the login.aspx. When I try to login, I am
getting the an error...the error says the following two lines...thats
all...nothing else,

"Error HRESULT E_FAIL has been returned from a call to a COM component.

Error HRESULT E_FAIL has been returned from a call to a COM component." 

 Please help.

Thanks in advance for your help,

Chandrasekhara Rao
Post Reply
Re: Error HRESULT E_FAIL has been returned from a call to a COM component
Wed, 2 Jan 2008 02:53:33 +0000
Hi crao_a,

In my opionion, you should first run the web application by ASP.NET Development
Server to exclude the permission cause (the web application running under IIS by
defualt uses the “ASPNET” or “Network Service” accounts, ASP.NET
Development Server uses current Windows login account). 

If debugging in ASP.NET Development Server does not have this issue, we can
confirm it is cause by lack of privilege and permission. You probaly need to the
change ASP.NET running account to “local system” or grant extra privilege
and permission to “ASPNET” or “Network Service” by using dcomcnfg.exe.

IIS policy
http://forums.asp.net/t/1197701.aspx

INFO: Using DCOM Config (DCOMCNFG.EXE) on Windows NT
http://support.microsoft.com/kb/176799/en-us

If debugging in ASP.NET Development Server still has this issue, please record
the com component (the source line stoped when debugging) which throw the error.
Go to check if the com component or the related software is installed correctly
on your desktop machine.
Post Reply
about | contact