Tips and Tricks from my Experience

What’s behind name, "Microsoft"

Posted in Micrsoft Promotions by Chakravarthy on February 12, 2008

Did you ever thought that Bill Gates named their company as “Microsoft”?.. it was a billion dollar question to me all these days. At the early days when Bill is forming his company along with his friends, sought recommendations for a good and fancy name. Every one gave their won stylish and trendy names. They are not ready till their first cheque is due to them. While Steve Balmer is talking about a product that is the brain child of Bill, mentioned as “.. it is a SOFTware for MICROprocessors .. “, these words lead the idea to name their company as Microsoft. And the rest is history and preset.

Does any has proof to violate this information??

Standards @ Microsoft

Posted in Micrsoft Promotions by Chakravarthy on January 8, 2008

With the new year roll out, Microsoft has initiated a new website with the caption as mentioned at the subject of this post. Yes, they are starting a new initiative with all the Standards that are in place with the industry giants and the best out of Individuals, Corporations, Acadmics, who not … every one ..

http://www.microsoft.com/standards/ is the link for all such standards. The initial thought for this resulted from the Interop team. They have a separate home for them as http://www.microsoft.com/interop. The history has 2 yrs old story to come out with such standards towards Interoperability. And finally they are with the standards that are in best practice with industry.

I just started going through one by one.. did you ??

VS 2008 and .NET 3.5 Training Kit

Posted in Micrsoft Promotions by Chakravarthy on December 17, 2007

The Visual Studio 2008 and .NET Framework 3.5 Training Kit includes presentations, hands-on labs, and demos. This content is designed to help you learn how to utilize the Visual Studio 2008 features and a variety of framework technologies including: LINQ, C# 3.0, Visual Basic 9, WCF, WF, WPF, ASP.NET AJAX, VSTO, CardSpace, SilverLight, Mobile and Application Lifecycle Management.

I’ve downloaded this, if any one require this, you can drop me a mail or can collect from me.

VS 2008 and .NET 3.5 Training Kit

Posted in ASP.NET, C# v3.0, Code, Micrsoft Promotions, Tips, Tutorials by Chakravarthy on December 17, 2007

The Visual Studio 2008 and .NET Framework 3.5 Training Kit includes presentations, hands-on labs, and demos. This content is designed to help you learn how to utilize the Visual Studio 2008 features and a variety of framework technologies including: LINQ, C# 3.0, Visual Basic 9, WCF, WF, WPF, ASP.NET AJAX, VSTO, CardSpace, SilverLight, Mobile and Application Lifecycle Management.

Microsoft Products at No Cost – Free

Posted in Micrsoft Promotions, Tips by Chakravarthy on December 17, 2007

Who says that Microsoft manufactures products only to sell ?? Microsoft has many products that are free to download. As am into .NET and specially with Visual Studio, am aware that Visual Studio is free to download from Microsoft’s website. Yes, that’s true.. Microsoft give Visual studio 2008 Express Editions, MSDN Library for Visual Studio 2008 as well as the Runtime for the latest .NET framework 3.5.

Here is the link to learn more towards free products as well as priced products. To know more about the product information about Visual Studio 2008, click here.

Laptop under $100

Posted in Micrsoft Promotions, Tips by Chakravarthy on December 11, 2007

That’s true, you read the title correct. BBC recently wrote about this on 6th Dec 08. Microsoft is working out towards the XP operating system to be a reality on the co called $100 laptop or XO. If things go as scheduled, $100 Laptop or XO will be a reality by the mid 2008.

James Utzschneider, GM for Marketing and Communications from Microsoft, wrote about this at his blog. According to him, about 40 engineers are working towards mid 2008 to come out with a production-quality release. The XO laptop works with 1GB Flash memory, when compared with traditional Hard Disk Drive.

OLPC, One Laptop Per Child, organisation is having a great idea towards making this product into a reality. During June 2008, Intel announced a laptop under $220 with a title as “Classmate PC“. This is similar to that of XO laptop, but some of the basic difference is kind of 2GB Flash memory in ClassmatePC, where as 1GB in XO laptop.

These kind of laptops are really good towards educating the next generation kids towards the technology. Isn’t a great work..

Laptop under $100

Posted in Micrsoft Promotions, Tips by Chakravarthy on December 11, 2007

That’s true, you read the title correct. BBC recently wrote about this on 6th Dec 08. Microsoft is working out towards the XP operating system to be a reality on the co called $100 laptop or XO. If things go as scheduled, $100 Laptop or XO will be a reality by the mid 2008.

James Utzschneider, GM for Marketing and Communications from Microsoft, wrote about this at his blog. According to him, about 40 engineers are working towards mid 2008 to come out with a production-quality release. The XO laptop works with 1GB Flash memory, when compared with traditional Hard Disk Drive.

