C# 正在调用类型„;-的构造函数。l1lililili”;与链接引起的异常的设置限制兼容

C# 正在调用类型„;-的构造函数。l1lililili”;与链接引起的异常的设置限制兼容,c#,xaml,C#,Xaml,我尝试将我的应用程序作为发行版运行,并出现以下错误apeard。我在stacoverflow上看到过使用XMLserializer的线程,但没有帮助。什么是班级?-.l1lililililili,它来自哪里?在调试模式下,应用程序可以毫无问题地运行。消息以某种方式被翻译成了主题 System.Windows.Markup.XamlParseException was unhandled Message=Wywołanie konstruktora dla typu „-.l1lilliIilil

我尝试将我的应用程序作为发行版运行,并出现以下错误apeard。我在stacoverflow上看到过使用XMLserializer的线程,但没有帮助。什么是班级?-.l1lililililili,它来自哪里?在调试模式下,应用程序可以毫无问题地运行。消息以某种方式被翻译成了主题

System.Windows.Markup.XamlParseException was unhandled
Message=Wywołanie konstruktora dla typu „-.l1lilliIililI” zgodnego z określonymi ograniczeniami wiązania spowodowało wyjątek.
Source=PresentationFramework
LineNumber=0
LinePosition=0
StackTrace:
   w System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   w System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   w System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   w System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   w System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
   w System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
   w System.Windows.Application.DoStartup()
   w System.Windows.Application.<.ctor>b__1(Object unused)
   w System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   w MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   w System.Windows.Threading.DispatcherOperation.InvokeImpl()
   w System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   w System.Threading.ExecutionContext.runTryCode(Object userData)
   w System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   w System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   w System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   w System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   w System.Windows.Threading.DispatcherOperation.Invoke()
   w System.Windows.Threading.Dispatcher.ProcessQueue()
   w System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   w MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   w MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   w System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   w MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   w System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   w MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   w MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   w System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   w System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   w System.Windows.Application.RunDispatcher(Object ignore)
   w System.Windows.Application.RunInternal(Window window)
   w System.Windows.Application.Run(Window window)
   w System.Windows.Application.Run()
   w  .()
   w System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   w System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   w Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   w System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   w System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   w System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   w System.Threading.ThreadHelper.ThreadStart()
InnerException: System.ArgumentException
   Message=Identyfikator ' ' nie jest zgodny z CLS.
Nazwa parametru: ident
   Source=System.Xml
   ParamName=ident
   StackTrace:
        w System.Xml.Serialization.CodeIdentifier.CheckValidIdentifier(String ident)
        w System.Xml.Serialization.CodeIdentifier.EscapeKeywords(String identifier, CodeDomProvider codeProvider, StringBuilder sb)
        w System.Xml.Serialization.CodeIdentifier.GetCSharpName(Type t, Type[] parameters, Int32 index, StringBuilder sb)
        w System.Xml.Serialization.CodeIdentifier.GetCSharpName(Type t)
        w System.Xml.Serialization.CodeIdentifier.GetCSharpName(Type t, Type[] parameters, Int32 index, StringBuilder sb)
        w System.Xml.Serialization.CodeIdentifier.GetCSharpName(Type t)
        w System.Xml.Serialization.TypeDesc.get_CSharpName()
        w System.Xml.Serialization.XmlSerializationWriterCodeGen.WriteElements(String source, String enumSource, ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, String arrayName, Boolean writeAccessors, Boolean isNullable)
        w System.Xml.Serialization.XmlSerializationWriterCodeGen.WriteMember(String source, String choiceSource, ElementAccessor[] elements, TextAccessor text, ChoiceIdentifierAccessor choice, TypeDesc memberTypeDesc, Boolean writeAccessors)
        w System.Xml.Serialization.XmlSerializationWriterCodeGen.GenerateTypeElement(XmlTypeMapping xmlTypeMapping)
        w System.Xml.Serialization.XmlSerializationWriterCodeGen.GenerateElement(XmlMapping xmlMapping)
        w System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
        w System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace)
        w System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
        w System.Xml.Serialization.XmlSerializer..ctor(Type type)
        w  .[T](String )
        w  .()
        w  .()
        w -.l1lilliIililI.()
        w -.l1lilliIililI..ctor()
   InnerException: 
