Infosys Microsoft Alliance and Solutions blog

Main

March 04, 2010

Size of a .net object

While trying to debug a service call, where we suspected a buffer overrun situation, we wanted to find out the size of the object being returned by the service call. However finding size of a .net object is not trivial and if you thought you could do a sizeof(object), then you are wrong. This will only return the size of the object based on the size of each field in object that itself is based on the type of the field. This doesn't returns the size of the object in memory with data loaded into it.

Continue reading "Size of a .net object" »

February 10, 2010

VS2010

It’s been sometime since I have posted last blog, couple of months at least. That’s no good…but all this time I was busy doing some serious writing Smile , finally completed and published view point on VS 2010 Architecture Modeling, can be downloaded from here. The idea of this paper was seeded through this my earlier blog here

If you happen to read this paper and have comments, please do send me or log on this post.

VS 2010 RC and Office 2010 RC

Both VS 2010 RC and Office 2010 RC are now available. If you have access to MSDN Subscriber download site, you can get VS 2010 RC from it. For general public these bits will be available today (Feb 10). Like Beta 2 bits, these bits also come with "go live" license. If you had earlier bits, you will need to uninstall those before installing RC. I was trying to figure out if RC to RTM will be an upgrade path, but haven't found specific information on this as yet. If you know, do write back.

However Office 2010 RC isn't available via MSDN download as yet, but is available on connect site for specific users. If haven't got a specific invite to access Office 2010 RC, then both on connect site or msdn download site you will still find Office 2010 Beta bits.

December 28, 2009

VisualStateManager's Benefits

Many months back I had written about VisualStateManager (VSM) feature in Silverlight. Overtime, MS has been working on streamlining this and new additions are available with Blend 3 to support VSM. VSM got introduced in SL, as some say, mostly to address the lack of triggers, due to which creating control templates was a big issue. Eventually WPF 4 will also start to support VSM. There have been many interesting debates on this, which you can find here, here, here and here, but this parts and states model is here to stay.

Continue reading "VisualStateManager's Benefits" »

December 18, 2009

Dev 10 Release delayed

Yesterday MS announced a delay in the release of the upcoming Visual Studio (VS) 2010 (called Dev 10 in short). In both Somasegar's and Scott's blogs, the reason mentioned is addressing the memory and performance issues. While this definitely means that the end product would be better in these terms, what does this delay mean to you?

The good part is that the release candidate planned for Feb 2010 will have the "go live" license support, so any plans for production deployment may still be carried on. What is of more interest to me is how this impacts the Silverlight 4 release plans, since SL 4 as of now needs Dev 10?

December 10, 2009

Win 7 - Multi Touch

In my earlier blog I had touched upon some high level concepts on touch support for applications, that is now available with Windows 7. In this I will spend some time on multi-touch and few other points around support as part of .NET and on Surface.

So when we say multi-touch, what does it really mean? This is also where the basic touch to mouse promotion and real multi-touch differ. Multi-touch means the ability to detect multiple touch points at the same time on the touch hardware and be able to program against each of them independently. In a mouse driven world, there is single point of click and hence controls really respond one at a time. With multi-touch however we now are capable of programming against multiple controls at the same time. While most multi-touch samples/demos show usage of multiple fingers, what you should realize is that it is now capable of supporting multiple people interaction. A behavior, which MS Surface, demonstrated very well.

Continue reading "Win 7 - Multi Touch" »

December 02, 2009

AppFabric (earlier “Dublin” + “Velocity”) as .Net Application Server

As multi tier architecture became more and more main stream, application tier has key role in hosting and scaling business functionality. E.g. in a Retail Banking application, business functionality could be Loan approval process (workflow) or Money Transfer service. To scale such applications, business logic is usually hosted on independent tier called as an Application Tier using Application Server.

Continue reading "AppFabric (earlier “Dublin” + “Velocity”) as .Net Application Server" »

November 27, 2009

Architecture rules enforcement through Visual Studio 2010

For all these years if a .Net architect has to model the software system. He or she has to rely on modeling tools like Rational XDE, or Visio Enterprise Architect. Personally I was never impressed with Visio Enterprise architect’s modeling support, and code generation it has to offer. Though Visio has several stencils, templates, symbols available; UML modeling and associated code generation was always bit stiff. Integration with Visual studio to synch up models with code and vice a versa was another challenge.  3rd party tools like Rational XDE has good support for .NET but one has to pay hefty license fees to use such tools.

Continue reading "Architecture rules enforcement through Visual Studio 2010" »

November 26, 2009

Death by Silverlight

Yes, this title is influenced by death by chocolate, where in you get an overdose of chocolate. At this time I feel exactly the same for Silverlight (SL). With just over 2 years since the first version made its mark felt, Silverlight has come a long long way. Ironically, as part of TechDays event hosted specifically at our campus, we talked a lot about SL3 and right then, across the ocean, at PDC 2009, Microsoft just unveiled SL4 beta bits.

When we started looking at SL 1.0 back in late 2007, it had limited feature set with XAML support, and most work had to be done in java script. It looked more of media (video) playback at that time. MS called it their RIA platform, but it didn't offer much at that time. With SL2 at PDC 2008 and SL3 just earlier this year in July 2009, a host of features have found their way in the platform. Along with multitude of controls, to .net language support, to IIS Smooth streaming, to perspective 3D, to out of browser experience, SL is a technology you just cannot ignore.

Continue reading "Death by Silverlight" »

November 13, 2009

