DownmarkerWPF
DownmarkerWPF copied to clipboard
Publish Post Error
- Add a blog address(I'm using Chinese)
- Then Publish a post,It gives me an error message box with the information below:
(Inner Exception) (Inner Exception) (Inner Exception) Exception Source: mscorlib Exception Type: System.Text.DecoderFallbackException Exception Message: 无法将位于索引 6 处的字节 [E5][9B] 由指定的代码页转换为 Unicode。 Exception Target Site: Throw
---- Stack Trace ---- System.Text.DecoderExceptionFallbackBuffer.Throw(Byte[] bytesUnknown, Int32 index) MarkPad.exe: N 3100282 System.Text.DecoderExceptionFallbackBuffer.Fallback(Byte[] bytesUnknown, Int32 index) MarkPad.exe: N 00008 System.Text.DecoderFallbackBuffer.InternalFallback(Byte[] bytes, Byte* pBytes, Char_& chars) MarkPad.exe: N 00041 System.Text.UTF8Encoding.GetChars(Byte_ bytes, Int32 byteCount, Char* chars, Int32 charCount, DecoderNLS baseDecoder) MarkPad.exe: N 9643625 System.Text.UTF8Encoding.GetChars(Byte[] bytes, Int32 byteIndex, Int32 byteCount, Char[] chars, Int32 charIndex) MarkPad.exe: N 00210 System.Xml.XmlConverter.ToChars(Byte[] buffer, Int32 offset, Int32 count, Char[] chars, Int32 charOffset) MarkPad.exe: N 00065
(Outer Exception) Exception Source: System.Runtime.Serialization Exception Type: System.Xml.XmlException Exception Message: “博客??,”包含无效的 UTF8 字节。 Exception Target Site: ToChars 未将对象引用设置到对象的实例。
(Outer Exception) Exception Source: System.Runtime.Serialization Exception Type: System.Runtime.Serialization.SerializationException Exception Message: 反序列化对象 属于类型 System.Collections.Generic.List`1[[MarkPad.Services.Settings.BlogSetting, MarkPad.Services, Version=0.9.0.1, Culture=neutral, PublicKeyToken=null]] 时出现错误。“博客??,”包含无效的 UTF8 字节。 Exception Target Site: ReadObjectHandleExceptions
---- Stack Trace ----
System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
MarkPad.exe: N 00392
System.Runtime.Serialization.Json.DataContractJsonSerializer.ReadObject(XmlDictionaryReader reader)
MarkPad.exe: N 00043
System.Runtime.Serialization.Json.DataContractJsonSerializer.ReadObject(Stream stream)
MarkPad.exe: N 00107
MarkPad.Services.Settings.MarkPadSettings.GetBlogs()
MarkPadSettings.cs: line 0029, col 13, IL 0055
MarkPad.Settings.SettingsViewModel.Initialize()
MarkPad.exe: N 00271
MarkPad.Shell.ShellViewModel..ctor(IDialogService dialogService, IWindowManager windowManager, ISettingsProvider settingsService, IEventAggregator eventAggregator, MDIViewModel mdi, SettingsViewModel settingsViewModel, UpdaterViewModel updaterViewModel, Func1 documentCreator, Func
1 openFromWebCreator, Func`1 spellCheckExtensionCreator)
MarkPad.exe: N 00136
(Outer Exception) Date and Time: 2013/3/18 14:19:57 OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1
Application Domain: MarkPad.exe Assembly Codebase: file:///C:/Users/zhaishidan/AppData/Local/MarkPad/MarkPad.exe Assembly Full Name: MarkPad, Version=0.9.0.1, Culture=neutral, PublicKeyToken=null Assembly Version: 0.9.0.1 Assembly Build Date: 2012/4/22 13:38:32
Exception Source: Autofac
Exception Type: Autofac.Core.DependencyResolutionException
Exception Message: An exception was thrown while invoking the constructor 'Void .ctor(MarkPad.Services.Interfaces.IDialogService, Caliburn.Micro.IWindowManager, MarkPad.Services.Settings.ISettingsProvider, Caliburn.Micro.IEventAggregator, MarkPad.MDI.MDIViewModel, MarkPad.Settings.SettingsViewModel, MarkPad.Updater.UpdaterViewModel, System.Func1[MarkPad.Document.DocumentViewModel], System.Func
1[MarkPad.OpenFromWeb.OpenFromWebViewModel], System.Func`1[MarkPad.MarkPadExtensions.SpellCheck.SpellCheckExtension])' on type 'ShellViewModel'.
Exception Target Site: Instantiate
---- Stack Trace ----
Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
MarkPad.exe: N 00261
Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters) MarkPad.exe: N 00182 Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable
1 parameters)
MarkPad.exe: N 00048
Autofac.Core.Resolving.InstanceLookup.Execute()
MarkPad.exe: N 00048
Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable1 parameters) MarkPad.exe: N 00164 Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable
1 parameters)
MarkPad.exe: N 00070
Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable1 parameters) MarkPad.exe: N 00155 Autofac.Core.Container.ResolveComponent(IComponentRegistration registration, IEnumerable
1 parameters)
MarkPad.exe: N 00017
Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable1 parameters, Object& instance) MarkPad.exe: N 00072 Autofac.ResolutionExtensions.TryResolve(IComponentContext context, Type serviceType, Object& instance) MarkPad.exe: N 00070 Caliburn.Micro.Autofac.AutofacBootstrapper
1.GetInstance(Type service, String key)
MarkPad.exe: N 00043
Caliburn.Micro.Bootstrapper.DisplayRootViewFor(Type viewModelType)
Bootstrapper.cs: line 0182, col 13, IL 0017
MarkPad.AppBootstrapper.OnStartup(Object sender, StartupEventArgs e)
MarkPad.exe: N 00031
System.Windows.Application.OnStartup(StartupEventArgs e)
MarkPad.exe: N 00132
System.Windows.Application.<.ctor>b__1(Object unused)
MarkPad.exe: N 00043
System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
MarkPad.exe: N 00082
MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
MarkPad.exe: N 00065
Looks like an issue with processing XML containing unexpected text.
Are you able to provide the URL (no need to provide the credentials) so that I can test it out here?