Webbklienten slutade fungera
Posted: Wed 29 Aug 2012, 20:53
När jag uppgraderade från Switch King 2.0.3 till 3.0 RC2 slutade webbklienten fungera.
Kör med Switch King Web Client Extension v5.0 på en IIS 7.5 server...
Får upp följande felmeddelande:
Kör med Switch King Web Client Extension v5.0 på en IIS 7.5 server...
Får upp följande felmeddelande:
Code: Select all
Server Error in '/Touch' Application.
Error in line 1 position 1066. 'Element' 'Address' from namespace 'http://SwitchKing.Common/Entities/2010/01' is not expected. Expecting element 'TypeName'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.Serialization.SerializationException: Error in line 1 position 1066. 'Element' 'Address' from namespace 'http://SwitchKing.Common/Entities/2010/01' is not expected. Expecting element 'TypeName'.
Source Error:
Line 143: else if (DataSourceName != null && DataSourceName.Length > 0)
Line 144: {
Line 145: return Proxy.ExternalData.GetDataSourceByName(DataSourceName, true);
Line 146: }
Line 147: else
Source File: d:\Inetpub\homeautomation.hellgren.local\wwwroot\Touch\DataSourceControl.ascx.cs Line: 145
Stack Trace:
[SerializationException: Error in line 1 position 1066. 'Element' 'Address' from namespace 'http://SwitchKing.Common/Entities/2010/01' is not expected. Expecting element 'TypeName'.]
System.Runtime.Serialization.XmlObjectSerializerReadContext.ThrowRequiredMemberMissingException(XmlReaderDelegator xmlReader, Int32 memberIndex, Int32 requiredIndex, XmlDictionaryString[] memberNames) +559528
System.Runtime.Serialization.XmlObjectSerializerReadContext.GetMemberIndexWithRequiredMembers(XmlReaderDelegator xmlReader, XmlDictionaryString[] memberNames, XmlDictionaryString[] memberNamespaces, Int32 memberIndex, Int32 requiredIndex, ExtensionDataObject extensionData) +1579770
ReadExternalSourceFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString[] , XmlDictionaryString[] ) +179
System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context) +47
System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader) +15
System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, DataContract& dataContract) +1581590
System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns) +39
System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName) +167
System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName) +98
System.Runtime.Serialization.DataContractSerializer.ReadObject(XmlDictionaryReader reader, Boolean verifyObjectName) +44
System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameterPart(XmlDictionaryReader reader, PartInfo part, Boolean isRequest) +55
[NetDispatcherFaultException: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://SwitchKing.Server.WCFServices/2010/01/FrameworkService:GetDataSourceByNameResult. The InnerException message was 'Error in line 1 position 1066. 'Element' 'Address' from namespace 'http://SwitchKing.Common/Entities/2010/01' is not expected. Expecting element 'TypeName'.'. Please see InnerException for more details.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +7601039
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +275
SwitchKing.Common.Contracts.Framework.ExternalData.IDataSourceContract.GetDataSourceByName(String name, Boolean includeLastValueData) +0
SwitchKing.Server.ClientProxies.Proxies.ExternalDataProxy.GetDataSourceByName(String name, Boolean includeLastValueData) in E:\Switch King\Server\trunk\Switch King Server\SwitchKing.Server.ClientProxies\Proxies\ExternalDataProxy.cs:149
DataSourceControl.GetDataSourceByProperties() in d:\Inetpub\homeautomation.hellgren.local\wwwroot\Touch\DataSourceControl.ascx.cs:145
DataSourceControl.get_DataSource() in d:\Inetpub\homeautomation.hellgren.local\wwwroot\Touch\DataSourceControl.ascx.cs:45
DataSourceControl.PopulateControlWithData() in d:\Inetpub\homeautomation.hellgren.local\wwwroot\Touch\DataSourceControl.ascx.cs:69
DataSourceControl.Page_Load(Object sender, EventArgs e) in d:\Inetpub\homeautomation.hellgren.local\wwwroot\Touch\DataSourceControl.ascx.cs:23
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Version Information: Microsoft .NET Framework Version:2.0.50727.5456; ASP.NET Version:2.0.50727.5456