Sunday, July 05, 2009

The path is already mapped in workspace

i was getting the following error:

The path is already mapped in workspace


Here's how i solved it.

Theres another way to do it through command line

Tuesday, March 03, 2009

WCF Rest Starter Kit

You can download WCF Rest Starter kit from codeplex.



The WCF REST Starter Kit is a set of features, Visual Studio templates, samples and guidance that enable users to create REST style services using WCF. The CodePlex Preview 1 release provides new features that enable or simplify various aspects of using the http capabilities in WCF, such as caching, security, error handling, help page support, conditional PUT, push style streaming, type based dispatch and semi-structured XML support. The WCF REST Starter Kit also provides Visual Studio templates for creating REST style services such as an Atom feed service, a REST-RPC hybrid service, Resource singleton and collection services and an Atom Publishing Protocol service. In addition, there are samples, documentation and other guidance that help to use these new capabilities.



http://www.codeplex.com/aspnet/Wiki/View.aspx?title=WCF%20REST

Tuesday, January 27, 2009

Microsoft Web Platform 1.0


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 iot here

Office Development with VS 2010

Get up to date with office development on .net platform with Somasegar's post here

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);

Tuesday, August 12, 2008

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 offers major improvements in 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.

Saturday, July 26, 2008

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

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.

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.

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

Wednesday, July 23, 2008

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

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

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

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.

Thursday, July 17, 2008

Composite Architecture

I will be doing a presentation on Composite Architecture later today @ IASA Singapore's chapter evening.

This presentation will talk about 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