是否有人在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
中工作,请概述成功配置它所涉及的步骤,特别是以下smtp配置的Asp.Net 5
等效项。< / p>
<configuration>
...
<system.net>
<mailSettings>
<smtp deliveryMethod="network">
<network host="example.org" port="25" defaultCredentials="true"/>
</smtp>
</mailSettings>
</system.net>
...
</configuration>