about uscontact

Visual Studio 2008에서 서비스참조 오류발생시 해결방안

Author: zemna
Date: April 17, 2021
Share this:

The error message:

The maximum nametable character count quota (16384) has been exceeded while reading XML data. The nametable is a data structure used to store strings encountered during XML processing - long XML documents with non-repeating element names, attribute names and attribute values may trigger this quota. This quota may be increased by changing the MaxNameTableCharCount property on the XmlDictionaryReaderQuotas

I ran into this problem when my WCF service reached a large size.  

I could no longer right click on the service in Visual Studio and select Update service reference.  

I also could not run svcutil.exe without an error when my WCF service was large.

When I commented out some of the functions to get the size smaller, everything would work, but when I added even one function after that point, it would fail.  

No matter what the function was.

I found out which files needed to be changed by using process monitor while doing various operations.

To fix these problems I had to do 5 things:

  1. Replace the svcutil.exe.config file with:

My file was located here: SvcUtil.exe.config

[code lang='xml']


  1. Add the client endpoints and the element to your machine.config.

My file was located here: C:WindowsMicrosoft.NETFrameworkv2.0.50727CONFIGmachine.config

  1. Add the whole inside your devenv.exe.config

My file was located here: C:Program FilesMicrosoft Visual Studio 9.0Common7IDEdevenv.exe.config

  1. Modify the endpoint and bindings of my client app. (myapp.exe.config)

  2. Modify the endpoints and bindings of my WCF service. (mywcfservice.exe.config)

Share this:

Leave a Reply

Your email address will not be published.


Professional software development agency estalished in Indonesia. We offers website setup, web application development, fulfillment service, and etc.
Follow us
Follow us to get latest news and tutorials.
2022 - Copyright, All Rights Reserved, Made by ZEMNA.NET with ❤️