有人成功用过Postal
吗Asp.Net 5
?我尝试Postal.Mvc5
Nuget
在项目中安装包MVC 6
,虽然项目编译它给出了运行时错误,具体如下:
An unhandled exception occurred while processing the request.
FileNotFoundException: Could not load file or assembly 'System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
System.Web.Mvc.BuildManagerViewEngine..ctor(IViewPageActivator viewPageActivator, IResolver`1 activatorResolver, IDependencyResolver dependencyResolver, VirtualPathProvider pathProvider)
TypeInitializationException: The type initializer for 'System.Web.Mvc.ViewEngines' threw an exception.
System.Web.Mvc.ViewEngines.get_Engines()
如果有人设法开始Postal
工作MVC 6
,请概述成功配置它所涉及的步骤,特别是Asp.Net 5
与以下 smtp 配置等效的步骤。
<configuration>
...
<system.net>
<mailSettings>
<smtp deliveryMethod="network">
<network host="example.org" port="25" defaultCredentials="true"/>
</smtp>
</mailSettings>
</system.net>
...
</configuration>