Using umbraco 4.11.10, uCommerce 3.6.3.13183 and uCommerce_Demo_Store_-_Razor_1.0.3.13143 (.NET 4.0)
When I browse the DEMO store (/demo-store/black-white-wonderland-mood-slim-fit-signature-shirt-limited-edition-%5b200-pieces%5d/c-24/p-105) the ucommerceApi fires an exception:
Message: "The given key was not present in the dictionary.",
StackTrace: " at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at ServiceStack.WebHost.Endpoints.Utils.FilterAttributeCache.GetRequestFilterAttributes(Type requestDtoType) at ServiceStack.WebHost.Endpoints.EndpointHost.ApplyRequestFilters(IHttpRequest httpReq, IHttpResponse httpRes, Object requestDto) at ServiceStack.WebHost.Endpoints.GenericHandler.ProcessRequest(IHttpRequest httpReq, IHttpResponse httpRes, String operationName)"
}
}
I guess it has something to do with the endpoints... I hope you guys can help me out here because I wanted to demo the store to a client of ours tomorrow.
Søren, do you have anyidea why ? is it something you are working on ? are should I try to debug it myself ?
For info, if I add <componentid="ServiceStackApi"service="uCommerce.RazorStore.ServiceStack.AppHost, uCommerce.RazorStore"type="uCommerce.RazorStore.ServiceStack.AppHost, uCommerce.RazorStore"lifestyle="Singleton"/> in the /ucommerce/configuration/core.config then all Razor macro with uCommerce access crashes. I guess it shouldn't be there anymore...
uCommerce Razor Demo Store: GetProductVariations Exception
Hi,
Using umbraco 4.11.10, uCommerce 3.6.3.13183 and uCommerce_Demo_Store_-_Razor_1.0.3.13143 (.NET 4.0)
When I browse the DEMO store (/demo-store/black-white-wonderland-mood-slim-fit-signature-shirt-limited-edition-%5b200-pieces%5d/c-24/p-105) the ucommerceApi fires an exception:
http://ucommerce.local/ucommerceapi/Json/SyncReply/GetProductVariations
{
ResponseStatus: {
}ErrorCode: "KeyNotFoundException", Message: "The given key was not present in the dictionary.", StackTrace: " at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at ServiceStack.WebHost.Endpoints.Utils.FilterAttributeCache.GetRequestFilterAttributes(Type requestDtoType) at ServiceStack.WebHost.Endpoints.EndpointHost.ApplyRequestFilters(IHttpRequest httpReq, IHttpResponse httpRes, Object requestDto) at ServiceStack.WebHost.Endpoints.GenericHandler.ProcessRequest(IHttpRequest httpReq, IHttpResponse httpRes, String operationName)"
}I guess it has something to do with the endpoints... I hope you guys can help me out here because I wanted to demo the store to a client of ours tomorrow.
The api is set in the web.config in the umbraco-reserved paths and:
<location path="ucommerceapi">
<system.web>
<httpHandlers>
<add path="*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" />
</httpHandlers>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add path="*" name="ServiceStack.Factory" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" preCondition="integratedMode" resourceType="Unspecified" allowPathInfo="true" />
</handlers>
</system.webServer>
</location>
http://ucommerce.local/ucommerceapi/Json/SyncReply/GetVariantSkuFromSelection gives me the same exception, adding something to the basket does not work.
Tried with a clean Umbraco installation with an empty web application and an empty MVC3 application. No go.
Im listening too, since I encounter the same errors. Have you tried with a Umbraco 6.0.7 installation, Wouter?.
EDIT: I can confirm that my Razor Demo Store is working properly after making a clean umbraco installation version 6.0.7.
Hi Wouter,
You can always use the live demo site to demo to clients. It's available at http://demo.ucommerce.net
Regarding the issue you're seeing are we dealing with a clean install or did you update the Razor store at any point?
Hello,
I have the exact same problem with :
Hi Wouter,
Could you post the exact steps you performed to install Umbraco, uCommerce, and the Razor store? More specific the better.
I'd like to see if I can repro the issue on my end.
Thanks.
Hello,
I found out what the problem was for me : I have included in my VS project the file /Services/uCommerceApiRegistration.cs
Tips : don’t do that :)
dll run in 32bit
enable 32bit app = true
is working on a reply...