Architecting For NFRs

Today, Atul Gupta and self delivered a session on Architecting for NFRs at Microsoft Virtual Tech Days event.

Non Functional Requirements (NFRs) is one of the very important system attribute and help in defining the Quality of Service (QoS) for the System. Examples of QoS are Availability, Performance, Scalability, Reliability, Usability, Extensibility, etc. These need to be planned right from the project initiation stages.

We talked at length on this at MS Virtual Tech Days; the presentation makes an attempt to provide the guidelines while architecting the applications for meeting these QoS parameters and can be downloaded from here.

October 16, 2009

Recommendations for building Highly Available .Net application

Recently I came across a query on what does it take to build highly available .Net applications. Following are some inputs that can help. The recommendations are classified into buckets of cross cutting, presentation, business and persistence layer.

Continue reading "Recommendations for building Highly Available .Net application" »

October 01, 2009

WCF 4.0 –Part 1

WCF 4.0 will be available with .Net framework 4.0 and builds upon the features provided by WCF 3.5 (including SP1). WCF 4.0 brings in several features to make the life of developers and application administrator easy. To enhance the support for REST Services, certain features from REST starter kit are also integrated with WCF 4.0. In this blog let’s take a look at features which simplifies things for application administrators

Continue reading "WCF 4.0 –Part 1" »

August 25, 2009

How i explained REST to a SOAP pro

Through this dialogue based interaction I (Sudhanshu) Demystify REST based Architecture to a SOAP pro (Atul). You can additionally refer to slides and code samples posted on the following blog. Wherever i have referred to demos, the corresponding code samples are at following site
http://www.infosysblogs.com/microsoft/2009/08/demystifying_rest_based_archit_1.html
Let’s enjoy this ride together.

Continue reading "How i explained REST to a SOAP pro" »

August 22, 2009

Demystifying REST based Architecture@Microsoft Virtual TechDays

As Atul has mentioned in his last blog, yesterday we presented on Demystifying REST based Architecture at Microsoft Virtual Tech Days. It was fun being there and talking about REST.

Thanks to all who attended the session and provided feedback. From several folks, we received positive comments and request to share the presentation and code samples we have demonstrated.Here are the links to download presentation and code base for the samples we talked through. Download Presentation , Demo Samples

Also please do take a look at my earlier blog on REST, will try to catch up on this series in coming days.

July 27, 2009

Time to bid adieu to .Net Oracle Provider

Till date I have came across several .Net implementations, where design decision to use right provider to connect to Oracle database is not given enough thought. The repercussions of this are visible as late as in Performance acceptance phase but by then it is too late to revert any design decision. The cost of fixing such design defect in acceptance can get as high from 15 to 160 times. Check here
For any .Net application development, following are the natural choices to connect to Oracle Database

1) Use native Oracle provider with .Net framework available in System.Data.OracleClient Namespace
2) Use 3rd party Providers like Oracle Data Provider(ODP), DataDirect, Openlink or Devart
While this blog doesn’t intend to compare them, a high level guideline on when to use what has been..

Continue reading "Time to bid adieu to .Net Oracle Provider" »

July 12, 2009

.Net 4.0 Server side promise

.Net 4.0 currently in beta (means some features covered below are subjected to change by final release) slated to release by end of 2009 with Visual Studio 2010. Some of the key server side features that can help enterprise adopt 4.0 are as follows

Continue reading ".Net 4.0 Server side promise" »

July 05, 2009

Getting File Audit Rules List

Earlier today a friend was trying to invoke GetAuditRules API on a file using c# code, but it was always returning a count of 0 inspite of having set a specific audit rule on the file via windows explorer. The surprising part was that GetAccessRules API was working and the code was running locally so it had full security rights as well.

Continue reading "Getting File Audit Rules List" »

June 15, 2009

Visual Studio 2010 Beta 1 install experience

The other day I finally got to install VS 2010 Beta 1. I had decided to build a VPC for the same so as to not impact my current workstation setup. Overall the experience was pretty smooth and the setup ended without any issues, but the initial few components did cause a bit of pain.

After every component (VC 9 Runtime, VC 10 Runtime, .NET 3.5 SP1 and .NET framework 4 Beta 1), i.e. 4 of these, I had to restart the machine and it was really painful. Beyond that it completed without any more restarts.

May 07, 2009

Caching Controversy!!!

While defining .net architecture several times we come across scenarios where multiple server side caching options needs to be evaluated and dealt with, with .Net 4.0 it is to be seen whether these decision get simplified or further complicated.

Microsoft Project code name “Velocity”, part of .net 4.0 is Microsoft’s highly scalable in memory cache framework for all kinds of data in distributed applications. Usually caching is employed in application to improve the performance and scalability. Good candidates for caching data is static or master data e.g. product list. Recommended practice is to cache master or reference or lookup data as it hardly changes over time but at times scenarios exists where transactional or session specific data needs to be cached for valid reasons.

Continue reading "Caching Controversy!!!" »

November 26, 2008

.NET Framework 4.0 CLR Enhancements

If you attended PDC and specifically the session on .NET Framework: CLR Futures by Joshua Goodman, GPM, CLR team, then already have a good idea on the new enhancements on their way in the CLR 4.0. In this blog, I will only capture the key points that I found interesting and I do suggest that you watch the video of this session to get the complete message.

Continue reading ".NET Framework 4.0 CLR Enhancements" »

Subscribe to this blog's feed

Infosys on Twitter