Frameworks

Using IIS Express 7.5 with Visual Studio 2010 (without SP1)

March 1, 2011 .NET, .NET Framework, All, ASP.NET, ASP.NET MVC, C#.NET, Frameworks, General, IIS, IIS 7.5, Microsoft, VB.NET, VisualStudio, VS2010 No comments

This is an interesting blog I came across while doing some research on using IIS 7.5 Express with out the Integration or Tooling support that would require Visual Studio 2010 Sp1 Beta. Since VS2010 Sp1 is in beta stage, it would not be a wise choice taking this in to real time project, because as usual BETA’s are not complete production quality.

So I across nice blog by Siva M (Blog code name : Blue Blip), which helped me in understanding the insight of IIS Express running from command line.

Read through

Siva’s Blog on Using IIS Express 7.5 with Visual Studio 2010 (without SP1)

ScottGu blog post: VS 2010 SP1 (Beta) and IIS Express

IIS Express 7.5 is downloadable here. (published Jan 2011)

Integration with VS2010 is provided through the Visual Studio 2010 Service Pack 1 Beta

This is an interesting Weblog and you all might want to explore the new possibilities of IIS 7.5 Express.

I explored a lot and I will share my finding on another later session. So enjoy your time reading the blog..

Generating WCF/WebService proxy class using SvcUtil.exe

February 22, 2011 .NET, .NET Framework, All, ASP.NET, ASP.NET MVC, C#.NET, Frameworks, General, IIS, IIS 7.5, Microsoft, VB.NET, VisualStudio, VS2010, WCF, Web Services 12 comments

Introduction

This article  prepared based on my recent explorations on creating generic WCF/WebService proxy class using SvcUtil.exe tool which is part of .NET Framework Runtime. SvcUtil.exe helps me in creating a single Proxy Stub class for my WCF/web service, which can be directly reused in any project when necessary, without the need to Add Web Reference or Add Service Reference through the Visual Studio 2010 solution explorer.

ServiceModel Metadata Utility Tool (Svcutil.exe)

The ServiceModel Metadata Utility tool is used to generate service model code from metadata documents and metadata documents from service model code. The ServiceModel Metadata Utility Tool can be found at the Windows SDK installation location, specifically, C:Program FilesMicrosoft SDKsWindowsv6.0Bin.

Svcutil.exe generates the client based on the WSDL or policy file received from the service.

Usage Syntax :

svcutil /t:code http://<service_url>/out:<file_name>.cs /config:<file_name>.config

Options Reference :

Option Description
/config:<configFile> Specifies the filename for the generated configuration file.Default: output.config
/language:<language> Specifies the programming language to use for code generation. You should provide either a language name registered in the Machine.config file, or the fully-qualified name of a class that inherits from CodeDomProvider.Values: c#, cs, csharp, vb, visualbasic, c++, cpp

Default: csharp

Short form: /l

/mergeConfig Merges the generated configuration into an existing file, instead of overwriting the existing file.
/messageContract Generates Message Contract types.Short Form: /mc
/namespace:<string,string> Specifies a mapping from a WSDL or XML Schema targetNamespace to a CLR namespace. Using ‘*’ for the targetNamespace maps all targetNamespaces without an explicit mapping to that CLR namespace.To make sure that the message contract name does not collide with operation name, you should either qualify the type reference with ::, or make sure the names are unique.

Default: Derived from the target namespace of the schema document for Data Contracts. The default namespace is used for all other generated types.

Short Form: /n

/out:<file> Specifies the file name for the generated code.Default: Derived from the WSDL definition name, WSDL service name or target namespace of one of the schemas.

Short form: /o

/serializable Generates classes marked with the Serializable Attribute.Short Form: /s
/targetClientVersion Specify which version of .NET Framework the application is targetting. Valid values are Version30 and Version35. The default value is Version30.Short Form: /tcv

Version30: Use /tcv:Version30 if you are generating code for clients that use .NET Framework 3.0.

Version35: Use /tcv:Version35 if you are generating code for clients that use .NET Framework 3.5.

/reference:<file path> References types in the specified assembly. When generating clients, use this option to specify assemblies that might contain types that represent the metadata being imported.Short Form: /r

more on the usage refer to http://msdn.microsoft.com/en-us/library/aa347733.aspx

