を増やし:WCFサービスのMaxStringContentLength
サイズを大きくする方法を示すなどの記事、フォーラムの投稿、、のトンがありますWCF + REST、次のエラーに我々が実行されているMaxStringContentLength
There was an error deserializing the object of type Project.ModelType. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader.
。私が経験している問題は、これらの例のすべてがBindingを使用していることです.Bindingは使用しません。サービスプロジェクトのweb.config
にバインドやエンドポイントの設定はありません。 .svcファイルではなく.csファイルを使用しています。私たちはRESTfulなWCFサービスを実装しました。
クライアント側では、WebChannelFactory
を使用してサービスに電話しています。
ASP.NET 4.0
アイデアはありますか?
あなたは**あなたのサーバー側の「web.config」とクライアント上のコードを使ってプロキシを作成できますか? –
どこにエラーが表示されますか?クライアントまたはサーバーでは? – carlosfigueira
オブジェクトを逆シリアル化しようとすると、サーバー側でエラーが発生します。 – mtm927