OLPC, One Laptop Per Child, organisation is having a great idea towards making this product into a reality. During June 2008, Intel announced a laptop under $220 with a title as “Classmate PC“. This is similar to that of XO laptop, but some of the basic difference is kind of 2GB Flash memory in ClassmatePC, where as 1GB in XO laptop.

These kind of laptops are really good towards educating the next generation kids towards the technology. Isn’t a great work..

Servers at Home

Posted in Micrsoft Promotions, Tips, Webcasts by Chakravarthy on December 11, 2007

Servers belong to Office. All these days, wife’s worry that their husband not only work wholly with LapTop, on top of this, Micorosoft is coming out with one more product titling as “Stay at Home Servers“. Don’t you believe this .. pay a visit to their product page. Microsoft addresses this as “WindowsHomeServer“. The advantages explained in nice video. This video has all the possible places that every home can have and what every one can do from every location of common home.

Where are we going .. and where is the infrastructure is moving to ?? anyhow, when will India have all such infrastructure inbuilt apartments or homes built with such facilities.

ASP.NET 3.5 Extensions Preview

Posted in ADO.NET, ASP.NET, Micrsoft Promotions, Tips by Chakravarthy on December 10, 2007

The ASP.NET 3.5 Extensions Preview provides a glimpse of new, powerful functionality being added to ASP.NET 3.5 and ADO.NET next year. This release delivers features that enable high-productivity data scenarios and creates the best server for rich clients. The release includes an ASP.NET model-view-controller (MVC) framework, ASP.NET Dynamic Data, Silverlight controls for ASP.NET, ADO.NET Data Services, an Entity Framework runtime, new features for ASP.NET AJAX and a wide variety of API References as hosted at ASP.NET Official site.

You can download the ASP.NET 3.5 Preview, which contain all the Siliverlight controls, ADO.NET Data Services and many more. There is a forum specially dedicated to ASP.NET 3.5 Preview at ASP.NET Forums.

Calling .NET Component from a classic ASP page

Posted in Code, COM, JavaScript, Tips, vb.net by Chakravarthy on December 6, 2007

After a long time, today, got a requirement from ASP page. Our current client has a major application written in classic ASP 2.0, and we have given him an extension functionality written in .NET with VB as programming language.

Now, we have 2 different applications running at the same box with 2 different technologies, ie., an ASP application and an ASP.NET application. For both of the applications, there is a common functionality talking to the database via a webservice written in Java. The current situation demand a common library that will be reused at both ASP.NET pages as well as ASP pages. Apart of the requirement, the one point that led me to post here is “How to call a .NET Assembly in a Classic page”

Creating .NET Assembly

Imports System
Imports System.Runtime.InteropServices
Public Class MyLibClass
    Public Function MyLibFunction() As String
        Return " Invoked the method from COM successfully .."
    End Function
End Class

With the above code, you can generate a .NET DLL after compiling with either Visual Basic Command Line Utility, VBC.EXE or from the Visual Studio Environment. While compiling this code, give extra attention at the assembly attribute to make the DLL Visible to COM as mentioned below.

<Assembly: ComVisible(True)> 

If you are using the Visual Studio Environment, go to the Project Properties, at the Compile section don’t forget to check the “Register COM interop” check box. This check box will be by default unchecked, indicating that the DLL will not be exposed to COM.

Now the assembly is ready to reuse. But before we start the actual implementation, if you want the Assembly should be register with the GAC, you have to take the assistance from StrongNameKey file. You can create a Strongname Key file with the command utility SN.EXE or from the Visual Studio as well. The command to create the Strongname Key file is as mentioned below

> sn -k strongnamekeyfile.snk

Once you are done with the strong name key file generation, you can attach the key file either with the /keyfile:strongnamekeyfile.snk option or with the assembly attribute as <Assembly: AssemblyKeyFile(“strongnamekeyfile.snk”)>

Now it is the final time to compile your code and do the calling stuff from ASP page. Once you compile the code from Visual Studio, you will have 3 files, .PDB / .TLB / .DLL. The .DLL is the actual file. You have to do 2 things to share this DLL.

Register as COM as well as with GAC

Now that the DLL is ready, we will take the assistance of REGASM command line utility to register as public assembly.

> regasm /codebase /tlb:a.tlb OurAssemblyFile.dll

With this command, the DLL will be registering at the registry. Please don’t forget to use the /codebase option. To register the same with GAC use the following command

> gacutil /if OutAssemblyFile.dll

This command will register with the GAC and is available as reference within the .NET Framework. With the first command, the object is ready to invoke from ASP code. You can use the COM component with Server.CreateObject(“OurAssemblyFile.ClassName”) command from ASP page. The actual implementation at any ASP page will look like as mentioned below

 dim objCom 
 set objCom = Server.CreateObject("libraryNameSpace.libraryClass")
 objCom.DoSomeWork() ' this method doesn't return any value

Finally, if this page throw any kind of error as Unindentified Class name, then the only solution is to reset the IIS.