1
收到此錯誤:如何在DLL引用中更具體?
Parser Error Message: The type 'System.Web.Mvc.ViewPage' is
ambiguous: it could come from assembly
'\\vmware-host\shared folders\documents\visual studio 2015\Projects\ClientApp\ClientApp\bin\
Boilerplate.Web.Mvc5.Sample.DLL'
or from assembly
'\\vmware-host\shared folders\documents\visual studio 2015\Projects\ClientApp\ClientApp\bin\
System.Web.Mvc.DLL'.
Please specify the assembly explicitly in the type name.
從這個代碼:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="System.Web.Mvc.ViewPage" %>
你怎麼能在一個DLL參考具體些嗎?
僅供參考,我的控制器是MVC 5控制器的動作,看起來像這樣:
public ActionResult Index()
{
var view = new WebFormView(this.ControllerContext, "~/Views/Conduces/Index.aspx");
return View(view);