1

using 指令找不到 Stimulsoft 程序集。

@using System.Web.UI.WebControls
@using NursingHomeStock.Resources
@using Stimulsoft.Report.Mvc

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.Title = GlobalResources.Reports;
}

<h2>@ViewBag.Title</h2>

@Html.Stimulsoft().StiMvcViewerFx(new StiMvcViewerFxOptions
{
    ActionGetReportSnapshot = "GetStatsForNursingHome",
    ActionGetLocalization = "GetLocalization",
    ActionExportReport = "ExportReport",
    Width = Unit.Percentage(100),
    Height = Unit.Pixel(600),
    Zoom = 75
})

当我将嵌入互操作类型属性设置为 true 时,可以找到程序集,但在编译时出现以下错误:

Error   1   Cannot embed interop types from assembly 'c:\svn\lib\Stimulsoft\2013.3.1800\Stimulsoft.Report.Mvc.dll' because it is missing either the 'ImportedFromTypeLibAttribute' attribute or the 'PrimaryInteropAssemblyAttribute' attribute c:\svn\lib\Stimulsoft\2013.3.1800\Stimulsoft.Report.Mvc.dll NursingHomeStock

我引用了以下程序集:

  • Stimulsoft.Base
  • 刺激软件报告
  • Stimulsoft.Report.Mvc

我缺少参考吗?

我正在使用 MVC5.1

问候

4

1 回答 1

1

解决方案:程序集属性 CopyLocal => true

于 2014-04-14T07:25:16.447 回答