Blog Home  Home Feed your aggregator (RSS 2.0)  
Mayur's Blog - Friday, June 26, 2009
# Friday, June 26, 2009

If you are struggling with above mentioned errors and have already gone through your web.config file. Also repaired/installed .NET framework (any version) with service pack (any version). Also tried with repairing/installing ajax toolkit (any version). And still not getting rid of these errors then you might want to try the following. It worked for me!

My local machine worked very well when I was developing an ajax enalbed web site. However, as soon as I put it on production server (Win Server 2003, IIS 6.0 with .NET Framework 3.5 and service pack 1), it started showing errors: Ajax client-side framework failed to load, 'Sys' is undefined etc. However, web site worked but Ajax functionality never worked.

After long effort and going through various docs. I found that I needed to add .axd file extension mapping on IIS. So on my IIS manager I right clicked on my web site; then on the dialogue box I clicked on virtual directory and then clicked on "Configuration" button. On the new dialogue box I clicke on "Add" and tried to add .axd extension which points to the aspnet_isapi.dll. The following is locaton of DLL on my machine. So I added the following path and clicked "OK"


And guess what the result was. The great relief! I spent more than 5 hours. However, at the end of the day I was happy that my ajax enalbed web site was up and running.

I am posting it here and hoping that it might help someone who is facing similar problems.

Have a great computing!

Friday, June 26, 2009 7:43:03 PM UTC  #       | 
# Monday, May 11, 2009
No Table!, No Label!.

A new approach to generate dynamic drop down menu with only span, div and CSS. Of course JavaScript handles all events. (there are other menus out there; ASP.NET has its own built in menu, however, this is my own, no copy and no paste from others, no copyright infringements)

Within few days I will adorn it with VS 2008's built in Ajax Toolkit! Ahh... looking for that, can't wait

Visit here

Monday, May 11, 2009 8:53:46 AM UTC  #       | 
# Saturday, May 9, 2009
Windows vista except ultimate edition does not support SMTP server in IIS (It is true to the best of my knowledge. If you know how to set it up from control panel, please comment this posting).

In case your are looking for a temporary solution then you can download this free SMTP server.

Hope it should help someone like me not able to install SMTP sever by using control panel in vista.

Saturday, May 9, 2009 7:46:38 PM UTC  #       | 
# Friday, May 8, 2009

First time I went through these confusing names and found some information about them and thought to display on my blog so that it will be useful to others.

CurrentUICulture sets your UI language ( i.e. it translates 'tool tips', 'menus', 'helps' etc in a specified language)

CurrentCulture sets your default user locale (i.e. format of date, currency, format of time etc; there are approximately 208 locales in vista. So it displays $10,000 for 'en-US' and £10,000 for 'en-GB')

You can visit this little app to get an idea

In this app the calendar language is traslated by CurrentUICulture, while currency is formatted by CurrentCulture.

For more info visit this blog:

Wondering how to set it up! The following might give you a little idea.

Make sure that you are importing namespaces for system.threading and system.globalization into your code. The following code instructs run time to change current thread's culture based on the given input. InitializeCulture is a method of page class.

 protected override void InitializeCulture()




        string lang = "hi";


        /*I have hardcoded language to Hindi, "hi" stands for Hindi;

        you can also set it up programmatically */            


        if (lang != null && lang != "")


            Thread.CurrentThread.CurrentUICulture  = new CultureInfo(lang);

            Thread.CurrentThread.CurrentCulture = 




Friday, May 8, 2009 11:45:24 PM UTC  #       | 
# Monday, April 27, 2009

Use overloaded method response.redirect("path",false) to avoid above mentioned error.

Cause of this error: response.redirect internally uses response.end. However, when you call response.redirect, it also shifts the execution to Applicaton_endRequest event and this does not allow the code following the response.end to be executed. Therefore, it reaises exception.

When you specify response.redirect("path", false) you explicity tell the run time to execute the code following the response.end menthod.

This work around has worked for me while using response.redirect in a user defined class which modifies the XML document.

For more info refer this page: 

Monday, April 27, 2009 7:00:30 AM UTC  #       | 
# Thursday, April 16, 2009

If you are using master page in your project and also trying to use properties such as scrollTop and scrollLeft in your javascript then it is very likely that you might be getting property values zero; no matter hou much you scroll down or up in your web page.

To correct this error you should use document.documentElement.scrollTop instead of document.body.scrollTop. Same applies to scrollLeft as well.

Hopefully it should solve your problem as it has worked for me!. For more info refer the following page:

Thursday, April 16, 2009 5:13:12 AM UTC  #       | 
# Monday, April 13, 2009

If you are installing this update and encountering problems related to "System.IO..." errors or BPACMD.EXE execution problems or missing assembly BPAClient.dll then simply create a new folder called BAPClient in your

C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\BPA\

and copy BAPClient.dll from C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\Bin folder and paste it into newly created folder BPAClient.

Hopefully it should solve all these problems and successfully intall updates. Luckly it worked for me :)

More discussion on this issue:

Monday, April 13, 2009 3:38:10 AM UTC  #       | 
# Friday, February 13, 2009

The following is path: C:\program files\Common files\microsoft shared\DevServer\9.0

Friday, February 13, 2009 12:14:29 AM UTC  #       | 
Copyright © 2022 Mayur Bharodia. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: