Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Splaxi 9 posts 29 karma points
    Jul 10, 2012 @ 21:28
    Splaxi
    0

    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.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 13, 2012 @ 19:00
    Søren Spelling Lund
    0

    Could you check whether the following value is present in web.config:

    <system.webServer>
      <modules runAllManagedModulesForAllRequests="true">

  • Splaxi 9 posts 29 karma points
    Jul 14, 2012 @ 11:14
    Splaxi
    0

    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>

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 18, 2012 @ 12:20
    Søren Spelling Lund
    0

    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

  • Splaxi 9 posts 29 karma points
    Jul 18, 2012 @ 15:46
    Splaxi
    0

    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.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 20, 2012 @ 12:35
    Søren Spelling Lund
    0

    You can override the generated URLs by inheriting the UrlService class and registering your own in components.config.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 20, 2012 @ 12:35
    Søren Spelling Lund
    0

    Or work locally.

  • Splaxi 9 posts 29 karma points
    Jul 22, 2012 @ 07:15
    Splaxi
    0

    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!

  • Søren Spelling Lund 1797 posts 2786 karma points
    Aug 07, 2012 @ 11:08
    Søren Spelling Lund
    0

    Glad to hear that it's working.

Please Sign in or register to post replies

Write your reply to:

Draft