|
Home > Archive > Commerce Server Catalog > October 2004 > QueryInterface Failed
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 |
QueryInterface Failed
|
|
| donnick 2004-10-28, 5:49 pm |
| Can anyone explain what this error message means?
System.InvalidCastException: QueryInterface for interface
Microsoft.CommerceServer.Interop.Catalog.ICatalogSets failed.
I got it after installing a Windows form app that was using the
CatalogLib.dll (Interop) to update catalog data. Is it possible my
CatalogLib.dll or its registry entries were corrupt?
I have already tried a "Repair" on Commerce Server 2002 to no avail. Any
help would be greatly appreciated.
Here is the stack trace:
[InvalidCastException: QueryInterface for interface
Microsoft.CommerceServer.Interop.Catalog.ICatalogSets failed.]
Microsoft.CommerceServer.Interop.Catalog.CatalogSetsClass.Initialize(String
CatalogConnectionString, String TxConfigConnString) +0
Microsoft.CommerceServer.Runtime.Catalog.CatalogSetCollection.InitCatalogSetsData() +177
Microsoft.CommerceServer.Runtime.Catalog.CatalogSetCollection..ctor(CatalogContext catalogContext, String connectionString) +64
Microsoft.CommerceServer.Runtime.Catalog.CatalogContext.get_CatalogSets()
+99
Microsoft.CommerceServer.Runtime.Catalog.CommerceCatalogModule.ValidateCatalogsets(CatalogContext catContext, CommerceCatalogConfig catConfig) +21
Microsoft.CommerceServer.Runtime.Catalog.CommerceCatalogModule.CreateCatalogContext() +250
Microsoft.CommerceServer.Runtime.Catalog.CommerceCatalogModule.get_CatalogContext() +83
Microsoft.CommerceServer.Runtime.Catalog.CommerceCatalogModule.OnBeginRequest(Object sender, EventArgs e) +18
System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +87
| |
| Robert Bogue 2004-10-29, 5:50 pm |
| Commerce Server has to have a HTTP context so direct calls (without slight
of hand) won't work from a WinForms app... I'd suggest making web service
calls from the WinForms app. It solves a lot of problems.
--
Robert Bogue
Microsoft MVP Server-Networking
MCSE(NT4), MCSE (W2K), MCSA:Security (W2K), CNA, A+, Network+, IT Project+,
Server+, Security+, CDIA+, E-Biz+
Crowe Chizek and Co LLC
"donnick" <donnick@discussions.microsoft.com> wrote in message
news:255EDDF4-02D4-4931-82E9-295B45F25C3C@microsoft.com...
> Can anyone explain what this error message means?
>
> System.InvalidCastException: QueryInterface for interface
> Microsoft.CommerceServer.Interop.Catalog.ICatalogSets failed.
>
> I got it after installing a Windows form app that was using the
> CatalogLib.dll (Interop) to update catalog data. Is it possible my
> CatalogLib.dll or its registry entries were corrupt?
>
> I have already tried a "Repair" on Commerce Server 2002 to no avail. Any
> help would be greatly appreciated.
>
> Here is the stack trace:
>
> [InvalidCastException: QueryInterface for interface
> Microsoft.CommerceServer.Interop.Catalog.ICatalogSets failed.]
>
>
Microsoft.CommerceServer.Interop.Catalog.CatalogSetsClass.Initialize(String
> CatalogConnectionString, String TxConfigConnString) +0
>
>
Microsoft.CommerceServer.Runtime.Catalog.CatalogSetCollection.InitCatalogSet
sData() +177
>
>
Microsoft.CommerceServer.Runtime.Catalog.CatalogSetCollection..ctor(CatalogC
ontext catalogContext, String connectionString) +64
>
Microsoft.CommerceServer.Runtime.Catalog.CatalogContext.get_CatalogSets()
> +99
>
>
Microsoft.CommerceServer.Runtime.Catalog.CommerceCatalogModule.ValidateCatal
ogsets(CatalogContext catContext, CommerceCatalogConfig catConfig) +21
>
>
Microsoft.CommerceServer.Runtime.Catalog.CommerceCatalogModule.CreateCatalog
Context() +250
>
>
Microsoft.CommerceServer.Runtime.Catalog.CommerceCatalogModule.get_CatalogCo
ntext() +83
>
>
Microsoft.CommerceServer.Runtime.Catalog.CommerceCatalogModule.OnBeginReques
t(Object sender, EventArgs e) +18
>
>
System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.
Execute() +60
> System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
> completedSynchronously) +87
>
|
|
|
|
|