locked
Exception when hosted WCF service in IIS RRS feed

  • Question

  • User-720893289 posted

    Hi,

    I am using VS 2010 with C# to create a WCF service. I have created a WCF service application project and create a service. After this in the same solution I have created a client web application that will use this service. In that service there is a method GetData()  which calls a methid from referenced dll and get the data in the form of DataSet.
    Now when I add the service reference to the client from the same solution then it all works fine and I get the data. But after I host the service in IIS (using win 7) I did not get the data. When I debug the service on GetData() method I get "StackOverflow" exception. I am not sure what is the issue after hosting it in IIS.

    Can anybody please share your views or suggest any solution on this?

    Regards,
    Girish Nehte

    Wednesday, February 27, 2013 3:01 AM

Answers

  • User1353953242 posted
    I guess size of the data coming through your service is so large, so you just need to increase the size of the "maxBufferSize" and "maxReceivedMessageSize" in your web.config file inside bindings.
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 27, 2013 10:04 AM

All replies

  • User-1662538993 posted

    check this forum -

    http://stackoverflow.com/questions/5316200/returning-a-typed-dataset-from-a-wcf-service-result-in-a-xsstring-not-found

    http://stackoverflow.com/questions/12702/net-returning-datatables-in-wcf

    http://stackoverflow.com/questions/1380630/returning-datatable-objects-with-wcf-service

    Wednesday, February 27, 2013 9:09 AM
  • User1353953242 posted
    I guess size of the data coming through your service is so large, so you just need to increase the size of the "maxBufferSize" and "maxReceivedMessageSize" in your web.config file inside bindings.
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 27, 2013 10:04 AM