Sunday, June 26, 2011

Installing Windows Virtual PC on Windows 7

If you are using Window 7 Home Edition you may found on http://www.microsoft.com/virtualpc site that you are not eligible for WindowsXP mode version which leaves a false impression that you are not eligible for installation of Virtual PC.

You may still download and install Virtual PC from following location

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=3702


Sunday, March 20, 2011

Crystal Report For Visual Studio Upgrade Issues related to asp.net

You may expect issue similar to error mentioned below while upgrading your crystal report project.

CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both 'c:\Windows\assembly\GAC_MSIL\CrystalDecisions.Web\__692fbea5521e1304\CrystalDecisions.Web.dll' and 'c:\Windows\assembly\GAC_MSIL\CrystalDecisions.Web\__692fbea5521e1304\CrystalDecisions.Web.dll'

Above issues can be easily fix by updating web.config file. As above issues may come if assemblies section of web.config still contains entries with old crystal report version

Wednesday, March 16, 2011

Telerik AJAX unexpected java script error

While ajaxifying our asp.net page we face strange error. i.e. Page call work first time and second time ajax call fail with following javascript error.

Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID ''. If it is being updated dynamically then it must be inside another UpdatePanel.

This was very strange as we used similar approach in another application that was using old version of telerik controls. We decided to google it and check this in telerik knowledge base. All documentation was pointing toward single code error i.e. We are setting .Visible property of ajax update control to false in first call which cause this error in second ajax call. This was not the case with us. After investing a lot of time in this issues we found out the solution which is was fairly simple and logical :)

The issue was that ajax control (control triggering ajax call ) was not added as ajax updat control. Adding ajax control in Ajax control list simply solve the issue.

Real surprising situation was when we check our project (using older version of telerik) and found that AJAX was working fine even if you dont add ajax control in ajac update control list :D.

Monday, March 14, 2011

Telerik - Changes in Rad AJAX Manager

In old version of telerik controls for asp.net there was no restriction to use multiple RadAjaxManager with in a page. i.e. Controls inside the page may have separate RadAjaxManager and functionality will work.

New version of telerik controls doesnot allow this. Best option is to place a blank radajaxmanager in master pager and use radajaxmanagerproxy elsewhere.

Wednesday, March 9, 2011

Things to consider while upgrading telerik controls

While working on telerik control upgrade projects for asp.net weI found different website, issue that consume a lot of time infact more than what I was expecting for this activity.

1. Check the version you are using as old telerik controls were available with multiple dlls i.e. separate dll for each control.

2. Check namespace of your controls. As old were using telerik.wecontrol while new one use telerik.web.ui

The main issue that we face during migration was that we were using different version of DLLs previously and thought that if we use new version it will work. We we started using new dll we realize that AJAX was not working and shifting of all code to new code will be required. I have found different issues which I will describe separately in different blogs.

Monday, February 28, 2011

IIS 7 Deployment with asp.net 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 asp.net application I found it hard to browse through few asp.net 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.