Welcome to MSDN Blogs Sign in | Join | Help

WCF Tools Related Readme Issues in VS2008 SP1

You can find the readme of VS2008 SP1 in the webpage below

http://download.microsoft.com/download/6/F/E/6FECE629-D1AB-4B47-BEFC-6772F375A6B5/VS2008SP1Readme.htm

 

I list two WCF tools related items here.

 

2.3.7 Windows Communication Foundation (WCF) Tools

 

2.3.7.1 WCF Service Library project cannot be hosted by WCF Service Host when relative path is set to "Output Path" on the Properties page

 

When you create a WCF Service Library project, you can change the Output path from the default bin\debug\ to a relative path such as "." or ".." on the Build tab of the project Properties page. If you then try to debug the service, the service cannot be hosted by the WCF Service Host and this message is displayed: "A project with an Output Type of Class Library cannot be started directly."

 

To resolve this issue:

On the Build tab, input the fully qualified path instead of a relative path.

 

2.3.7.2 Error message when "Add New Item" is selected in a WCF Service Library project in Visual Studio with TFS plug-in

 

If you create a new WCF Service Library project in Visual Studio with the TFS plug-in, you may see an error displayed when you select Add New Item in this project. After clicking OK to close the error dialog box, the item service is added successfully and works as expected.

 

To resolve this issue:

Click OK to dismiss the error dialog box.

Posted by WCFToolsBloggers | 1 Comments
Filed under:

Tips for WCF Tools in VS2008 SP1

In this article, I would like to share some tips of WCF Tools in VS2008 SP1. Hope this can help your better use these tools.

 

WCF Test Client: How to change the folder that stores temporary client configuration files and assembly files

 

Prior to VS2008 SP1, WCF Test Client put the temporary client configuration files and assembly files in “My Document” folder. When this folder is set as a network share, sometimes WCF Test Client cannot invoke services with the error message: “An error occurred creating the configuration section handler for system.serviceModel/bindings: That assembly does not allow partially trusted callers…”

In VS2008 SP1, we improve the experience:

First, we change the default folder from “My Document” to %temp%, because %temp% folder has less probability to be set as a network share.

Second, we also offer command line options to let the folder configurable. You can change it to your specific folder and can also restore to the default one. Snapshot below shows the detailed format of these commands.

 

WCF Test Client fails to add services with mismatched svcutil version

 

Sometimes, when svcutil.exe isn’t properly installed or installed with an earlier version in Windows SDK v6.1, WCF Test Client won’t work with the error message: “Error: Unrecognized option ‘targetclientversion’ specified.”

 

Please double check the below version info:

-          The SvcUtil.exe shipped with Windows SDK v6.0A (which comes with VS 2008) is of version 3.0.4506.648 or above

-          The SvcUtil.exe shipped with Windows SDK v6.1 is also of version 3.0.4506.648 or above

-          The WcfTestClient.exe shipped with VS 2008 is of version 9.0.588.0

 

If the version number is wrong or svcutil.exe isn’t properly installed, the resolution is:

-          Install the latest version of Windows SDK

-          Or copy svcutil.exe from Windows SDK v6.0A to Windows SDK v6.1

 

Installing Biztalk Services SDK will introduce an unrecognized endpoint to WCF Test Client

 

If you have installed the Biztalk Services SDK on top of VS 2008 SP1, the Biztalk Service SDK introduces an endpoint with relayBinding in the <client> section of the <system.serviceModel> element in the machine.config file.

 

When adding a service to WCF Test Client, an unrecognized endpoint will be generated whose contract is IMetadataExchange. Then Test Client will report error: “The contract ‘IMetadataExchange’ in client configuration does not match the name in service contract…”. The screenshot is attached below:

After you click “OK”, the service node will appear in the tree with the redundant “IMetadataExange (sb)” section. There is no impact for the functionalities.

The screenshot is attached below:

 

If you will frequently add services to WCF Test Client, there is a work around to avoid the inconvenient error message:

When you run the WcfTestClient, modify the machine.config file (located in \WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG) by commenting out the <client> section below that is nested in the <system.serviceModel> element. Re-enable the section when you use the Biztalk Services SDK.

 

<client>

   <endpoint address="" binding="relayBinding" bindingConfiguration="metadataExchangeRelayBinding"

contract="IMetadataExchange" name="sb" />

</client>

 

<bindings>

   <relayBinding>

    <binding name="metadataExchangeRelayBinding" />

   </relayBinding>

  </bindings>

 

Service Configuration Editor cannot be launched in VS after some improper installation steps

 

A customer reported a issue, and I would like to share with you here.

 

The user has VS2008 SP1 Beta, .net3.5 SP1 Beta and Windows SDK v6.1 installed in his machine, and then he installed VS2008 SP1 release and .net3.5 SP1 release. There should be some improper steps.

