'System.Windows.Markup.XamlParseException:在类型 'Resources' 上找不到匹配的构造函数



我在silverlight项目的资源文件中添加了一个键。在构建此项目并在应用程序中替换其XAP文件clientBin后,它给了我以下错误

"An exception occurred while initializing module 'SubmissionRequerimentsVM'. 
- The exception message was: An exception has occurred while trying to add a view to region 'WorkAreaRegion'. 
- The most likely causing exception was was: 'System.Windows.Markup.XamlParseException: No matching constructor found on type 'CAN.AMI.Contracts.RenewalsSubmissionRequeriments.My.Resources.Resources'. [Line: 22 Position: 40] ---> System.MissingMethodException: No parameterless constructor defined for this object.
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache)

请帮助我从这个问题,因为我被困在它,没有找到任何解决方案。

我明白了。每当我在resource.resx.vb文件中的资源文件中添加新密钥时,默认构造函数将更改为Friend而不是Public。所以这引起了一个问题。我只是把它改成了Public,一切都很好

最新更新