Monday, February 28, 2011

IIS 7 Deployment with 4 and AJAX

In one of our IIS migration project we noticed a very strange issue i.e. Our website was giving java script errors with AJAX calls.

It was surprising, As we need to remove lots of aspnet extension entries from web.config in order to upgrade to .net 4.0. So first thing comes in my mind was that it was due to .net 4.0 upgrade. Telerik controls were used so another thought was that it is due to Telerik Controls.

We look at lots of configuration option related to AJAX and Telerik and even install ajax extension and telerik on production but we get to real solution after wasting couple of hours.

The problem resolved when we set the application pool property to classic from integrated (Was Set By Default).

Tuesday, February 22, 2011

IIS Configuration Error Error: Cannot write configuration file due to insufficient permissions

While deploying my custom application I found it hard to browse through few pages. I tried to enable directory browsing feature to locate pages. Selecting enabled after clicking on directory browsing gaves me following error

Error: Cannot write configuration file due to insufficient permissions

Looking at above issue I thought that may be I need to start my IIS as an administrator so I closed my IIS and start IIS console again as an administrator but above error remain as is.

I decided to go for some research over the internet and found an unbelievable solution. i.e. My web.conf file was readonly :D.