Hammad : IDotNetWizard

My .NET Blog
The path <path> is already mapped in workspace <workspace>

i was getting the following error:

The path <path> is already mapped in workspace <workspace>

Here's  how i solved it.

Theres another way to do it through command line

Posted: Sun, Jul 5 2009 11:36 by hammad | with no comments
Filed under: , , ,
Microsoft's Web Platform Installer

The Web Platform Installer (Web PI) is a simple tool that installs Microsoft's entire Web Platform, including IIS, Visual Web Developer 2008 Express Edition, SQL Server 2008 Express Edition and the .NET Framework. Using the Web Platform Installer’s user interface, you can choose to install either specific products or the entire Microsoft Web Platform onto your computer. The Web PI also helps keep your products up to date by always offering the latest additions to the Web Platform.

get it here http://www.microsoft.com/web/channel/products/WebPlatformInstaller.aspx

Office Development with VS 2010

Get up to date with office development on .net platform with Somasegar's post <a href="http://blogs.msdn.com/somasegar/archive/2009/01/10/office-client-developer-enhancements-with-vs-2010.aspx">here</a>

My personal favourite is simplification of .net's integration with COM's OM.

As per the example posted in Somasegar's blog.

Instead of doing the following

object fileName = "Test.docx";
object missing  = System.Reflection.Missing.Value;
doc.SaveAs(ref fileName,
    ref missing, ref missing, ref missing,
    ref missing, ref missing, ref missing,
    ref missing, ref missing, ref missing,
    ref missing, ref missing, ref missing,
    ref missing, ref missing, ref missing);

You can do with VS 2010

object fileName = "Test.docx";
doc.SaveAs(fileName);

Posted: Tue, Jan 27 2009 8:05 by hammad | with no comments
Filed under: , , ,
Contention, poor performance, and deadlocks when you make Web service requests from ASP.NET applications

If you are (un) lucky like me then you may run into gettin this error on IIS server asp.net web apps/asmx web services. Its a known issue and has a resolution documented in kb article @ http://support.microsoft.com/kb/821268.

The resolution revolves around fine tuning machine.config parameters.

To improve your asp.net web app performance do read http://msdn.microsoft.com/en-us/library/ms998549.aspx

VS 2008 sp1 & .Net 3.5 sp1 is out

You can download VS 2008 sp1 and .Net 3.5 sp1 @

http://www.microsoft.com/downloads/details.aspx?FamilyID=ab99342f-5d1a-413d-8319-81da479ab0d7&DisplayLang=en

 

This release has major improvements on WCF and WF.

Brief overview avaialble @ download page says:

 

.NET Framework version 3.5 Service Pack 1 provides the following new features and improvements:


  • ASP.NET Dynamic Data, which provides a rich scaffolding framework that enables rapid data driven development without writing code, and a new addition to ASP.NET AJAX that provides support for managing browser history (back button support). For more information, see What’s New in ASP.NET and Web Development.

  • Core improvements to the CLR (common language runtime) that include better layout of .NET Framework native images, opting out of strong-name verification for fully trusted assemblies, improved application startup performance, better generated code that improves end-to-end application execution time, and opting managed code to run in ASLR (Address Space Layout Randomization) mode if supported by the operating system. Additionally, managed applications that are opened from network shares have the same behavior as native applications by running with full trust.

  • Performance improvements to WPF (Windows Presentation Foundation), including a faster startup time and improved performance for Bitmap effects. Additional functionality for WPF includes better support for line of business applications, native splash screen support, DirectX pixel shader support, and the new WebBrowser control.

  • ClickOnce application publishers can decide to opt out of signing and hashing as appropriate for their scenarios, developers can programmatically install ClickOnce applications that display a customized branding, and ClickOnce error dialog boxes support links to application-specific support sites on the Web.

  • The Entity Framework is an evolution of the existing suite of ADO.NET data access technologies. The Entity Framework enables developers to program against relational databases in according to application-specific domain models instead of the underlying database models. For more information, see Getting Started with the Entity Framework. The Entity Framework introduces some additional features, including support for new SQL Server 2008 types, default graph serialization of Entities, and the Entity Data Source. This release of the Entity Framework supports the new date and file stream capabilities in SQL Server 2008. The graph serialization work helps developers who want to build Windows Communication Foundation (WCF) services that model full graphs as data contracts. The Entity Data Source provides a traditional data source experience for ASP.NET Web application builders who want to work with the Entity Framework.

  • LINQ to SQL includes new support for the new date and file stream capabilities in SQL Server 2008.

  • The ADO.NET Data Services Framework consists of a combination of patterns and libraries, which enable data to be exposed as a flexible REST (Representational State Transfer)-based data service that can be consumed by Web clients in a corporate network or across the Internet. The ADO.NET Data Services Framework makes data service creation over any data source. A conceptual view model of the underlying storage schema can easily be exposed through rich integration with the ADO.NET Entity Framework. Services created by using the ADO.NET Data Services Framework, and also compatible Windows Live (dev.live.com) services, can be easily accessed from any platform. For client applications that are running on Microsoft platforms, a set of client libraries are provided to make interaction with data services simple. For example, .NET Framework-based clients can use LINQ to query data services and a simple .NET Framework object layer to update data in the service.

  • Windows Communication Foundation now makes the DataContract Serializer easier to use by providing improved interoperability support, enhancing the debugging experience in partial trust scenarios, and extending syndication protocol support for wider usage in Web 2.0 applications.

  • The .NET Framework Data Provider for SQL Server (SqlClient) adds new support for file stream and sparse column capabilities in SQL Server 2008.