When he created a new WCF Service Library project and tried to launch Service Configuration Editor (SvcConfigEdior.exe) to edit the app.config file, an error dialog pop up:

 

There are two issues:

-          SvcConfigEditor.exe in v6.0A seems disappear

-          Windows SDK v6.0A is still the default SDK after installing Windows SDK v6.1. So VS tried to find SvcConfigEditor.exe in Window SDK v6.0A

 

To resolve the problem, I will recommend using the “Windows SDK Configuration Tool” to set the default SDK.

 

 

To avoid this problem, please make sure to uninstall the Beta versions first: not only the related programs but also the updates, before installing the Release versions.

Posted by WCFToolsBloggers | 1 Comments
Filed under:

VS2008 SP1 is released: WCF Tools new features with snapshots

VS 2008 SP1 is shipped and is available for public download NOW!

 

The WCF tools team from China is proud to introduce the new features we delivered in VS2008 SP1!

 

à  Enhancements for WCF Test Client:

 

n  Support XML Serializer, Message Contract, Dictionary and Nullable<T> types

          

n  Support WCF Session

          

n  Support standalone mode, and enable connecting and testing services from third-party

          

n  Support client-side configuration file customization

          

à  WCF Service Publishing, which allows publishing of services to Local IIS, File System, FTP site or Remote site directly from the WCF Service Library projects.     

 

 

In addition, we also did several small enhancements that directly reflect our customers’ feedback.

Such as: We provide a way for you to control whether or not to automatically launch WCF Service Host for a WCF service project when debugging another project in the same solution.

 

 

Want to use these tools to build you WCF service application? You can find VS 2008 SP1 here.

 

Posted by WCFToolsBloggers | 3 Comments
Filed under:

WCF Tools in VS2008 SP1: Introducing the new features and enhancements

Have you tried the WCF dev tools and IT pro tools in VS2008? Till VS2008, our team has developed WCF Service Templates, WCF Service Host and WCF Test Client as our dev tools, and contributed to Add Service Reference and Auto Attach features embedded in VS system, and also developed Service Configuration Editor and Service Trace Viewer as our IT Pro Tools.

 

Now VS2008 SP1 Beta is coming! Are you curious how this release can help you on WCF tooling experience? We really did a lot to help easily build your WCF Service! I would like to share with you the enhancements for current tools and also the new features in SP1 Beta!

 

By the way, if you haven’t used our tools before, it doesn’t matter. You can first read the article here before continuing.

 

 

WCF Dev Tools:

 

In SP1, we mainly focused on enhancing WCF Test Client, so that we can provide better testing experience whether you are a new comer to the WCF world or an experienced WCF developer:

-          Support XML Serializer, Message Contract, Dictionary and Nullable<T> types in SP1. WCF Test Client can now be used to test most of types used in WCF Services or other .net services.

-          Support WCF Session.

-          Support standalone mode.  In VS2008, Test Client is launched only when debugging a WCF Service in VS. In VS2008 SP1, Test Client becomes a standalone tool. You can open Test Client, then add, remove or refresh services to test them.

-          Support client-side configuration file customization.  When adding a service to Test Client, the client configuration is automatically generated. In VS2008, you can only view it. In VS2008 SP1, you can not only edit it, but also save the changes you made so that you can re-use it each time when you re-launch the same service in Test Client.

 

 

The other cool new feature is to allow publishing of services to Local IIS, File System, FTP site or Remote site directly from the WCF Service Library projects. Previously you can only do this from web-based WCF service projects.  After publishing your service, you can again use Test Client to see whether the service works well.

 

In addition, a couple smaller enhancements are also worth mentioning, since they directly reflected our customers’ feedback:

-          In Add Service Reference, if the WCF service projects are in the current solution, we improved the user experience by building the projects automatically.

-          We provide a way for you to control whether or not to automatically launch WCF Service Host for a WCF service project when debugging another project in the same solution. Look for the WCF Options tab of the WcfServiceLibrary project properties page.

 

Here is a summary of all our WCF dev tools:

 

WCF IT Pro Tools (Part of Windows SDK):

 

Service Configuration Editor stayed the same in SP1 but we did make a few changes to Service Trace Viewer.  The most notable one is that now you can double-click on the trace files (*.svclog or *.stvproj) to open the Trace Viewer.

 

 

 

All these enhancements are aimed to simplify the experience of building WCF services.  Our goal is to make it as easy as possible for everyone to adopt SOA and enjoy its benefits. Give these tools a try and send us feedback!

 

 

Useful Resources:

 

For Visual Studio 2008 SP1 Beta, you can find useful info and resources in the below link.

