MvcMailer
MvcMailer copied to clipboard
System.InvalidOperationException: The view at '~/Views/UserMailer/CustomEmail.cshtml' must derive from WebViewPage, or WebViewPage<TModel>.
Does anyone have this issue? I have the code working on my local. I have it working on Windows Server 2008 but I can't get this to work on Windows Server 2012. I am using version 1.1 with vs 2010. I also tried adding @inherits System.Web.Mvc.WebViewPage to each view and copy web.config as many site suggest and still can't get this to work.