System.Windows.Markup.XamlParseException未处理
Message=Wywołanie konstruktora dla typu“lilliiilili”zgodnego z określonymi ograniczeniami wiązania spowodowało wyjątek。
Source=PresentationFramework
行号=0
LinePosition=0
堆栈跟踪:
w System.Windows.Markup.XamlReader.RewrapException(异常e、IXamlLineInfo、Uri baseUri)
w System.Windows.Markup.WpfXamlLoader.Load(XamlReader XamlReader,IXamlObjectWriterFactory writerFactory,Boolean skipJournaledProperties,Object rootObject,XamlObjectWriterSettings设置,Uri baseUri)
w System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader XamlReader、Boolean skipJournaledProperties、Object rootObject、XamlAccessLevel accessLevel、Uri baseUri)
w System.Windows.Markup.XamlReader.LoadBaml(Stream-Stream,ParserContext-ParserContext,Object-parent,Boolean-closeStream)
w System.Windows.Application.LoadBamlStreamWithSyncInfo(流,ParserContext pc)
w System.Windows.Application.LoadComponent(Uri resourceLocator,布尔bSkipJournaledProperties)
w System.Windows.Application.DoStartup()
w System.Windows.Application.b___1(未使用的对象)
w System.Windows.Threading.ExceptionWrapper.InternalRealCall(委托回调、对象参数、Int32 numArgs)
w MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(对象源、委托方法、对象参数、Int32 numArgs、委托catchHandler)
w System.Windows.Threading.DispatcherOperation.InvokeImpl()
w System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(对象状态)
w System.Threading.ExecutionContext.runTryCode(对象用户数据)
w System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode代码、CleanupCode backoutCode、Object userData)
w System.Threading.ExecutionContext.RunInternal(ExecutionContext ExecutionContext,ContextCallback回调,对象状态)
w System.Threading.ExecutionContext.Run(ExecutionContext ExecutionContext,ContextCallback回调,对象状态,布尔ignoreSyncCtx)
w System.Threading.ExecutionContext.Run(ExecutionContext ExecutionContext,ContextCallback回调,对象状态)
w System.Windows.Threading.DispatcherOperation.Invoke()
w System.Windows.Threading.Dispatcher.ProcessQueue()
w System.Windows.Threading.Dispatcher.WndProcHook(IntPtr-hwnd、Int32-msg、IntPtr-wParam、IntPtr-lParam、Boolean和handled)
w MS.Win32.HwndWrapper.WndProc(IntPtr-hwnd、Int32-msg、IntPtr-wParam、IntPtr-lParam、布尔值和已处理值)
w MS.Win32.HwndSubclass.DispatcherCallbackOperation(对象o)
w System.Windows.Threading.ExceptionWrapper.InternalRealCall(委托回调、对象参数、Int32 numArgs)
w MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(对象源、委托方法、对象参数、Int32 numArgs、委托catchHandler)
w System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority优先级、TimeSpan超时、委托方法、对象参数、Int32 numArgs)
w MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd、Int32 msg、IntPtr wParam、IntPtr lParam)
w MS.Win32.UnsafentiveMethods.DispatchMessage(消息和消息)
w System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame框架)
w System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame框架)
w System.Windows.Application.RunDispatcher(对象忽略)
w System.Windows.Application.RunInternal(窗口)
w System.Windows.Application.Run(窗口)
w System.Windows.Application.Run()
w.()
w System.AppDomain.\u nExecuteAssembly(运行时程序集,字符串[]args)
w System.AppDomain.ExecuteAssembly(字符串汇编文件、证据汇编安全性、字符串[]args)
w Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
w System.Threading.ThreadHelper.ThreadStart\u上下文(对象状态)
w System.Threading.ExecutionContext.Run(ExecutionContext ExecutionContext,ContextCallback回调,对象状态,布尔ignoreSyncCtx)
w System.Threading.ExecutionContext.Run(ExecutionContext ExecutionContext,ContextCallback回调,对象状态)
w System.Threading.ThreadHelper.ThreadStart()
InnerException:System.ArgumentException
消息=标识符“”nie jest zgodny z CLS。
Nazwa参数:识别
Source=System.Xml
ParamName=ident
堆栈跟踪:
w System.Xml.Serialization.CodeIdentifier.CheckValidIdentifier(字符串标识符)
w System.Xml.Serialization.CodeIdentifier.EscapeKeywords(字符串标识符、CodeDomProvider、codeProvider、StringBuilder sb)
w System.Xml.Serialization.CodeIdentifier.GetCSharpName(类型t,类型[]参数,Int32索引,StringBuilder sb)
w System.Xml.Serialization.CodeIdentifier.GetCSharpName(类型t)
w System.Xml.Serialization.CodeIdentifier.GetCSharpName(类型t,类型[]参数,Int32索引,StringBuilder sb)
w System.Xml.Serialization.CodeIdentifier.GetCSharpName(类型t)
w System.Xml.Serialization.TypeDesc.get_CSharpName()
w System.Xml.Serialization.XmlSerializationWriterCodeGen.WriteElements(字符串源、字符串枚举源、ElementAccessor[]元素、TextAccessor文本、ChoiceIdentifierAccessor选项、字符串数组名称、布尔WriteAccessor、布尔值isNullable)
w System.Xml.Serialization.XmlSerializationWriterCodeGen.WriteMember(字符串源、字符串选项源、ElementAccessor[]元素、TextAccessor文本、ChoiceIdentifierAccessor选项、TypeDesc成员TypeDesc、Boolean WriteAccessor)
w System.Xml.Serialization.XmlSerializationWriterCodeGen.GenerateTypeElement(XmlT