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

Category:
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']

[/code]

  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. Required fields are marked *

Let's connect and create
something awesome together!
2023 - Copyright, All Rights Reserved, Made by ZEMNA.NET with ❤️
crossmenu linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram