Reputation: 93
i have added a key in resource file in silverlight project. after building this project and replaced its XAP file clientBin in application it is giving me the following error
"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)
Please help me out from this problem as i am stucked in it and not finding any solution.
Upvotes: 1
Views: 1822
Reputation: 93
I got the issue. Whenever i add a new key in resource file in resource.resx.vb file default constructor is changed to Friend instead of Public. so it is causing a problem. I just changed it to Public and everything is going fine.
Upvotes: 3