I need to send a lot of text from one of my clients to my server. To do that I know I need to increase maxStringContentLength
on the server.
I have done a ton of searching on this, and it seems that all the fixes for this start on Step 3.
I can't seem to figure out steps 1 and 2...
Can someone walk me through this nice and slow. Given my Web.config below, how can I get to set maxStringContentLength
?
Here is my Web.config:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<directoryBrowse enabled="true" />
</system.webServer>
</configuration>
Background info:
- Running Visual Studio 2010
- .NET 4
- Hosting in IIS 7
- VS Project called Host.IIS
- WSDL URL = http://MyServer/Orders/OrdersService.svc?wsdl