ASP.NET
When working with Sitecore there are some optimizations/configurations I usually repeat in order to make my app production ready. Following is a small list I have compiled from experience, Sitecore documentation, communicating with Sitecore Engineers etc. This is not supposed to be technically complete and might not be fit for all environments. Simple configurations that can make a difference: 1) Configure Sitecore Caches. This is the most straight forward and sure way of increasing the performance ......
A proxy is an object that can be used to control creation and access of a more complex object thereby deferring the cost of creating it until the time its needed. Below is a simple implementation of the proxy pattern in C#. The ComplexProtectedExpensiveRe... is private to the ProxyContainer and cannot be instantiated by a client. The client creates an instance of the SimpleProxy class which controls its access to the more complex and expensive to create ComplexProtectedExpensiveRe... class. ......
Sitecore has a powerful event pipeline infrastructure that you can leverage to plugin commands into various item creation, change, move, publish etc events. Recently I had to add functionality to Sitecore so that when an items version is created all fields from a target language are copied into the newly created version to ease editing. To do this first we add an event handler in the Web.Config file for the versionAdded event. <event name="item:versionAdded"> <handler type="MyNamespace.MyClass, ......
Here are a few steps you can follow if you want to restrict access to Sitecore’s Interface on content delivery environments. 1) Open Internet Information Services (IIS) Manager 2) Expand your Content Delivery website 3) Click on the Sitecore folder 4) Double Click on Authentication in the middle content pane 5) In the Authentication Pane right click Anonymous Authentication and click Disable 6) Try visiting the Sitecore login page on the Content Delivery site and verify that you get an access denied ......
When using multiple languages/cultures in the Sitecore CMS the content of an item isn’t usually copied over from an existing language to a new language version. While working on a multi lingual website after content was added to the primary language (en-US) I had to write a script to copy all fields from the primary language into other languages (Example en-GB). Here is some code that I used for Sitecore 6.2. The following method copies an item from the Source Language to a Target Language provided ......
If you want a virtual directory or a site in IIS7.x to redirect to another url you first have to make sure you have installed http redirect for IIS. To do that goto Control Panel > Program and Features and select Turn Windows features on or off Choose IIS and click on Add Role Services and make sure you check HTTP Redirection Let the feature be installed and configured. Now you will see the HTTP Redirect option in the Features View of IIS. Click HTTP Redirect and add the necessary redirect information ......
Normal 0 false false false EN-US X-NONE HI MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; ......
Normal 0 false false false EN-US X-NONE HI /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; mso-bidi-font-size:10.0pt; ......
Recently I was working on a hardware architecture project for a client. The final architecture for one of the websites consisted of 3 web servers hosting windows 2008 and IIS 7 being load balanced. When setting up the websites we decided to use the Shared Configuration hosting built into IIS7. Shared configuration allows you to deploy and propagate IIS configuration changes to all servers by changing one configuration file. This post explains it in more detail: http://learn.iis.net/page.a... ......
Using Silverlight, FlickNet library and Windows Communication Foundation to search public photos for a Flickr user.
Full ASP.NET Archive