Posts

Showing posts from February, 2011

How to change .NET framework version without restarting IIS

When we want to change the .NET Framework version for an existing site, IIS will display a warning message saying it will restart the W3SVC service. We may not want to do this, as it will stop other websites running in IIS. Below is Step By Step instruction to change the .NET framework version without restarting the W3SVC service. Step 1 : In IIS navigate to the website (which requires change in .net framework version) Step 2 : Right click on the site and select All Tasks> Save Configuration to a File and save the configuration to a file. Step 3 : Open the configuration file and look for the IISWebServer tag which contains the siteid. Below is a sample line in the configuration file: IISWebServer Location ="/LM/W3SVC/1890249283" the number 1890249281 is the site id. Step 4 : Navigate to C:\windows\microsoft.net\Framework\<new framework version>\ for example if you want to switch the site to .NET Framework 4.0 then navigate to the 4.0 framework folder f

ubuntu copy command throws cp: omitting directory

I wanted to backup some directories before making some changes, and came across an error cp:omitting directory This is because I did not include a recursive argument in my copy command. So the solution is to include a -R (for ubuntu and CentOS) command in copy command like : cp -R websites/myshinywebsite .

Drupal - How to display webform node in a block?

While building a site in Drupal 6.x, I had a requirement to display a contact us form box in all the pages of the site - except, on the Main Contact Us Form page(ofcourse, you wouldnt want and extra contact us box sticking!). I started by creating a new content type using the WebForm module. I added fields like firstname, lastname, emailaddress, company url and message and saved it. After this, I tried to figure out a way to add the form to a block. The idea was to stick the form in a block and place it on a content region and configure it to show on all pages except admin pages. But, I was stuck on how to display the webform node in a block. One idea was to use the NodeToBlock module. I had a feeling that there could be an easier way to implement this and went back to the webform page and dug up all the options in the webform form and hey presto! buried at the bottom of the settings was a check box 'Available as block'. I checked this and a block was created for this f