테이블에 있는 데이터가 2000 ROW가 넘어서 에러 발생시? maxItemsInObjectGraph 값을 늘려준다.
<?xml version="1.0" encoding="utf-8"?>
<!--
ASP.NET 응용 프로그램을 구성하는 방법에 대한 자세한 내용을 보려면
http://go.microsoft.com/fwlink/?LinkId=169433 을 방문하십시오.
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<bindings>
<customBinding>
<binding name="Excel_Import.Web.DataService.customBinding0">
<binaryMessageEncoding />
<httpTransport />
</binding>
</customBinding>
</bindings>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"
multipleSiteBindingsEnabled="true" />
<services>
<service name="Excel_Import.Web.DataService">
<endpoint address="" binding="customBinding" bindingConfiguration="Excel_Import.Web.DataService.customBinding0"
contract="Excel_Import.Web.DataService" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
<dataContractSerializer maxItemsInObjectGraph="2147483647"/>
// 한번에 가져올수 있는 데이터의 양을 제한한다.
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>