When using the NinjectMVC3 attribute WebActivator.PreApplicationStartMethodin my web application
[assembly: WebActivator.PreApplicationStartMethod(typeof(MyProject.App_Start.NinjectMVC3), "Start")]
I see the following warning in each of the source editor files:
xxx.cshtml: ASP.NET runtime error: start of pre-application initialization method Launch as WebActivator.ActivationManager exception with the following error message: The exception was thrown by the call target .. xxx.cshtml 1 1
it appears as bluish in the first line of each of my view files (for example, ad @usingor @model). Please note that the application works fine, the problem is only when editing the source files of my view (visual error / warning analysis in real time).
I can check what WebActivator.PreApplicationStartMethodis the reason by commenting on this.
How can i fix this?
source
share