+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Staging Sitefinity Not Allowing Page Edit

Staging Sitefinity Not Allowing Page Edit

10 posts, 0 answered
  1. Sam
    Sam avatar
    21 posts
    Registered:
    18 Aug 2010
    29 Oct 2010
    Link to this post
    I pulled the production CMS database and code back to my local machine for some investigation on caching and URL rewriting.  However, I've found that I cannot edit any pages - see the attached screenshots for repro steps.

    Any ideas as to why it would redirect me to the login page?  All I did was switch the caching to InDatabase from InMemory and replaced the urlWhiteSpaceChar from "_" to "-" (even though that didn't work).  I also removed extensions on pages as per the client's requirements.

    Any help would be appreciated!

    Thanks

    Sam Ferrise
    sam.ferrise@fireflylogic.com
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    29 Oct 2010
    Link to this post
    Hello Sam,

    You could be redirected to the login page if you have some logic that clears the authentication cookie or your application gets recycled due to limits of the application pool or database server.

    InDatabase cacheDependency is used when you work in a web farm. When you use Load Balanced environment it is recommended to use InDatabase mode otherwise you may have synchronization problems When cacheDependency mode="InDatabase" the caching triggers will be saved in the database - [sf_DbCacheDependency] table, so they will be available to all servers at any time.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Sam
    Sam avatar
    21 posts
    Registered:
    18 Aug 2010
    29 Oct 2010
    Link to this post
    There's nothing like that going on - the site is brand new and the redirect is happening inside Sitefinity - any other ideas?

    Thansk for the tips on the InDatabase - we had a webfarm set to InMemory and I just wanted to make sure that changing it to InDatabase wasn't going to cause the same problem that I was having.

    Sam

    EDIT: I can hit everwhere but editing pages...it does a 302 redirect to the login screen, and will infinitely do that (when the returnUrl paramater going to that edit page is still there).  Otherwise I go to the dashboard and can go and do anything else I want.  Very weird.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    31 Oct 2010
    Link to this post
    Hello Sam,

    You have some code that makes the redirect - handler, rewriting, clearing authentication cookie etc. If this website is a brand new, then I am not sure how you have created 121 pages so far and they are published (screenshot -1).

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Sam
    Sam avatar
    21 posts
    Registered:
    18 Aug 2010
    01 Nov 2010
    Link to this post
    I copied the source and database back from production to a staging area.  Everything works, except when I get into the page Edit mode.  It flickers for a bit, and when it's about to load the editable controls, it redirects me.  There are no custom handlers, or anything of the kind that I can see that we wrote - just a few custom controls that don't do much but display the menu, etc.

    I'm quite baffled...
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    01 Nov 2010
    Link to this post
    Hello Sam,

    If you want you can open a request and send the problematic project to us. The support system allows up to 20 MB attachments. If the project is larger you can send FTP account or external link from where we could download your files.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Sam
    Sam avatar
    21 posts
    Registered:
    18 Aug 2010
    02 Nov 2010
    Link to this post
    Hey Ivan, I figured out what change was causing this.  Our client was requesting extension-less URLs so after doing a bit of researchy, I changed:
    <cms defaultProvider="Sitefinity" pageExtension=".aspx"
    to
    <cms defaultProvider="Sitefinity" pageExtension=""
    and the problem disappeared.

    Do you know how we can achieve this functionality?

    In addition (thanks for your patience!), I want to implement lowercaseUrls and change the whitespace character.  This doesn't seem to take effect until I've saved that particular item again.  Is there a way around this?

    Thanks,

    Sam Ferrise
    sam.ferrise@fireflylogic.com
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    03 Nov 2010
    Link to this post
    Hello Sam,

    You can take a look at our UserManual, page 199, Extensionless Url section.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  9. Sam
    Sam avatar
    21 posts
    Registered:
    18 Aug 2010
    03 Nov 2010
    Link to this post
    Good evening Ivan.  I looked at that section to set it up originally, and we're using IIS 7 with Integrated Pipeline mode so according to the documentation, all I have to do is remove the .aspx extension from the cms engine in the config file right?  I looked at the wildcard mapping as well, but that seemed more geared towards IIS7 in Classic Pipeline mode and below.

    Do I need to set up a wildcard mapping as well for the .net ISAPI?  Perhaps just on that Sitefinity directory as that's the only one we seem to have problems with.  The site performs perfectly fine externally.

    Thanks again,

    Sam
  10. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    04 Nov 2010
    Link to this post
    Hello Sam,

    Thank you for getting back to us.

    By default .NET 3.5 and 2.0 do not have built in handlers for extensionless URL. So you would have to add a wildcard script map to the ASP.NET ISAPI dll in order to be able to handle extensionless urls. The other option is to install .NET 4.0 framework on your server. Then even if your website is running on older .NET version it will have the extensionless urls handler (which does not require a wildcard script map). .NET 4.0 will automatically add the handler from attached image to your website. Please note that the website from which the screenshot is taken from is running in a .NET 2.0 application pool.

    Best wishes,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
10 posts, 0 answered