Getting NLocalizer: Method Translate(String, FormMain, Translation) is not found in runtime translator class NLocalizer.RuntimeTranslator error. Please help

Feb 20, 2014 at 8:04 AM
Here is the stack trace.
at NLocalizer.RuntimeCompiler.Invoke(Type type, String methodName, Type[] types, Object[] parameters) in c:\NLocalizer\RuntimeCompiler.cs:line 639
   at NLocalizer.RuntimeCompiler.Translate(Type type, String language, Object obj, Translation translation) in c:\NLocalizer\RuntimeCompiler.cs:line 706
   at NLocalizer.Translator.Translate(String language, Object obj) in c:\NLocalizer\Translator.cs:line 120
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
Coordinator
Mar 4, 2014 at 5:59 PM
Send me Your source code please. I will figure out what's going on.
Mar 5, 2014 at 4:14 AM
I figured out the problem. Problem is that my Main Form class is sealed. I unsealed it now and problem is solved but i have another problem. When i try to use NLocalizer with forms that have constructer with 1 or more arguments it throws following error.

"Does not contain a constructor that takes 0 arguments. Please correct .lang file." So how can i represent classes with constructor that takes arguments in lang files?

Thanks for the reply.