http://msdn.microsoft.com/en-us/vstudio/products/cc533447.aspx

Urgent: Help us prioritize our future investment in Windows Workflow/Rules Designer re-hosting scenarios

The Windows Workflow Foundation (WF) team is looking for YOUR input to help us prioritize our efforts around designer re-hosting scenarios.

If you're interested in helping us shape the future of this feature, tell us what you think by filling in this survey. The survey will close on Wednesday, March 19th 2008.

Introducing WCF Tools in Visual Studio 2008

WCF Dev Tools:

 

Ever tired of having to run utility program and write extra code in order to test and debug your WCF services?  Ever wonder how would you get started with all the cool, new WCF-related technologies in .Net 3.5?

 

Our team developed a set of new WCF dev tools that significantly improve the WCF service authoring experience, and ease the adoption of WCF technology.  Believe or not, you can literally start running a WCF service within one minute! These tools are shipped together with Visual Studio 2008.  Let’s see how it’s done:

 

1.       Launch Visual Studio 2008

2.       Create a new WCF Service Library project under either Visual Basic or Visual C#

3.       F5!

4.       WCF Service Host and WCF Test Client automatically complete hosting and loading of the service

5.       Double-click one of the operations on the left pane of the WCF Test Client, and enter parameters on the right pane

6.       Click “Invoke” and response will be displayed.  We’re done!

 

You can see the WCF service development experience is significantly simplified.  The following are more details on these new features.

 

 

 

WcfSvcHost (WCF Service Host)

 

WcfSvcHost enumerates the services in a WCF Service project, loads the project’s configuration file, and instantiates a host for each service that was found.  It is integrated into Visual Studio through the WCF Service project template and is invoked when users attempt to debug their project. 

 

Support services created in WCF Service Library, Sequential Workflow Service Library, State Machine Workflow Service Library and Syndication Service Library project templates.

 

It launches as tray icon. When double clicking it, the detailed host information can show for your reference.

 

 

 

WcfTestClient (WCF Test Client)

 

WcfTestClient acts as a client that dynamically changes its behavior each time re-launching, based on the service implementation. It is integrated into Visual Studio through the WCF Service project template and is invoked together with WcfSvcHost when users attempt to debug their project.

 

Support debugging for: WCF Service Library, Sequential Workflow Service Library and State Machine Workflow Service Library. 

 

 

 

WCF Service Templates

 

Help to quickly adopt WCF and new related technologies in .Net3.5. They all support two languages: VB and C#.

 

Technology Area

Project Template

Item Template

General WCF Technology

WCF Service Library

WCF Service

WCF Service Application (Web Application)

WCF Service  (Web Application)

WCF Service (Website)

WCF Service (Website)

Workflow Service Technology in .Net framework 3.5

Sequential Workflow Service Library

WF Sequential Service /

XAML WF Sequential Service

State Machine Workflow Service Library

WF State Machine Service / XAML WF State Machine Service

Syndication Technology in .Net framework 3.5

Syndication Service Library

 

--

Ajax Technology in .Net framework 3.5

 

--

Ajax-enabled WCF Service (Both Web Application and Website)

 

 

Add Service Reference and Auto-attaching Features

 

 The “Add Service Reference” feature makes it easy to discover and consume WCF services.  You can leverage this feature to write your own client.

 

And with the “Auto-attaching” feature, you can have end-to-end debugging experience from client project to WCF service projects in one solution, just as simple and as consistent as debugging in one process.

 

 

WCF IT Pro Tools:

 

Many of you have heard of or used our WCF IT Pro Tools, since their first version was released in Windows Vista.  Now they’re installed as part of Visual Studio 2008!  You can find them under Start Menu/All Programs/Microsoft Windows SDK v 6.0A/Tools after installing Visual Studio 2008.

 

 

Service Configuration Editor

 

Enables administrators and developers to create and modify configuration settings for WCF services using a graphical user interface (GUI). With this tool, you can manage settings for WCF bindings, behaviors, services, and diagnostics without having to directly edit XML files.

 

You can directly right click on the configuration file of a VS 2008 project that you want to edit to open this tool.

 

 

 

Service Trace Viewer

 

Service Trace Viewer provides a way to easily merge, view, and filter trace messages so that you can diagnose, repair, and verify WCF service issues.

 

 

 

Useful Resources:

 

For WCF tools, you can find more detailed instruction in MSDN Library.

http://msdn2.microsoft.com/en-us/library/bb552361.aspx

http://msdn2.microsoft.com/en-us/library/ms732015.aspx

 

For Visual Studio 2008 RTM, you can find useful info and resources in the below link.

http://msdn2.microsoft.com/en-us/vstudio/default.aspx

Posted by WCFToolsBloggers | 1 Comments
Filed under:
 
Page view tracker