当使用WCF basicHttpBinding并运行客户端&时,我能够将记录添加到我的数据库中。在当地服务。数据库是我的生产数据库。
运行客户端&直接从共享主机站点进行服务,无法添加记录而不记录错误。
请注意,仅在特定方案中添加某些记录而其他所有记录都通过时才会出现这种情况。但是,我在本地调试它,一切都很好。我有一种感觉,这可能是我需要服务于我的服务行为的设置。下面是我的行为的配置部分。
有没有人知道我可能需要添加什么,或者他们是否已经遇到过这种情况并找到了另一种解决方案?
<serviceBehaviors>
<behavior>
<!--To avoid disclosing metadata information,
set the value below to false and remove the metadata endpoint above before deployment-->
<serviceMetadata httpGetEnabled="True" />
<!--To receive exception details in faults for debugging purposes,
set the value below to true. Set to false before deployment
to avoid disclosing exception information-->
<serviceDebug includeExceptionDetailInFaults="True" />
<dataContractSerializer maxItemsInObjectGraph="2147483647" />
</behavior>
</serviceBehaviors>