邮政在ASP .Net 5(Mvc 6)

时间:2015-11-22 20:57:51

标签: c# asp.net-core asp.net-core-mvc postal

是否有人在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()

如果有人设法让PostalMVC 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>

0 个答案:

没有答案