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

Forums / Set-up & Installation / Change of site template

Change of site template

11 posts, 0 answered
  1. olav
    olav avatar
    76 posts
    Registered:
    22 Jan 2007
    20 Aug 2009
    Link to this post
    Hi,
    I was just upgrading our first Sitefinity project (not too many pages or changes to layout yet) from v3.6 (std.ed.) to 3.7.

    One of the new site templates suited us better, so I figured (after upgrading the project to 3.7) that I could try a "change of site template", simply by copying all contents extracted from project.zip in Sitefinity3.7\ProjectManager\Templates\[template] over my project, then change masterpages and themes.

    I decided that it was worth a try, even though I could not find anything on this issue in your support pages. I realize now, there should probably be some entries in the database, based on the particular masterpages and themes, meaning that I will end up with a mismatch, if not applying the template during project creation.

    I seen to have lost track of the events during my experiment, but things are better now that I turned on Windows Authentication for the project. The navigation features seems to be lost, though.

    Before proceeding, please advise me - is this a dead end?
    Should I rather create another project using the Sitefinity management application, then move page content and other resources?

    Finally, I have been running DefaultAppPool using identity NetworkService (with access rights set to DB and app folder) with v3.6 and I'm trying to proceed this way with v3.7. Will I get into trouble?
    I understand that I was not supposed to use Windows Authentication, but if not, all pages appear without styles/themes.
    Please tell me how far to backtrack before trying again..

    Thanks.
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    21 Aug 2009
    Link to this post
    Hi olav,

    Thank you for using our services.

    Upgrading from Sitefinity 3.6 to 3.7 would require no changes in IIS setup. This is so because there were essentially almost no changes in main functionality, and the code base of the CMS. With 3.7 (which is not a major version) we introduced mostly bug fixes to our existing controls and modules. The only things that were introduced were the Wiki module, new templates and themes. With having this said, I can confirm that there should be no changes to the IIS set up of your Sitefinity website, or the Sitefinity Project Manager virtual directory. I have attache a screen of my IIS authentication setting of my Sitefinity 3.7 web site.

    Now to the templates. When creating a project through the project manager you set up a site that apart from having the chosen templates, and themes has some default content and pages. In my understanding you just want the templates and themes, which are basically master pages, and ASP.NET themes containing the styling rules. There should be no problem just to copy those master pages and styling rules. Here are the steps that I took in order to add them to my blank web site that I have set up (I chose the Company Inspiration template) .

    1) Opened [My Path]\telerik\Sitefinity3.7\ProjectManager\Templates\Company-Inspiration.
    2) There I have opened the project.zip archive, this contains all relevant data for creating a web site with that template through the Project Manager.
    3) I have extracted the the App_Master and App_Themes directories from the archive to [My Site]/
    4) Restarted my site.

    Now I have the master pages and themes available in my blank project. All I have to do is to set up my templates/pages which themes to use (see attached images). Note that those templates have content place holders for generic content such as CompanyName, contactContent, and Copyright. You can drop Generic Content controls in them and populate them with some content.

    I hope that this is what you wanted to achieve. If you have more questions, please feel free to contact us.

    Kind regards,
    Rado
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  3. olav
    olav avatar
    76 posts
    Registered:
    22 Jan 2007
    24 Aug 2009
    Link to this post
    Thanks Rado,

    Meanwhile I created a new site based on the Company Inspiration template, deleted and created pages, copied text content from the old site, and moved/added documents/images. It was bearable, not too many items this time. The recent problems are gone.

    Good to know that adding master pages and themes is just as easy as I hoped. I'll take advantage of that on the next opportunity.

    Still, I could use some help on getting the site authentication set up properly.
    I should add that my .NET programming skills are a bit rusty these days with lots of management tasks, so I might have missed something obvious.
    Anyway, both IE 8 and Firefox 3.5.2 quite often shows pages without styles, or just "HTTP Error 401.3 - Unauthorized". A page refresh usually does the trick, but all this is quite annoying over time.

    Using your updated Vista Installation Guide as a checklist, I find a few setup differences that might have caused some minor trouble that I have had with both version 3.6 and 3.7.
    I use DefaultAppPool for this application, with default settings, meaning that Identity is set to NetworkService. Other applications that are developed on the same computer are using NetworkService, and we'd like to keep it like that if possible. (of course, NetworkService has explicitly been set with create/modify rights to the app folder and database)

    I also tried to change to Classic .NET AppPool (also with default settings), but I noticed no different behavior after restarting the site.
    Otherwise, all should be according to your setup document. But I guess I have missed something...

    Details:
    "Remember me" for /sitefinity login has never worked for me, always asks.
    - Without Windows authentication: 401.3 with IE, and no styles with Firefox.
    - With Windows authentication: Forefox with 3 modal authentication dialogs (can't log in), cancel all displays page with no styles again. IE works OK except need for a few refresh now and then, especially during login.
    (Yes, with IIS Manager Alert: "Challenge based and login redirect-based authentication cannot be used simultaneously". Don't know which one is winning here..)

    Would appreciate any help.

    -olav
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    24 Aug 2009
    Link to this post
    Hi olav,

    Thank you for getting back to me.

    I have a Sitefinity 3.7 website set up in the Integrated Pipeline mode using the NetworkService identity. I have set up this identity as the db_owner of the database that my website is using. Since I have set this web site as a blank project one more additional setting that I had to do was to add the ASP.NET worker process full control to the App_Data directory of my project. The project runs without any problems.

    One thing that I mentioned in my previous post is that Sitefinity Project Manager has to run in the Classic application pool and in Full Trust mode. This is the same in older versions of Sitefinity. I have attached two archives with the IIS configuration of the Sitefinity 3.7 Project Manager and the website I have running in the Integrated Pipeline mode. Please have a look at the configurations and see if there are any differences with yours. In project manager when I get the 401 challenge I use my windows credentials

    Regards,
    Rado
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. olav
    olav avatar
    76 posts
    Registered:
    22 Jan 2007
    25 Aug 2009
    Link to this post
    Hi, and thank you for sending lots of details.

    I'm still not sure if I can use the NetworkService at all times, or if I do need to fiddle with other user accounts, like the ASP.NET Machine Account. (see a MSDN thread about a similar situation)
    Otherwise, all my config appears identical to yours.

    Looking more carefully I see that our other ASP.NET projects also needed to have Windows Authentication enabled. I know I have some kind of general configuration problem on our Vista64 development computers (or lack of configuration, as they are with plain setup), it just didn't bother us before now, with the Sitefinity projects.

    Anyway, my Sitefinity site works perfect once moved/published to Win2008 Server. I guess I'll take one of the development computers for an upgrade to Win7 as soon as Visual Studio is believed to work ok under that OS.
    (ok, Win7 is still a client environment, but upgrading feels better before spending more time)
    Meanwhile, we'll have to stick to our current web system, no problem really.
  6. olav
    olav avatar
    76 posts
    Registered:
    22 Jan 2007
    25 Aug 2009
    Link to this post
    Hi Rado, just a little extra detail.

    I might have confused you about our other ASP.NET projects that I mentioned, having to run Windows Authentication. I forgot, those projects were of type Web Application, not Web Site (as for Sitefinity projects). Due to an clearly stated "by design" issue with Visual Studio and Vista, Windows Authentication had to be run. That is, we did not have any prior problems.

    I did move the physical folder of the troubled Sitefinity project (to \Users\[me]\CheckoutRoot\[projectname], and of course I updated the virtual path)
    I double checked that every single file App_Data folder still inherited the NetworkService full access of the CheckoutRoot and weren't overridden in any way.
    Then, from Visual Studio, I created a test Web Site project side by side, and this one runs perfectly and writes to App_Data.
    I should also mention that I have rebuilt the Sitefinity project after modifying some theme files and adding image files.

    Further, before starting, I added the Sitefinity project to source control, but made sure that everything in App_Data were checked out and writable before trying anything.

    Meaning that, the Sitefinity projects are the only ones that don't behave properly on our development computers right now, and I have no clue whatsoever. I mean, I don't think we have access to Sitefinity debug files and they probably would not help in this case anyway.
    Are you sure that the projects aren't trying to write to other locations than App_Data?

    I might have to learn to create trace rules if the Win7 update later this year does not fix all...
  7. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    25 Aug 2009
    Link to this post
    Hello olav,

    Thank you for providing this feedback.

    One last configuration detail that pops up after you mentioned that you are using a 64 bit OS was the 32 bit application support. Since Sitefinity is a 32 bit application you would have to enable 32 bit applications for the application pool that you are using. This can be done from the Advanced Settings of the application pool (see attached image for reference).

    I am mentioning this since you have said that you are going to upgrade your development machines once Visual Studio provides better support for Windows 7. Just wanted to note this so you do not have further troubles setting up Sitefinity on a clean install of OS and IIS.

    Are you sure that the projects aren't trying to write to other locations than App_Data?

    I am positive the projects are writing only to the App_Data directory.

    All the best,
    Rado
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  8. olav
    olav avatar
    76 posts
    Registered:
    22 Jan 2007
    25 Aug 2009
    Link to this post
    Hi Rado,

    Unfortunately, it did not help.
    It seemed a bit unlikely anyway, since the application definitely runs as long as Windows Authentication is enabled.

    By the way, is Sitefinity really a native 32-bit application? That is, any included DLLs that weren't built for Platform Target "Any CPU"?
    Just wondered, as we have to deal with one component in another project, and inheriting CPU targeted components is truly a hassle!

    Thanks for trying to help, I'll have to leave Sitefinity for a while now.
  9. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    27 Aug 2009
    Link to this post
    Hello Olav,

    Sitefinity itself is built with targeting "Any CPU" platform type. We are using some 3rd party components though - Nolics.Net for data layer, Lucene.Net for search and indexing, which are not compatible with the 64 bit platform.

    Since we still do not have a resolution, we suggest you to perform a GoToMeeting with you. We suggest you to perform a GoToMeeting with you. We will connect and see what the problem might be. We are located in GMT+2 (EET, Sofia, Bulgaria) time zone, and are available from 10am till 6pm, business days.
    Please let us know if this is acceptable for you, and about your time schedule.

    All the best,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  10. olav
    olav avatar
    76 posts
    Registered:
    22 Jan 2007
    15 Sep 2009
    Link to this post

    Hi,

    Thank you for the GoToMeeting offer, great to know about the options should I ever be really stuck!

    I still don't know what was wrong, but I have the site up and working properly now. I had a feeling that we might have messed up during the upgrade. We would not loose much work, so I decided to start with clean sheets this time:
    - Upgraded to Win7 since we wanted to do this at the moment anyway. Checked, problem remained.
    - Copied material from our Sitefinity site.
    - Removed all Sitefinity installations, reinstalled.
    - Created a blank project, added an IIS App, copied templates/themes that we wanted from the ProjectManager folder.
    - Created pages and pasted material, all working.

    I might have solved this more elegantly, but it was ok as some experience for a beginner, and I'm confident that we won't have any more "unnecessary surprises" due to the installation.

    By the way, I still could not make the site run at the development computer without Windows Authentication. But that issue did obviously cause the strange errors we experienced. Using the VS2008 embedded development web server is quite ok, as I would use VS at all times when dealing with the site/project locally at the development computer. That is, I don't have to run Windows Authentication.
    Came across a minor issue in KB samples like this, where I replaced with server-side code to avoid having to deal with port numbers (hard coded "localhost"), otherwise no problems.

    Great to be able to enjoy the strength and elegance of Sitefinity!

  11. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    17 Sep 2009
    Link to this post
    Hello olav,

    Thank you for the feedback.

    We are happy to see that you were able to sort out the issues you have been experiencing. If in the course of working with Sitefinity you come across any other obstacles, please feel free to contact us. We will be more than happy to assist you.

    All the best,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
11 posts, 0 answered