Error after migration WCF service towards VS2012 RRS feed

  • Question

  • User986610096 posted


    After migration from VS2008 towards VS2012  my WCF Service doesn't work. I get following errors messages :

    Erreur 3 Type 'ServiceContract' not defined. C:\Projets\...........
    Erreur 4 Type 'OperationContract' non défini. C:\Projets\........

    Into my code below  the following statements are underlined : Imports System.ServiceModel, <ServiceContract()>  and <OperationContract()>  :

    Imports System
    Imports System.ServiceModel
    Imports System.Net.Mail
    Imports System.Messaging
    également mettre à jour la référence à « ISvcEmailManagement » dans Web.config.
    <ServiceContract()> _
    Public Interface ISvcEmailManagement
        <OperationContract()> _
        Sub QueueMessage(ByVal EmailMessage As EmailEntities.CEmailMessage)
        <OperationContract()> _
        Sub GetMailMessages()
    End Interface


    Thank's for any help


    Wednesday, January 2, 2013 5:33 PM


  • User-1000095884 posted


    Please try re-add System.ServiceModel assembly by right clicking Reference for your project.

    Best Regards.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 4, 2013 4:40 AM