Webbklienten slutade fungera

Kommentarer, hjälp och tips angående betatest av Windows-versionen av Switch King (v3.0)
Locked
claes_hellgren
2 stars
2 stars
Posts: 20
Joined: Fri 07 Jan 2011, 18:18
Location: Katrineholm
Contact:

Webbklienten slutade fungera

Post by claes_hellgren » 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:

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 
Tellstick Duo | 16 Enheter | 6 Datakällor

Martin
Administrator
Administrator
Posts: 2655
Joined: Tue 09 Nov 2010, 20:25

Re: Webbklienten slutade fungera

Post by Martin » Wed 29 Aug 2012, 21:55

Martin | Switch King

Locked

Who is online

Users browsing this forum: No registered users and 2 guests