Embedded sqlMap.config

If you are like me you would like to embed sqlMap.config file for your ibatis project. Although its not provided out of the box but its very simple to implement.

All you have to do is to write your own sqlMapper implementation.The core logic revolves around building DomSqlMapBuilder.

 protected static void InitMapper()
        {
            DomSqlMapBuilder builder = new DomSqlMapBuilder();
            XmlDocument sqlMapConfig = Resources.GetEmbeddedResourceAsXmlDocument("YourNamepspace.YourConfigFile.config");
            mapper = builder.Configure(sqlMapConfig) as SqlMapper;
        }

 

for more details do check out http://opensource.atlassian.com/confluence/oss/display/IBATIS/How+do+I+use+an+embedded+sqlMap.config+file

The invoked member is not supported in a dynamic assembly

When i tried running an ibattis related unit test fixtures in my exsiting test assembly I started getting this wierd error that's a known bug documented at http://support.microsoft.com/kb/327131.

Interesting thing is that when i run that fixture in a separate assembly it works fine but as soon as i add it to existing test fixtures it crashes with this error :"The invoked member is not supported in a dynamic assembly".

I think it has to do with how nUnit created dynamic assemblies for test fixtures internally. Unfortunately i cant change that behavior. So for now the work around is to use a separate assembly.

 

Posted: Fri, Jul 25 2008 4:02 by hammad | with no comments
Filed under: , , ,
More on Composite Architecture

As i posted earlier that i will be presenting @ IASA Singapore's chapter evening. It turned out to be an interesting session and i got the chance to interact with the audience and hear their pain points on composite architecture and enterprise mashups.

Enteprisewise initiatives, sharing data across services/apps and need for top quality tools came out as the most crucial elements to the success of composite architecture. I also heard some interesting remarks from the audience. One of the gentlement mentioned that there is nothing that composite arch/enterprise mashup offers that couldnt be done with traditional apps/services. I'd say lets look at this analogy:

"if you are travel from point x to y, you could either walk, run, ride a horse, drive, commute through train, or fly in a plane. Ofcourse it will depend on the distance b/w x and y. Among other things it will also depend on your mind set and approach. if you want to cover the distance in excess of hundreds of kilometers by riding a horse then God speed. Surely you will get there but the question is how much will it cost you in terms of time and effort"

I strongly believe in composite arhictecture and enterprise mashups. This truly leads to realization of potential promised by SOA. 

Web Service enumeration components are not available

when you are getting subject titled error in Visual Studio (this happens when you try to add a web reference), try using following command on vs command prompt:

devenv /resetskippkgs

Posted: Wed, Jul 23 2008 3:58 by hammad | with no comments
Filed under:
ASP.NET MVC CodePlex Preview 4

This CodePlex Preview 4 release introduces new features as well as changes to the default project template. The changes to the default project template are intended to help jumpstart the most common application-building scenarios. Many of the new features focus around simple AJAX scenarios.

http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=15389

Posted: Fri, Jul 18 2008 7:46 by hammad | with no comments
Filed under: , ,
Interesting

If you think
- you take our tea/coffee seriously 
- you have lots of sugar (its indeed our fuel)
- you like to have it on your desk

Then you are not much different from earlier species of computer programmers who used to work with John Von Nuemann. Check out this interesting read

 

 

http://skysigal.xact-solutions.com/Blog/tabid/427/EntryID/387/Default.aspx

 

Posted: Wed, Jul 9 2008 3:57 by hammad | with no comments
Filed under:
Speaking @ IASA Singapore Event

