locked
when adding a wcf service other references are showing error .. RRS feed

  • Question

  • User1787144666 posted

    Hi everyone,

    I have a problem when I add a wcf service reference on my web site. When I add it then other references are showing error. Types used from those references are not know to VS so it shows error Type is not defined.

    I am using VS2010.

    Thank you,

    Wednesday, June 12, 2013 11:50 AM

Answers

  • User220959680 posted

    Is the Web Service SOAP or RESTFul?

    Elaborate how the service reference added to the project (for SOAP Service).

    #Step 1

    Make sure that the web site application is compiled successfully.

    #Step 2

    Delete service reference (for SOAP service)

    #Step 3

    Build the project succesfully by addressing any exceptions

    #Step 4

    Add service reference by choosing 'Add Service Reference' context menu.

    #Step 5

    Build the solution and post any issues here.

    Note that it is NOT required to add service reference for RESTFul service.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 12, 2013 1:56 PM