Search code examples
c#web-servicesasp.net-mvc-4service-reference

can't access the added service reference


I've added a service reference to my mvc4 web project and left it with the default namespace "ServiceReference1", but when I wanna use that namespace, visual studio can't find it, like it doesn't exist, the webservice is up and working fine. What exactly am I doing wrong?


Solution

  • I found the solution HERE which as Hoakie mentioned below instructions worked for me and my reference.cs is generated properly now:

    1) Right click on Service Reference

    2) Select Configure Service Reference

    3) Uncheck "Reuse types in referenced assemblies"

    and Voila!