Monday, March 28, 2011

GZIP

Today, i have been trying to get GZIP compression working for my local machine which runs IIS7 with Windows 7. For some reasons GZIP compression isnt working even though i have checked the applicationhost.config and mime type has been configured correctly.

Turn out the issues requires additional tweak.

Compression is 'locked' by default at the application level. As such, it needs to be 'unlocked'. this can be achieved via the command line or via the (extra download) iis7 admin tools.

eg. appcmd set config -section:urlCompression /doDynamicCompression:true

http://learn.iis.net/page.aspx/206/dynamic-compression/

Reference:

http://serverfault.com/questions/23788/need-help-with-some-iis7-web-config-compression-settings

Sunday, February 6, 2011

Parameter to sublayout (ASCX)

My colleague was having issue with Parameters that she assigned to Sublayout. For some reason the parameter that set in Presentation definition in Sitecore is returning empty when accessing it programmatically.

It turns out that Sitecore does not set the presentation properties by default. So we have to set this up before accessing it.

Tuesday, November 23, 2010

CryptographicException : The Parameter is incorrect

Recently, I have encountered another issue with CryptographicException saying that the parameter is incorrect.

I have managed to solve the issue by:

1. Restarting the Application Pool
2. Restarting the website.

Monday, October 4, 2010

Specifying default ISO

By default, ISO setting in web.config is empty. This default the region formatting such as date to be American. E.g. instead of 30/12/2010, it becomes 12/30/2010.

The line of config in web.config to specify this ISO code is

<setting name="DefaultRegionalIsoCode" value="en-AU"/>

Wednesday, August 11, 2010

No .ASPX extension (Extensionless page)

To achieve the goal as mentioned in title, you will need to set the IIS as follow:

1. Open IIS Manager
2. Go to the website instance you want to configure, right click and click property.
3. Click Home Directory
4. Click Configuration
5. Under Wildcard Applications Maps, add the following DLL
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
6. Hit OK

Untick "verify that file exists" if you want a hybrid.

Thursday, August 5, 2010

ACL error.

Today i encountered an issue where i cant access any page and always given a ACL error.

I fixed it by adding "Users" to Security with the following access

1. Read & Execute
2. List Folder Contents
3. Read

Tuesday, July 27, 2010

Icons within sitecore pages not displaying

I have encountered issues whereby the icons on the sitecore portal isnt being displayed. Turn out the issues was with APP_DATA folder having wrong security permission.

it needs to have "Network Service" with write access.