P
Peanut
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.ExceptionManagement, Version=1.0.1977.20010,
Culture=neutral, PublicKeyToken=null
AppDomainName: /LM/W3SVC/1/Root/CompanyServices-1-127651561591773294
ThreadIdentity:
WindowsIdentity: CompanyDomain\ImpersonatedUser
Exception Information
Company.ALL.ExceptionManagement.GenericException: ClassFactory cannot
supply requested class --->
Company.ALL.ExceptionManagement.GenericException: ClassFactory cannot
supply requested class ---> System.Runtime.InteropServices.COMException
(0x80040111): ClassFactory cannot supply requested class
at Company.MT.AS.Market.Market.GetXML(CXml xml)
--- End of inner exception stack trace ---
at Company.MT.AS.Market.Market.GetXML(CXml xml)
at Company.MT.AS.Product.Product.GetXML(CXml xml)
--- End of inner exception stack trace ---
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.ExceptionManagement, Version=1.0.1977.20010,
Culture=neutral, PublicKeyToken=null
AppDomainName: /LM/W3SVC/1/Root/CompanyServices-1-127651561591773294
ThreadIdentity:
WindowsIdentity: CompanyDomain\ImpersonatedUser
Exception Information
Company.ALL.ExceptionManagement.GenericException: ClassFactory cannot
supply requested class --->
Company.ALL.ExceptionManagement.GenericException: ClassFactory cannot
supply requested class ---> System.Runtime.InteropServices.COMException
(0x80040111): ClassFactory cannot supply requested class
at Company.MT.AS.Market.Market.GetXML(CXml xml)
--- End of inner exception stack trace ---
at Company.MT.AS.Market.Market.GetXML(CXml xml)
at Company.MT.AS.Product.Product.GetXML(CXml xml)
--- End of inner exception stack trace ---