Hi All,
I am trying to create RuleModel class dynamically.
var myType = MyTypeBuilder.CompileResultType();
ViewBag.Rule = RuleModel.Create(myType);
During runtime it rases an exception for the following line:
" Html.CodeEffects().Scripts().Render();"
Exception message:
Could not find or load assembly "MyDynamicType, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null". Error message: Could not load file or assembly 'MyDynamicType, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. (Error S103)
Can you please quide me how to create RuleModel class dynamically.
Thanks & Regards,
Swathi N