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
Thanks & Regards
Girish Nehte
If This post helps you to solve your problem please mark this as an answer.
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.
[b] Regards
ღ ֆσÙяÅ๒ђ ღ
Do Not Forget To "Mark As Answer" To The Post Which Solve Your Problme Or Helps You.
girishnehte
Member
76 Points
433 Posts
Exception when hosted WCF service in IIS
Feb 27, 2013 07:01 AM|LINK
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
Girish Nehte
If This post helps you to solve your problem please mark this as an answer.
kushalrdalal
Contributor
7130 Points
1272 Posts
Re: Exception when hosted WCF service in IIS
Feb 27, 2013 01:09 PM|LINK
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
My Blog
LinkedIn Profile
sourabh3120
Member
260 Points
69 Posts
Re: Exception when hosted WCF service in IIS
Feb 27, 2013 02:04 PM|LINK
ღ ֆσÙяÅ๒ђ ღ
Do Not Forget To "Mark As Answer" To The Post Which Solve Your Problme Or Helps You.