A Simple Example:

I have an ASP.NET Web Service hosted on one of my domains.

I wanted to created Proxy Stub class from my WSDL url. So I used the following command in “Visual Studio Command Prompt”

svcutil /out:P:BookSearchSvcRefStub.cs http://dotnetcook.com/BookSearch.asmx?WSDL /config:P:BookSearch.config

And the command Generated the  files…

P:BookSearchSvcRefStub.cs -> C#  Code of Proxy Stub class

P:BookSearch.config -> Service Model configuration settings are saved to BookSearch.config

I just included the BookSearchSvcRefStub.cs in my project and made necessary changes to the namespace to meet with the name space of my class library or project. Copied the necessary *.config entries to my solution. Voila!! my code is ready to work.

Conclusion

When you add a Web Reference or Service Reference to a Visual Studio project by right clicking on the solution explorer on Visual Studio, Visual Studio internally input the above svcutil.exe command to generate Proxy class and emits  output to your Visual Studio project itself and configuration entries will be updated to your project App.config or Web.config.

But in some certain scenarios we do not want to depend on Visual Studio to add Service Reference, to make sure we will not include any unnecessary entries created by Visual Studio. This will make sure we do not alter the Service proxy code accidently, just like sometimes we do using “Update Service References”, which updates the proxy class contents to latest version downloaded from the Service Uri and we might breaking existing code base.  Also if we made any customization to the Proxy class and all the changes will be over written when Service Reference are updated. To avoid such incidents it’s better we generate Proxy Stub classes and reuse it where ever necessary.

There are more interesting commands you can use it with SvcUtil.exe to generate metadata or proxy code from a Web/WCF Service URL in C# or VB.NET.

Refer to http://msdn.microsoft.com/en-us/library/aa347733.aspx for more details.

Hope this helps.

Internet Information Services (IIS) 7.5 Express FINAL

January 13, 2011 .NET, .NET Framework, All, ASP.NET, ASP.NET MVC, C#.NET, Frameworks, General, IIS, IIS 7.5, Microsoft, RIA Services, Silverlight, VB.NET, VisualStudio, VS2010 No comments

Microsoft has released the FINAL version of it’s so called lighter version of IIS 7.5 called as “IIS 7.5 Express”. Which makes developers to utilize the features of IIS 7.5 in WindowsXP and above Operating system environments. Great work Microsoft!!!! Right on time..

IIS 7.5 Express enhances your ability to develop and test web applications on Windows by combining the power of IIS 7.5 with the convenience of a lightweight web server like the ASP.NET Development Server (also known as Cassini). IIS 7.5 Express is included withMicrosoft WebMatrix, an integrated suite of tools designed to make developing web applications on Windows simple and seamless. IIS 7.5 Express can also be used with Visual Studio 2010 as a powerful alternative to Cassini. The benefits of using IIS 7.5 Express include:

  • The same web server that runs on your production server is now available on your development computer.
  • Most tasks can be done without the need for administrative privileges.
  • IIS 7.5 Express runs on Windows XP and all later versions of Windows.
  • Many users can work independently on the same computer.

This package installs only IIS 7.5 Express. For an integrated development experience, also install Microsoft WebMatrix or Visual Studio 2010.

Download: IIS 7.5 Express Final

Courtesy: Microsoft Download Center

 

Released: ASP.NET MVC 3 RTM

January 13, 2011 .NET, .NET Framework, All, ASP.NET, ASP.NET MVC, C#.NET, Frameworks, General, IIS, IIS 7.5, Microsoft, VB.NET, VisualStudio, VS2010 1 comment

Microsoft has released the final version of ASP.NET MVC 3 RTM (Release-To-Manufacture) on 01/12/2011.

ASP.NET MVC 3 is a framework for developing highly testable and maintainable Web applications by leveraging the Model-View-Controller (MVC) pattern. The framework encourages developers to maintain a clear separation of concerns among the responsibilities of the application – the UI logic using the view, user-input handling using the controller, and the domain logic using the model. ASP.NET MVC applications are easily testable using techniques such as test-driven development (TDD).

The installation package includes templates and tools for Visual Studio 2010 to increase productivity when writing ASP.NET MVC applications. For example, the Add View dialog box takes advantage of customizable code generation (T4) templates to generate a view based on a model object. The default project template allows the developer to automatically hook up a unit-test project that is associated with the ASP.NET MVC application.