I will be talking about Composite Architecture @ IASA Singapore's monthly chapter evening. I will discuss how the software architecture paradigm is shifting in response to agile enterprises. This talk will intend to de-mystify composite architecture and then in the end present available tools and technologies that can be used to build applications and services that are based on composite architecture.If you are in or around Singapore on 17th of July 2008 then feel free to join us.

Venue is :9 Temasek Boulevard | #35-03 Suntec Tower Two | Singapore 038989

For directions click here

Sitting next to greatest talent...

During OSLO SDRs i got to know, meet and share thoughts with greatest minds in CSD today. Its a big list but i will like to share a few names and they go like, Don Box, Juval Lowy, Sam Gentile, Brian Loesgen, Michele Leroux Bustamante, Roman Kiss and Chris Sells. A noted omission from the attendees was Clemens Vesters.

MVP Summit - 2008

I am back from MVP Summit 2008 that took place in Seattle last week. It was an absolutely amazing experience and I was overwhelmed by the sheer amount of information that was offered during the summit. From the Toby's welcome note to speech by Sean O Driscoll to the break out sessions that took place in Building # 43 @ Redmond Campus to the key notes by Ray Ozzie and Steve Balmer, it was an enlightening experience.

I would like to point out to a news article posted by Seattle times here. I will be looking forward to attend next years summit that is scheduled for March 1-4th, 2009.

I will blog shortly about Connected System SDRs.

MVP Summit - 01

Hey all.. I am at the WSTC and waiting for the Welcome note and hence the official start of this years summit here @ Seattle, Washington. I reached Seattle yesterday morning and will be heading back to Singapore on Friday 18th of April. I will be blogging about this event for next few days and keep you all posted on the most exciting and the best of things experienced @ this years summit.
Now, a little bit of update on weather in Seattle. It was rather cold and wet in Seattle yesterday but today is one of those bright sunny days (well, so far atleast) you wish you would have every day.

User group event: Web 2.0 in Enterprise

<dotNetBulls/> hosted their first technical event on 11th of March, 2008. Topic for this event was "Web 2.0 in Enterprise" and it was hosted by Linda Chong, from Microsoft. Linda Chong works for Microsoft in the capacity of Architect Evangelist and she has 12 years of extensive experience on management, consulting, evangelism, architecture design/review, pre-sales engagement and systems integration in the areas of SOA, Web 2.0, e-business/e-commerce and enterprise application integration (EAI). Event started with Hammad Rajjoub introducing <dotNetBulls/> and speaker.

Linda started off with talking about Software + Services and Web 2.0 and where it stands today and then moved towards Microsoft's Silverlight and its applications in local/international market. It was a successful event that saw a conference room filled with geeks, snacks (thanks to SDC) and guest speaker engaged in technical dialogue for more than an hour.

Posted: Sun, Apr 6 2008 8:28 by hammad | with no comments
Filed under: ,
User Group Event on VSTS

<dotNetBulls/> hosted their second technical event on 27th of March, 2008. This was a special event that saw two top speakers from Microsoft Corporation hosting a tech-talk on Application Life Cycle Management, Agile Tools and Visual Studio Team System. Both the speakers were visiting Singapore for "Heroes Happen Here" event that marks the launch of Visual Studio 2008, SQL Server 2008 and Exchange 2008.

Norman Guadagno, Director of Product Marketing for Visual Studio Team System talked about application development life cycle management and how VSTS allows integrated, extensible and end-to-end ALM (Application Lifecycle Management).
Stephanie Saad, Group Manager in Visual Studio Team System at Microsoft, talked about how agile development tools in VSTS can be used to deliver Agile Solutions.

Event was a success amongst its participants who were delighted and enlightened to hear from top experts on the topic that's very important and extremely relevant to their professional work. Stephanie showed some cool demoes on VSTS and audience absolutely liked it. After the demoes there was an open QnA session where audience asked various questions on the use of code metrics, automated builds, annotations etc.

Speaking at ITARC - KL

I will be presenting at ITARC conference organized by IASA in KL. I will be presenting a break out session on "Composite Architecture". I will share the slides with all of you shortly.

Attending MVP Summit 2008

I will be attending MVP Summit 2008 in Seattle this year. I am really looking forward to getting back to Redmond and meeting product team.

Posted: Sun, Apr 6 2008 8:09 by hammad | with no comments
Filed under: , ,
MVP Award for 4th consecutive year

I am glad to share this news with all of you that I have been given MVP award for the 4th consecutive year. I will also continue to be part of Microsoft's Connected Systems Advisory Board.

Posted: Sun, Apr 6 2008 8:03 by hammad | with no comments
Filed under: ,
More Posts Next page »