首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Stimulsoft MVC 5

Stimulsoft MVC 5
EN

Stack Overflow用户
提问于 2014-04-03 08:38:32
回答 1查看 1.2K关注 0票数 1

使用指令找不到Stimulsoft程序集。

代码语言:javascript
复制
@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时,可以找到程序集,但在编译时我得到以下错误:

代码语言:javascript
复制
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
  • Stimulsoft.Report.Mvc

我错过了推荐信吗?

我正在使用MVC5.1

问候

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-04-14 07:25:16

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22832168

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档