|
Home > Archive > Commerce Server General > August 2006 > Problem calling web services
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Problem calling web services
|
|
| Billiam 2006-08-04, 1:22 am |
| Hello All,
We've successfully installed Commerce Server 2007 Developer Edition on one
desktop. My desktop, unfortunately, has not been so easy. The issue we are
having is in calling the web services. I get a "Cannot create ActiveX
component" error. The issues is consistent across web service calls. If I
knew what the component was, I could troubleshoot this further. The
exception does not list this though. It does appear to be trying to
read/validate a web.config section with a configuration handler. The
exception is listed below. Anyone have the source for the method
SharedFns.CheckValidConfiguration? Or does anyone have any recommendations
for resolving this. Any help would be appreciated.
Thanks,
Billiam
--
An exception occurred in the 'CatalogWebService' Web service. Exception
details follow:
System.Configuration.ConfigurationErrorsException: An error occurred
creating the configuration section handler for
CommerceServer/catalogWebService: Cannot create ActiveX component.
(c:\inetpub\wwwroot\CatalogWebService\we
b.config line 52) --->
System.Exception: Cannot create ActiveX component.
at Microsoft.VisualBasic.Interaction.CreateObject(String ProgId, String
ServerName)
at SharedFns.CheckValidConfiguration(Connection adoConn, String strSite)
at
Microsoft.CommerceServer.Interop.Configuration.SiteConfigReadOnlyFreeThreaded.Initialize(String bstrSiteName)
at
Microsoft.CommerceServer.Runtime.Configuration.CommerceResourceCollection..ctor(String siteName)
at
Microsoft.CommerceServer.Catalog.Internal.SiteConfigHelper.GetCommerceResource(String siteName)
at
Microsoft.CommerceServer.Catalog.Internal.SiteConfigHelper.GetResourceProperties(String
siteName, Boolean getInventoryResourceProperties, Hashtable&
catalogResourceProperies, Hashtable& inventoryResourceProperies, Boolean
validateResourceVersion)
at
Microsoft.CommerceServer.Catalog.Internal.SiteConfigHelper.GetCatalogResourceProperties(String siteName, Boolean validateResourceVersion)
at
Microsoft.CommerceServer.Catalog.Internal.CatalogWebServiceConfig..ctor(String
siteName, DebugMode debugLevel, String authorizationPolicyPath, Boolean
authorizationEnabled, Int32 chunkSize, Int32 timeOutHours, Int64 maxFileSize,
Boolean enableInventorySystem, CacheConfiguration cacheConfiguration, Int32
maxSearchResults, List`1 allowedJoinTables)
at
Microsoft.CommerceServer.Catalog.Internal.CatalogWebServiceSectionHandler.Create(Object parent, Object context, XmlNode section)
at
System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory. CreateSectionImpl(RuntimeConfigurationRe
cord
configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord,
Object parentConfig, ConfigXmlReader reader)
at
System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory. CreateSectionWithRestrictedPermissions(R
untimeConfigurationRecord
configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord,
Object parentConfig, ConfigXmlReader reader)
at System.Configuration.RuntimeConfigurationRecord.CreateSection(Boolean
inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord,
Object parentConfig, ConfigXmlReader reader)
at System.Configuration.BaseConfigurationRecord.CallCreateSection(Boolean
inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord,
Object parentConfig, ConfigXmlReader reader, String filename, Int32 line)
--- End of inner exception stack trace ---
at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[]
keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord,
SectionRecord sectionRecord, Object parentResult)
at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord
factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean
getLkg, Boolean getRuntimeObject, Object& result, Object& resultRuntimeObject)
at
System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String
configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject,
Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSection(String
configKey, Boolean getLkg, Boolean checkPermission)
at System.Configuration.BaseConfigurationRecord.GetSection(String
configKey)
at System.Web.HttpContext.GetSection(String sectionName)
at
Microsoft.CommerceServer.Catalog.Internal.WebServiceUtility.GetWebServiceConfig()
at Microsoft.CommerceServer.Catalog.Internal.WebServiceUtility.Initialize()
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
| |
| Colin Bowern 2006-08-04, 1:28 pm |
| Billiam,
Having come across a similar problem this is likely caused by your ASP.NET
worker process identity not having the proper permissions to the Commerce
Server program files folder where several COM (ActiveX) objects live. As
part of our install process we grant IIS_WPG "Read & Execute" rights to the
"Microsoft Commerce Server 2007" folder.
You should be able to verify this behaviour as well by using FileMon from
Sysinternals to watch the file system. You will see your worker process
attempt to access a DLL inside that folder and the corresponding Access
Denied message.
Cheers,
Colin
"Billiam" <Billiam@discussions.microsoft.com> wrote in message
news:C07AA829-C860-4631-B840-50FE4AE276A8@microsoft.com...
> Hello All,
>
> We've successfully installed Commerce Server 2007 Developer Edition on one
> desktop. My desktop, unfortunately, has not been so easy. The issue we
> are
> having is in calling the web services. I get a "Cannot create ActiveX
> component" error. The issues is consistent across web service calls. If
> I
> knew what the component was, I could troubleshoot this further. The
> exception does not list this though. It does appear to be trying to
> read/validate a web.config section with a configuration handler. The
> exception is listed below. Anyone have the source for the method
> SharedFns.CheckValidConfiguration? Or does anyone have any
> recommendations
> for resolving this. Any help would be appreciated.
>
> Thanks,
> Billiam
>
> --
> An exception occurred in the 'CatalogWebService' Web service. Exception
> details follow:
>
> System.Configuration.ConfigurationErrorsException: An error occurred
> creating the configuration section handler for
> CommerceServer/catalogWebService: Cannot create ActiveX component.
> (c:\inetpub\wwwroot\CatalogWebService\we
b.config line 52) --->
> System.Exception: Cannot create ActiveX component.
> at Microsoft.VisualBasic.Interaction.CreateObject(String ProgId, String
> ServerName)
> at SharedFns.CheckValidConfiguration(Connection adoConn, String strSite)
> at
> Microsoft.CommerceServer.Interop.Configuration.SiteConfigReadOnlyFreeThreaded.Initialize(String
> bstrSiteName)
> at
> Microsoft.CommerceServer.Runtime.Configuration.CommerceResourceCollection..ctor(String
> siteName)
> at
> Microsoft.CommerceServer.Catalog.Internal.SiteConfigHelper.GetCommerceResource(String
> siteName)
> at
> Microsoft.CommerceServer.Catalog.Internal.SiteConfigHelper.GetResourceProperties(String
> siteName, Boolean getInventoryResourceProperties, Hashtable&
> catalogResourceProperies, Hashtable& inventoryResourceProperies, Boolean
> validateResourceVersion)
> at
> Microsoft.CommerceServer.Catalog.Internal.SiteConfigHelper.GetCatalogResourceProperties(String
> siteName, Boolean validateResourceVersion)
> at
> Microsoft.CommerceServer.Catalog.Internal.CatalogWebServiceConfig..ctor(String
> siteName, DebugMode debugLevel, String authorizationPolicyPath, Boolean
> authorizationEnabled, Int32 chunkSize, Int32 timeOutHours, Int64
> maxFileSize,
> Boolean enableInventorySystem, CacheConfiguration cacheConfiguration,
> Int32
> maxSearchResults, List`1 allowedJoinTables)
> at
> Microsoft.CommerceServer.Catalog.Internal.CatalogWebServiceSectionHandler.Create(Object
> parent, Object context, XmlNode section)
> at
> System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory. CreateSectionImpl(RuntimeConfigurationRe
cord
> configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord,
> Object parentConfig, ConfigXmlReader reader)
> at
> System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory. CreateSectionWithRestrictedPermissions(R
untimeConfigurationRecord
> configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord,
> Object parentConfig, ConfigXmlReader reader)
> at System.Configuration.RuntimeConfigurationRecord.CreateSection(Boolean
> inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord,
> Object parentConfig, ConfigXmlReader reader)
> at
> System.Configuration.BaseConfigurationRecord.CallCreateSection(Boolean
> inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord,
> Object parentConfig, ConfigXmlReader reader, String filename, Int32 line)
> --- End of inner exception stack trace ---
> at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[]
> keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord,
> SectionRecord sectionRecord, Object parentResult)
> at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord
> factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean
> getLkg, Boolean getRuntimeObject, Object& result, Object&
> resultRuntimeObject)
> at
> System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String
> configKey, Boolean getLkg, Boolean checkPermission, Boolean
> getRuntimeObject,
> Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
> at System.Configuration.BaseConfigurationRecord.GetSection(String
> configKey, Boolean getLkg, Boolean checkPermission)
> at System.Configuration.BaseConfigurationRecord.GetSection(String
> configKey)
> at System.Web.HttpContext.GetSection(String sectionName)
> at
> Microsoft.CommerceServer.Catalog.Internal.WebServiceUtility.GetWebServiceConfig()
> at
> Microsoft.CommerceServer.Catalog.Internal.WebServiceUtility.Initialize()
>
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
| |
| Billiam 2006-08-07, 7:19 pm |
| Thanks Colin for the great feedback! FileMon looks really useful. But I ran
it several times and could not get an "Access Denied" message. I even set
permissions to the 2007 folder to as free as possible. As a reality check, I
set ASPNET as an administrator and everything worked. So I'm going to work
backwards on this. It could be that I'm missing the message through some
setting in FileMon or perhaps this is a registry permission issue.
Thanks again for the recommendation...
Billiam
"Colin Bowern" wrote:
> Billiam,
>
> Having come across a similar problem this is likely caused by your ASP.NET
> worker process identity not having the proper permissions to the Commerce
> Server program files folder where several COM (ActiveX) objects live. As
> part of our install process we grant IIS_WPG "Read & Execute" rights to the
> "Microsoft Commerce Server 2007" folder.
>
> You should be able to verify this behaviour as well by using FileMon from
> Sysinternals to watch the file system. You will see your worker process
> attempt to access a DLL inside that folder and the corresponding Access
> Denied message.
>
> Cheers,
> Colin
>
> "Billiam" <Billiam@discussions.microsoft.com> wrote in message
> news:C07AA829-C860-4631-B840-50FE4AE276A8@microsoft.com...
>
>
>
|
|
|
|
|