wcf-data-services

WCF Streaming large data (500MB / 1GB) on a self hosted service

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 00:24:12
问题 I'm currently experiencing an issue trying to send large data using WCF self hosted service (no IIS). Transferring 500MB using streaming results with my service crashing with System.OutOfMemoryException. Is it possible at all to transfer such amount of data? Here is my WCF configuration: <system.serviceModel> <services> <service name="CIService" behaviorConfiguration="CIBehavior"> <host> <baseAddresses> <add baseAddress="net.tcp://localhost:6547/CIService/CIService.svc" /> </baseAddresses> <

Libraries for ADO.NET to rapidly bulk insert data into a database from a .csv file?

末鹿安然 提交于 2019-11-26 20:15:51
问题 I'd like to know if you can recommend any advanced ADO.NET libraries for working with databases. I've discovered that LINQ-to-Entities is great for pulling data out of databases, but not at all useful for inserting data into databases. Its missing functionality like fast bulk insert, culling of duplicates, and most of the advanced functionality you can achieve with pure SQL. So: can you recommend some ADO.NET libraries that offer the sorts of advanced functionality that LINQ-to-Entities is

Turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server

霸气de小男生 提交于 2019-11-26 19:29:06
I have a WCF service that has been working perfectly, and something has changed and I don't know what. I get this exception: System.ServiceModel.FaultException: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs. This is confusing

Transfer large amount of data in WCF service

梦想与她 提交于 2019-11-26 18:59:45
问题 I have created a web service in WCF which returns more than 54000 data-rows with 10 data in each row. I have used the wsHttpBinding for communication. The service works well with less data (i.e. 2000 rows) but it bombs out when attempting to send large record set with 50000+ rows(~2MB). The exception message is like this An error occurred while receiving the HTTP response to http://localhost:9002/MyService.svc . This could be due to the service endpoint binding not using the HTTP protocol.

What is the implementing class for IGrouping?

一世执手 提交于 2019-11-26 16:49:24
问题 I am trying create a WCF Data Services ServiceOperation that does grouping on the server side and then sends the data down to the client. When I try to call it (or even connect to the service) I get an error. It says that it can't construct an interface. The only interface I am using is IGrouping. What is a/the actual class for this interface? Update: I checked the type while debugging a sample app and it told me it was: System.Linq.Lookup<TKey,TElement>.Grouping But what assembly is it in?

How to handle Ajax JQUERY POST request with WCF self-host

冷暖自知 提交于 2019-11-26 12:43:37
问题 There are many reasons create a RESTful WCF server (it is easy) and even better if you can avoid ASP and it\'s security box (if all you are doing is simple requests to return information). See: http://msdn.microsoft.com/en-us/library/ms750530.aspx on how to do this. What I found is that handling AJAX (JQUERY) GET requests is easy. But dealing with JSON in a POST is tricky. Here is an example of a simple GET request contract: [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json)]

Turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server

耗尽温柔 提交于 2019-11-26 06:57:35
问题 I have a WCF service that has been working perfectly, and something has changed and I don\'t know what. I get this exception: System.ServiceModel.FaultException: The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the