I have just downloaded and install the free version of uCommerce, watched the video and installed the uCommerce Store for learning more about your product.
When trying to click on the uCommerce link on the front page - I believe it is the catalog - I get an 404 error. The link I'm trying to click is: http://d25380585.u355.surftown.dk/ucommerce/c-23
I have looked into the template (uCommerce) which points to the XSLT (AllCatalogs[XSLT].xslt) and is calls "CommerceLibrary:GetNiceUrlForCatalog(@id)".
I've looked at the UrlRewriting.config file and sees that there are 4 entries, each handling Catalog, Category, product and CategoryProduct. From what I see either the UrlRewriting.config settings for catalogs isn't "selected" when I click the link or the return rewritten Url is missing an important part.
Could some one guide me in the right direction? Resetting the entire site isn't an issue if I made a big mistake early on :o)
BTW: I'm danish but I'm writing in english to help others if they hit the same problem as me :o)
The site is runned on Surftown hosting provider - just in case it is important.
It seems like a config issue with Surftown. I don't think extensionless URLs are mapped to the ASP.NET handler and so it goes to a different handler (the static resource one).
I will try to contact Surftown and see what they have to say about this issue.
Is it possible to disable urlrewrite for ucommerce in the meanwhile? I would like to continue building my site while i'm waiting for surftown to help me out.
uCommerce Store - url rewrite trouble
Hi!
I have just downloaded and install the free version of uCommerce, watched the video and installed the uCommerce Store for learning more about your product.
When trying to click on the uCommerce link on the front page - I believe it is the catalog - I get an 404 error. The link I'm trying to click is: http://d25380585.u355.surftown.dk/ucommerce/c-23
If I build the correct link my self (http://d25380585.u355.surftown.dk/shop/catalog.aspx?catalog=23) - everything works fine.
I have looked into the template (uCommerce) which points to the XSLT (AllCatalogs[XSLT].xslt) and is calls "CommerceLibrary:GetNiceUrlForCatalog(@id)".
I've looked at the UrlRewriting.config file and sees that there are 4 entries, each handling Catalog, Category, product and CategoryProduct. From what I see either the UrlRewriting.config settings for catalogs isn't "selected" when I click the link or the return rewritten Url is missing an important part.
Could some one guide me in the right direction? Resetting the entire site isn't an issue if I made a big mistake early on :o)
BTW: I'm danish but I'm writing in english to help others if they hit the same problem as me :o)
The site is runned on Surftown hosting provider - just in case it is important.
Could you check whether the following value is present in web.config:
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
This is how my web.config looks like.
<modules runAllManagedModulesForAllRequests="true">
<remove name="ScriptModule" />
<remove name="UrlRewriteModule" />
<remove name="umbracoRequestModule" />
<remove name="viewstateMoverModule" />
<remove name="umbracoBaseRequestModule" />
<remove name="ClientDependencyModule" />
<!-- Needed for login/membership to work on homepage (as per http://stackoverflow.com/questions/218057/httpcontext-current-session-is-null-when-routing-requests) -->
<remove name="FormsAuthentication" />
<add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
<add name="umbracoRequestModule" type="umbraco.presentation.requestModule" />
<add name="viewstateMoverModule" type="umbraco.presentation.viewstateMoverModule" />
<add name="umbracoBaseRequestModule" type="umbraco.presentation.umbracobase.requestModule" />
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="ClientDependencyModule" type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core" />
<!-- Needed for login/membership to work on homepage (as per http://stackoverflow.com/questions/218057/httpcontext-current-session-is-null-when-routing-requests) -->
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
<add name="PerRequestLifestyle" type="Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule, Castle.Windsor" />
</modules>
It seems like a config issue with Surftown. I don't think extensionless URLs are mapped to the ASP.NET handler and so it goes to a different handler (the static resource one).
You can test it with http://d25380585.u355.surftown.dk/shop.aspx which works while http://d25380585.u355.surftown.dk/shop/ does not.
Here's some info http://professionalaspnet.com/archive/2010/12/04/Enable-Extensionless-Urls-in-IIS-7.0-_2600_-7.5.aspx
I will try to contact Surftown and see what they have to say about this issue.
Is it possible to disable urlrewrite for ucommerce in the meanwhile? I would like to continue building my site while i'm waiting for surftown to help me out.
You can override the generated URLs by inheriting the UrlService class and registering your own in components.config.
Or work locally.
I have been in contact with Surftown support.
This is issue was that my site was running in classic mode, they shifted it to integrated mode and everything works fine.
Thank you for your time and patience!
Glad to hear that it's working.
is working on a reply...