gpt4 book ai didi

.net-3.5 - 安装 .net Framework 3.5 sp1 后出现 System.InvalidOperationException 问题

转载 作者:行者123 更新时间:2023-12-02 02:27:48 24 4
gpt4 key购买 nike

我刚刚安装了 .net framework 3.5 sp1 之后出现了以下错误。

:System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.InvalidOperationException: Type 'SL.CreateDocs' cannot be added to list of known types since another type 'SL.MyList' with the same data contract name 'http://schemas.datacontract.org/2004/07/SL.Object:DocList' is already present.

Server stack trace:
at System.Runtime.Serialization.DataContract.CheckAndAdd(Type type, Dictionary`2 typesChecked, Dictionary`2& nameToDataContractTable)
at System.Runtime.Serialization.XmlObjectSerializerContext.GetDataContractsForKnownTypes(IList`1 knownTypeList)
at System.Runtime.Serialization.DataContractSerializer.get_KnownDataContracts()
at System.Runtime.Serialization.XmlObjectSerializerContext..ctor(DataContractSerializer serializer, DataContract rootTypeDataContract)
at System.Runtime.Serialization.XmlObjectSerializerReadContext.CreateContext(DataContractSerializer serializer, DataContract rootTypeDataContract)
at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName)
at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName)
at System.Runtime.Serialization.XmlObjectSerializer.ReadObject(XmlDictionaryReader reader)
at System.ServiceModel.Dispatcher.FaultFormatter.CreateFaultException(MessageFault messageFault, String action)
at System.ServiceModel.Dispatcher.FaultFormatter.Deserialize(MessageFault messageFault, String action)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

.net framework 3.5 sp1 有任何问题。

谢谢贾格纳特。

最佳答案

我刚刚重新生成了 wcf 代理,新代理现在包含一些与故障相关的新部分。它解决了我的问题。

这是与 framework 3.5 sp1 相关的问题

关于.net-3.5 - 安装 .net Framework 3.5 sp1 后出现 System.InvalidOperationException 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5075844/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com