June 11th, 2009
To solve this follow the work around:
Work Arround 1:
- Start Menu, click Run, type > control admintools and then click OK.
- Double-click Local Security Policy.
- Click Software Restriction Policies.
Note: If no software restrictions are listed, right-click Software Restriction Policies, and then click Create New Policy.
- Under Object Type, double-click Enforcement.
- Click All users except Local Administrators, and then click OK.
- Restart the computer.
Install SP1 with no errors.
Work Arround 2:
There is a fix from Microsoft to resolve the issue. Please visit the following knowledge base article:
http://support.microsoft.com/kb/925336 or Download the Update for Windows Server 2003 (KB925336).
Note: Revert the settings after the installation is over.
Posted in Visual Studio 2005, Windows Server 2003 | No Comments »
May 28th, 2009
In general whenever we need to get physical location of the file in ASP.Net Application, we use Server.MapPath. This is the most commonly adopted method. If you want the file to be located with reference to the path of the current WebPage, then the implementation holds good, but, in case you have to always refer the file from the application root, this method gives you different results. Take the following scenario, where the application directory structure is as follows:
- Root
- Data
- ClassA.cs (uses Server.MapPath(”\Data\Data.XML”))
- ClassB.cs (uses ClassA to get the XML file contents)
- SubDir
- ClassC.cs (uses ClassA to get the XML file contents)
In the above scenario the ClassC will fail to retrive the contents in case of the WebApplication is hosted in a virtual directory. The application will work fine if it is a website. So the implementation will not show any errors when we run the application from the Visual Studio. to make it more generic we can replace the Server.MapPath with
System.Web.Hosting.HostingEnvironment.ApplicationPhysicalPath + @”Data\Data.XML”.
Posted in ASP.Net, C#, Programming, Tips & Tricks | No Comments »
April 24th, 2009

Four well packed days with Information and Technology that too latest in trend and which is going to change the future is called Great Indian Developer Summit 2009. Not only that, thousands of participants, 75+ presentations on technologies, 15+ Labs driven by experts from all over the globe and all this organized by media leader Saltmarch Media in a great environment of IISC, Bangalore.

DAY 2:
Rich Internet Applications
This year also as the previous years it has came to prove that whatever new in a developer’s mind comes has been achieved and has not only given satisfaction to him but to the consumer too.
As a Developer & Designer, I pulled myself in the second day of the summit because this day the experts were gonna talk about RIA (Rich Internet Application), the future of web applications. On this particular day GIDS talked about following topics:
Web 2.0 & Social Applications
Enterprise 2.0
Mashups
Social Networking
Ajax In Action
Comet
Dynamic Scripting
Browsers & Rich UI
Rich Web Security
Rich Web Stories
There were five parallel sessions going on at a time, so I was not able to attend every session. But I was able to focus myself to the session of my interest. I am a developer on Microsoft platform and having a keen interest in new Microsoft Technologies, so picked up sessions targeted on Silverlight 3.
I have attended following sessions:
Unravelling the New in Microsoft Silverlight 3
Nahas Mohammed 



Deep Dive – Microsoft Silverlight Pipelines
Praveen Srivatsa 


Building Rich UI using ASP.Net AJAX, AXAJ Control Toolkit & jQuery
Harish Ranganathan 



Reusable Components for Building Killer RIAs (on Adobe Flex)
Anirudh Sasikumar 


You might be thinking that when I am talking about Microsoft Silverlight, what I was doing in the session for the Flex. The reason is very simple, when you have the chance to learn new technologies and side by side compare them with similar technologies, why shouldn’t? So before leaving for the day I grabbed this opportunity too. I have also rated the presenters along with their contents. All over here I would like to say that I had a nice Thursday. The biggest takeaway for me was numerous seed of growth opportunities, which is a result of combined efforts of huge exposure to technology and GIDS.
To conclude this post here I would like to encourage the readers to participate in this kind of events. These events not only give you a chance to explore the new and happening world around you, but also provide a good networking environment, which in terms help you grow in your career.
Posted in ASP.Net, C#, HTML, JavaScript, Programming, Uncategorized | No Comments »
February 12th, 2009
Virtualization’s big push to fame was arguably kick-started by VMware’s Workstation product, which allowed individual users to run a bunch of OSes, versions or instances (similar to multiple application windows) instead of having a one-at-a-time multi-boot environment. In many companies, virtualization arrived with developers first using the technology quietly to do testing and development, then introducing the virtualization tools to IT higher-ups.
While today, computer virtualization fuels many production environments, e.g., servers, desktop infrastructures, and as a provisioning tool, virtualization is also used by a still-growing number of software developers. For starters, they use virtualization tools to provide a range of target environments for development and testing (such as different operating systems, OS versions and browsers), and also to provision/re-provision configuration instances quickly and easily.
Here’s a look at how and why some of today’s developers are using virtualization and what their quibbles are with the technology as it stands.
Provisioning Multiple Test Environments
Mark Friedman, a senior software architect, works in Microsoft’s Developer Division, where upwards of 3,000 people create Visual Studio and the .NET Framework. Friedman himself works mainly on the performance tools that ship with Microsoft’s Visual Studio Team System. “About two-thirds of the people in my division are in development and testing — and most of these developers and testers are using system virtualization (via Microsoft’s Hyper-V technology) as one of their key productivity tools,” says Friedman, who is also a board director of The Computer Measurement Group.
Read the rest of this entry »
Tags: Virtual Development Environment, Virtualization, VMWare
Posted in Programming | No Comments »
January 27th, 2009
In this tutorial you will learn.
- Extract Text From The Web pages
- Use a special software (Expresso) to make writing Regular Expressions easier
- Write and Use Regular Expressions in C#
This tutorial is intended for people who know how to do some basic Regular Expressions and know the syntax of the language. Since there is a lot of material to cover I won’t go over everything.
Till a little while ago I never really thought much of Regular Expressions. I used them a couple of times just to validate an email address or web address etc. It was not till one day I thought of making a web scraping program that would deal with pages from a site and then store all the grabbed information in an xml file.
The need of grabbing the contents came across while studying the RSS technology. In RSS you need to send user a predefined output in XML format with some extra tags. In this tutorial I will not be reaching to that extent, but will give you all an idea about how to just grab the data from the site. Then its upon you, how to utilize the knowledge.
I will take the example of a google search result page, where the results are listed in a well organized manner. We will find out some text from the page for each result and display the result in my own format.
Step 1: Create a web application to host our functionality.
- Open Visual Studio 2005
- File Menu > New > Web Site
- Select ASP.Net Web Site from the listed project templates
- Select Language as Visual C# and Click Ok.
You will see the Default.aspx page in the solution explorer, if not add it.
Step 2: Write code to get the desired page source (Google Search Results).
- Drag n Drop a TextBox, Button and a Label Control on the Page in design mode.
- Rename TextBox1 to txtSearch, Button1 to btnSearch and Label1 to lblResults.
- On btnSearch Click event write the following code.
protected void btnGetRating_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(txtSearch.Text.Trim()))
{
txtSearch.Text = "Google";
}
string URL = txtSearch.Text;
string IMDBData = WebPage.getContents(URL);
string fullRating = getRating(IMDBData.Replace("n", "").Replace("rn", "").Replace("nr", ""));
lblResults.Text = fullRating;
}
Read the rest of this entry »
Tags: Expresso, RegEx Builder, Regulaar Expression, Web Grabber
Posted in ASP.Net, C#, Regulaar Expression | 2 Comments »