Discussion:
System.UnauthorizedAccessException for COM class factory
(too old to reply)
digistam
2010-03-10 15:08:01 UTC
Permalink
I have build a web service with Microsoft LogParser 2.2. When I use the web
service from localhost, everything works fine. When I want to use the web
service from a remote server, I get this result:

System.UnauthorizedAccessException: Retrieving the COM class factory for
component with CLSID {8CFEBA94-3FC2-45CA-B9A5-9EDACF704F66} failed due to the
following error: 80070005.
at Service.GetQuery(String keyword) in
c:\inetpub\wwwroot\webservice\App_Code\Service.cs:line 35

Line 35 in Service.cs is this:

// Instantiate the LogQuery object
LogQuery oLogQuery = new LogQuery();

I allready looked in Control Panel > Administrative tools > Component
services > Computers > This computer > DCom config

and I noticed MSUtil exists (MSUtil is needed to work with LogParser's
services)

I understand it's a permission problem (code 80070005) but I don't
understand how to solve it. Please advice
f***@gmail.com
2013-03-24 20:41:03 UTC
Permalink
Hi,

Did you ever find a resolution for this issue? I am having the same issue in my asp.net azure project.

Thanks!
Post by digistam
I have build a web service with Microsoft LogParser 2.2. When I use the web
service from localhost, everything works fine. When I want to use the web
System.UnauthorizedAccessException: Retrieving the COM class factory for
component with CLSID {8CFEBA94-3FC2-45CA-B9A5-9EDACF704F66} failed due to the
following error: 80070005.
at Service.GetQuery(String keyword) in
c:\inetpub\wwwroot\webservice\App_Code\Service.cs:line 35
// Instantiate the LogQuery object
LogQuery oLogQuery = new LogQuery();
I allready looked in Control Panel > Administrative tools > Component
services > Computers > This computer > DCom config
and I noticed MSUtil exists (MSUtil is needed to work with LogParser's
services)
I understand it's a permission problem (code 80070005) but I don't
understand how to solve it. Please advice
Loading...