Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - ErrorCannot have two operations

 
 
Old 05-08-2007   #1 (permalink)
Alhambra Eidos Kiquenet


 
 

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


My System SpecsSystem Spec
Old 05-09-2007   #2 (permalink)
Arkady Frenkel


 
 

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
>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
network IO operations by process VB Script
Operations of FormatNumber function VB Script
Remote filesystem operations PowerShell
File operations Vista General
Elevated operations fail Vista file management


Vista Forums 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 Ltd

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