Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

ErrorCannot have two operations

 
 
Thread Tools Display Modes
Old 05-08-2007   #1 (permalink)
Alhambra Eidos Kiquenet
Guest


 

ErrorCannot have two operations

Hello misters,

I have a WCF service and I'm newbie about it.

I have a Contract class with several methods.

when I execute my application web that calls WCF service, it appears the
following error:

Cannot have two operations in the same contract with the same name, methods
ObtenerValoracion and ObtenerValoracion in type
TINSA.WCF.Valoraciones.Contrato.IValoracion violate this rule. You can change
the name of one of the operations by changing the method name or by using the
Name property of OperationContractAttribute.

Any help about my trouble ? Thanks in advanced, any help will be appreciated
and I'll be very grateful

Regards.


--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net

Old 05-09-2007   #2 (permalink)
Arkady Frenkel
Guest


 

Re: ErrorCannot have two operations

Change second method with name "ObtenerValoracion" to something else e.g.
ObtenerValoracion2
Arkady

"Alhambra Eidos Kiquenet" <AlhambraEidosKiquenet@discussions.microsoft.com>
wrote in message news:4696E43D-9383-44BD-A811-9919A08FA7C4@microsoft.com...
> Hello misters,
>
> I have a WCF service and I'm newbie about it.
>
> I have a Contract class with several methods.
>
> when I execute my application web that calls WCF service, it appears the
> following error:
>
> Cannot have two operations in the same contract with the same name,
> methods
> ObtenerValoracion and ObtenerValoracion in type
> TINSA.WCF.Valoraciones.Contrato.IValoracion violate this rule. You can
> change
> the name of one of the operations by changing the method name or by using
> the
> Name property of OperationContractAttribute.
>
> Any help about my trouble ? Thanks in advanced, any help will be
> appreciated
> and I'll be very grateful
>
> Regards.
>
>
> --
> http://www.alhambra-eidos.es/web2005/index.html
> www.kiquenet.net
>



 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote filesystem operations Bushman PowerShell 3 02-20-2008 08:39 AM
Authorizing Powershell Operations Joris van Lier PowerShell 4 05-23-2007 03:24 PM
Authorizing operations in PowerShell Joris van Lier PowerShell 2 03-31-2007 10:23 AM
File operations Johnny Vista General 1 02-28-2007 08:41 AM
Elevated operations fail Hansjörg Reister Vista file management 1 05-15-2006 12:30 AM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50