Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > WCF: Stop VS2008 generating message contracts

Thread Tools

WCF: Stop VS2008 generating message contracts

James Holak
Posts: n/a
Suddenly, Visual Studio 2008 decided to start generating the Message
Contracts for my WCF Services. I was using a shared Contract Assembly for
the data contracts and request/response messages. I had a proper service
reference in my Windows Forms application that communicated using the shared
assembly objects with the web site hosted in IIS 7 on Vista.

I changed the Security Mode from "Transport" to
"TransportWithMessageCredential" because I want my services protect by SSL
and my Membership/Roles provider. When I told VS to update the service
reference, it changed the calls from using the shared assembly into the
automatically generated message contracts (Request/Response) generated by VS
within the Reference.cs file in the given service reference directory.

Can anyone point me in the right direction to stop visual studio from using
the generated classes and go back to using the shared project's classes? I
chose to enable "Always generate message contracts" on a previous service to
see what it did, but I could never undo that action. Then I decided to
create a new service, a new client reference and that would let me use the
shared objects. However, now I'm back to the beginning with it generating
unwanted objects. I can change the file by hand and it might work, but I
don't want to have to do that each time I change the surface of the service.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fires and SmartNet contracts Cisco 2 07-28-2005 11:50 PM
** 6 MONTH CONTRACTS ** Software Developers - Telecommunications PROCOM Cisco 0 07-06-2005 05:45 PM
managing cisco contracts with SCC end user too Cisco 0 01-28-2004 12:23 AM
JOB: Houston, TX >> Web / .NET Developers (6 months+ contracts) infoTEAM, inc. ASP .Net 2 12-27-2003 05:49 AM
IOS Licensing / SmartNet Contracts Fatman Superstar Cisco 8 11-16-2003 04:29 AM