Visual Studio 2012 does not recognize Service Reference classes.


  • I recently upgraded to vs2012 from vs2008. In vs2012 whenever I'm viewing classes that were created by consuming a wsdl with "Add Service Reference...", vs2012 marks these classes as undefined.

    I've already tried unchecking the "Reuse types in referenced assemblies" option in the advanced service reference settings, this did not solve the issue.

    When I view this file in vs2008 on my coworkers computer, the class is recognized and works fine. Any suggestions?

    Friday, December 2, 2016 2:31 PM

All replies

  • Hi slothbroth,

    According to your description, please refer to the following scenario:

    1). Please clean your solution, and build the project to observe the results.

    2). Please delete the Service Reference classes in VS2012 and re-add the Service Reference classes in VS2012 to observe the results.



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Monday, December 5, 2016 3:25 AM