Because the ASP.NET MVC framework is built on ASP.NET 4, developers can take advantage of existing ASP.NET features like authentication and authorization, profile settings, localization, and so on.

Download ASP.NET MVC 3 RTM

Special thanks to Microsoft Download Center for the Info.

[Recent Releases] Microsoft Visual Studio 2010 Service Pack 1 Beta, Microsoft .NET Framework 4 KB2162169 – BETA, Visual Studio Team Foundation Server 2010 SP1 Beta

December 19, 2010 .NET, .NET Framework, All, ASP.NET, ASP.NET MVC, C#.NET, Frameworks, General, IIS, IIS 7.5, Microsoft, VB.NET, VisualStudio, VS2010 No comments

This is a quick listing on some of the software updates and released happened from Microsoft in this recent weeks. So that you all can keep updated.

Windows Azure Platform Training KitDecember Update

Windows Azure Platform Training Kit includes a comprehensive set of technical content to help you learn how to use Windows Azure, SQL Azure, and the Windows Azure AppFabric services.

ASP.NET MVC 3 RC2

ASP.NET MVC 3 provides a Model-View-Controller (MVC) framework on top of the ASP.NET 4 runtime.

Windows Azure Tools and SDK 1.3

Windows Azure Tools for Microsoft Visual Studio, which includes the Windows Azure SDK, extends Visual Studio 2010 to enable the creation, configuration, building, debugging, running, packaging and deployment of scalable web applications and services on Windows Azure.

Microsoft Visual Studio 2010 Service Pack 1 Beta

This web installer downloads and installs Visual Studio 2010 Service Pack 1 Beta. An internet connection is required during installation. See the ‘Additional Information’ section below for alternative (ISO) download options. Please Note: This installer is for all editions of Visual Studio 2010 (Express, Professional, Premium, Ultimate).

Visual Studio Team Foundation Server 2010 SP1 Beta

Microsoft Visual Studio Team Foundation Server 2010 is the collaboration platform at the core of Microsoft’s ALM solution that helps teams to be more agile, collaborate more effectively, and deliver better quality software faster. Project artifacts are stored in a data warehouse and rich reports provide historical trending, full traceability and real-time visibility into project status.

Microsoft .NET Framework 4 KB2162169 – BETA

Update to .NET Framework 4.

Windows Server AppFabric

Windows Server AppFabric is a set of integrated technologies that make it easier to build, scale and manage Web and composite applications that run on IIS.

SQL Server 2005 SP4 RTM

Download Service Pack 4 for Microsoft SQL Server 2005 and view release notes.

Entity Framework CTP 5

This CTP is a preview of the Code First Programming Model and Productivity Improvements for Entity Framework 4 (included in .NET Framework 4).

UC “14” Developer Training Kit

This training kit provides deep technical training on all aspects of the Lync Server 2010 and Exchange Server 2010 SDKs to give developers the skills they need to be productive developing communications driven business processes.

WIF SDK

Windows Identity Foundation SDK

Windows Phone 7 Developer Guide – Code Samples

This sample illustrates the steps towards building an application for the Windows Phone 7 interacting with backend services hosted in Windows Azure.

Visual Studio 2010 F# 2.0 Runtime SP1

This download installs the F# Runtime 2.0 SP1, which includes the runtime components needed to run programs built with the F# programming language.

Visual Basic for Windows Phone Developer Tools – RTW

This release enables Visual Basic developers to create Silverlight applications for Windows Phone 7 using the final version of the Windows Phone Developer Tools.

Courtesy : Microsoft

ASP.NET MVC 3 Release Candidate

November 10, 2010 .NET, .NET Framework, All, ASP.NET, ASP.NET MVC, C#.NET, Frameworks, General, IIS, IIS 7.5, Microsoft, VB.NET, VisualStudio, VS2010 1 comment

ASP.NET MVC 3 is a framework for developing highly testable and maintainable Web applications by leveraging the Model-View-Controller (MVC) pattern.

The latest Release Candidate of ASP.NET MVC 3.0 for Visual studio 2010 has releaded.

 Download latest ASP.NET MVC 3 – RC – Release Candidate