ClassFactory cannot supply requested class (2nd Post - MSFT Please make an effort!)

P

Phil

I've searched long and hard thru the groups for similar issues but
unfortunately I cannot still resolve my issue.


My issue is that I've moved webservices from a W2k server to a new Win
2003 server. The service I'm having issues with is built with C# but
accesses a VB6 COM object (which is really a wrapper to another WINAPI
I couldn't get working directly). Firstly before I continue I can
execute this COM object thru a VB app on the 2003 server and it works
fine it's only when I introduce IIS as the instantiating spplication
that it doesn't work.


The WINAPI does communicate with other servers returning an XML string.

However, as mentioned this does work thru the COM object when called
from a VB app.


I've attempted many solutions setting up the COM object in COM+
Services, specifying impersonation in the Web.Config, setting the User
Right "Act as part of the operating system" for both the impersonated
user and the ASPNET account. I've also tried running in IIS5 isolation
and have attempted to specify permissions in IIS to reflect the
impersonated user.


I've used filemon and regmon and can't see any problems, I've captured
the stack trace below and can see that my impersonated user is
attempting the execution. So any other suggestions or help would be
appreciated.


--- Error ---


Event Type: Error
Event Source: Company
Event Category: None
Event ID: 0
Date: 7/07/2005
Time: 4:43:05 PM
User: N/A
Computer: DEVMT001
Description:


General Information


Additonal Info:
Severity:Medium
MachineName: DEVMT001
TimeStamp: 7/07/2005 4:43:05 PM
FullName: Company.ALL.ExceptionManagemen­t, Version=1.0.1977.20010,
Culture=neutral, PublicKeyToken=null
AppDomainName: /LM/W3SVC/1/Root/CompanyServic­es-1-127651561591773294
ThreadIdentity:
WindowsIdentity: CompanyDomain\ImpersonatedUser


Exception Information
Company.ALL.ExceptionManagemen­t.GenericException: ClassFactory cannot

supply requested class --->
Company.ALL.ExceptionManagemen­t.GenericException: ClassFactory cannot

supply requested class --->
System.Runtime.InteropServices­.COMException
(0x80040111): ClassFactory cannot supply requested class
at Company.MT.AS.Market.Market.Ge­tXML(CXml xml)
--- End of inner exception stack trace ---
at Company.MT.AS.Market.Market.Ge­tXML(CXml xml)
at Company.MT.AS.Product.Product.­GetXML(CXml xml)
--- End of inner exception stack trace ---
 
J

Joe Kaplan \(MVP - ADSI\)

Did you try the interop newsgroup? It doesn't look like anyone in the
security newsgroup has a recommendation on this one. The interop guys might
be able to help with the interop problem that caused you to need to write
the VB6 component in the first place as there really isn't a reason I can
think of that might require you to do that instead of using .NET p/invoke.
That might also reduce your overall complexity.

I'm not sure MS is obligated to answer unless you are an MSDN subscriber
(and I think you may need to post with a registered address
http://msdn.microsoft.com/newsgroups/).

Joe K.
 
P

Phil

Thanks for taking the time to have a look at this, I'll give that a
try.

Cheers,
Phil.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top