0

例外:

Attempt by method 'System.Web.Mvc.VirtualPathProviderViewEngine.GetPath(System.Web.Mvc.ControllerContext, System.String[], System.String[], System.String, System.String, System.String, System.String, Boolean, System.String[] ByRef)' to access method 'System.Web.Mvc.VirtualPathProviderViewEngine.get_DisplayModeProvider()' failed.

由代码抛出:

return Populate(x =>
            {
                x.ViewName = "MyView";
                x.Subject = "[" + vm.FriendlyName + "] [" + DepResolver.DaemonAppSettingsHelper().EnvironmentName + "] [Status: " + vm.FriendlySuceeded + "]";
                x.To.Add(DepResolver.DaemonAppSettingsHelper().TaskEmailRecipient);
            });

我该如何解决这个问题>?

4

1 回答 1

0

我在将项目更新到包含 MVCMailer 的 MVC5 时遇到了困难。以下版本安装为我解决了它。

安装包 MvcMailer-vs2013 -Pre

此处的进一步说明:https ://github.com/smsohan/MvcMailer/wiki/MvcMailer-Step-by-Step-Guide

于 2014-11-04T10:18:05.597 回答