This project has moved. For the latest updates, please go here.

InvalidDataContractException

Topics: Developer Forum, Project Management Forum, User Forum
Jan 11, 2012 at 10:21 AM

Hi all,

I've successfully installed the latest version 2.0 Beta 4 on a Windows Server 2003 R2 system.

When I start the program, nothing happens.

The CurrentLog.txt file contains the exceptions below. I think, the ERROR message isn't the problem (the system has no connection to the internet) but the FATAL exception.

The Microsoft :NET Framework 3.5 is installed (parallel to 2.0 and 3.0, don't know whether this is a problem).
I cannot find any Redist Package.

I would appreciate any help!


ERROR 2012-01-11 11:34:22,024 3265ms Terminals PerformCheck - Failed during CheckForCodeplexRelease. System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.
at Unified.Rss.RssFeed.read(String url, HttpWebRequest request, RssFeed oldFeed) at Unified.Rss.RssFeed.Read(String url)
at Terminals.Updates.UpdateManager.CheckForCodeplexRelease() at Terminals.Updates.UpdateManager.PerformCheck(Object state)

FATAL 2012-01-11 11:34:22,243 3484ms Terminals RunMainForm - Main Form Execption
System.Runtime.Serialization.InvalidDataContractException: Type 'Terminals.CommandLine.CommandLineArgs' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute.
at System.Runtime.Serialization.DataContract.DataContractCriticalHelper.ThrowInvalidDataContractException(String message, Type type)
at System.Runtime.Serialization.DataContract.DataContractCriticalHelper.CreateDataContract(Int32 id, RuntimeTypeHandle typeHandle, Type type)
at System.Runtime.Serialization.DataContract.DataContractCriticalHelper.GetDataContractSkipValidation(Int32 id, RuntimeTypeHandle typeHandle, Type type)
at System.Runtime.Serialization.DataContract.GetDataContractSkipValidation(Int32 id, RuntimeTypeHandle typeHandle, Type type)
at System.Runtime.Serialization.DataContract.GetDataContract(RuntimeTypeHandle typeHandle, Type type, SerializationMode mode)
at System.Runtime.Serialization.DataContract.GetDataContract(RuntimeTypeHandle typeHandle, Type type)
at System.Runtime.Serialization.DataContract.GetDataContract(Type type) at System.Runtime.Serialization.XsdDataContractExporter.GetSchemaTypeName(Type type) at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.ValidateDataContractType(Type type)
at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.CreatePartInfo(MessagePartDescription part, OperationFormatStyle style, DataContractSerializerOperationBehavior serializerFactory)
at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.CreateMessageInfo(DataContractFormatAttribute dataContractFormatAttribute, MessageDescription messageDescription, DataContractSerializerOperationBehavior serializerFactory)
at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter..ctor(OperationDescription description, DataContractFormatAttribute dataContractFormatAttribute, DataContractSerializerOperationBehavior serializerFactory)
at System.ServiceModel.Description.DataContractSerializerOperationBehavior.GetFormatter(OperationDescription operation, Boolean& formatRequest, Boolean& formatReply, Boolean isProxy)
at System.ServiceModel.Description.DataContractSerializerOperationBehavior.System.ServiceModel.Description.IOperationBehavior.ApplyDispatchBehavior(OperationDescription description, DispatchOperation dispatch)
at System.ServiceModel.Description.DispatcherBuilder.BindOperations(ContractDescription contract, ClientRuntime proxy, DispatchRuntime dispatch) at System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost)
at System.ServiceModel.ServiceHostBase.InitializeRuntime() at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open()
at Terminals.SingleInstanceApplication.Start(MainForm mainForm) at Terminals.Program.RunMainForm(CommandLineArgs commandLine)
INFO 2012-01-11 11:34:22,274 3515ms Terminals Main - -------------------------------Terminals 2.0 Beta 4 Stopped-------------------------------

Coordinator
Jan 11, 2012 at 5:33 PM

Hi, thats my responsibility. New task was created http://terminals.codeplex.com/workitem/32067. Thank you for reporting.