none
proxy class is not getting created when added WCF Service reference to Client RRS feed

  • Question

  • Hi,

    In my application, ASP.NET client application is consuming WCF Service. It was working fin with .Net 4.0 framework. As per the client requirement we are migrating this applications to .NET 4.6 using VS 2015. After doing the required changes to service, I tried to add the reference of WCF service to client application but it is not creating Reference .cs class. I am setting the data type of Service reference as System.Collections.Generic.List by selecting 'Advance' Settings. I have also tried to uncheck 'Reuse types of referenced assembly' option but it is not working with data type selected as 'System.Collections.Generic.List'.

    Then I try to generate the proxy by using SVCUtill tool but it is giving me an error as "unable to access service meta data".

    please guide me to solve this problem.

    Thank you in advance.

    Monday, February 29, 2016 6:45 AM

All replies

  • Hi RahulPundlik,

    First could you please try to enter the service address in your browser to see if it works?
    Then based on your description, I know that when you migrate your application to the .net 4.6, you have done some changes. I wonder if you have done something that is related with the config file.

    >>Then I try to generate the proxy by using SVCUtill tool but it is giving me an error as "unable to access service meta data".

    From the above error information, it seems that you do not implement the Metadata Exchange, please try to make sure that you have added mex endpoint or you have set httpGetEnabled/httpsGetEnabled as true in the config file.

    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
    ......

    <serviceMetadata httpGetEnabled="true" />

    In addition, if the above solution does not work for you, could you please try to share your config file in here.
    Thanks for your understanding.

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, March 2, 2016 2:59 AM
    Moderator