Thursday, December 29, 2011

GoDaddy - Using host entries to access your site by IP



Your site is live right now and you want to transfer it to another account hosted in You have configured the site in new account and want to test it, but you can not directly update the DNS records without testing. You don't want to purchase a static IP for this. So, there should be a way to test your site before updating DNS records.


One of the solution is the use hosts entries. That will help you to access your domain point to the new IP only for you. That way, when other people accesses, it will be served from original site, but because of the host entry, when you try to access it will be served from the new server. I found the detailed instruction here:

Friday, December 23, 2011

Runtime error: ; expected


I was working in with for for almost 3 years now, and now after 3 years, just started working on c# as back end language. So many times in a day I miss writing ; and got the this error!

I recently got this error in ascx control as well, when I was working in a repeater item template and missed # and write Eval like <% Eval...

Compiling code in C# reminds me to the starting of my career since I have worked on C# first.

Friday, December 16, 2011

Sharepoint: Debugging - which process to attach

As some of you may already be knowing, I have just joined a team of sharepoint developers and right now learning sharepoint development.

This is my first day to work on a development after watching videos and reading books and I already find myself lost while attaching to the process for debugging a webpart control in sharepoint. Here is how I finally got my ProcessID to attach:

Just open command prompt as administrator and type following:

%windir%\system32\inetsrv\appcmd.exe list wp

Hope this will help to the developers who are new OR not knowing the way to find which process to attach.

Happy coding.