使用指令找不到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
})当我将Embed Types属性设置为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我参考了民间集会:
我错过了推荐信吗?
我正在使用MVC5.1
问候
发布于 2014-04-14 07:25:16
解决方案:程序集属性CopyLocal => true
https://stackoverflow.com/questions/22832168
复制相似问题