您好!您现在的问题是在本地运行都可以正常运行,但是发布到服务器后就出在Webview找不到的问题。如果是这样参考下面:
首先找到项目中的license文件,看看有没有如下信息
- GrapeCity.ActiveReports.SectionReport, GrapeCity.ActiveReports.v12, Version=12.0.11775.2, Culture=neutral, PublicKeyToken=cc4967777c49a3ff
- GrapeCity.ActiveReports.PageReport, GrapeCity.ActiveReports.v12, Version=12.0.11775.2, Culture=neutral, PublicKeyToken=cc4967777c49a3ff
- GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport, GrapeCity.ActiveReports.Export.Pdf.v12, Version=12.0.11775.2, Culture=neutral, PublicKeyToken=cc4967777c49a3ff
- GrapeCity.ActiveReports.Web.WebViewer, GrapeCity.ActiveReports.Web.v12, Version=12.0.11775.2, Culture=neutral, PublicKeyToken=cc4967777c49a3ff
复制代码 然后打开WebConfig文件,看看对应的AR的引用信息是否存在。
- <system.web>
- <compilation debug="true" targetFramework="4.5.2">
- <assemblies>
- <add assembly="GrapeCity.ActiveReports.Extensibility.v12, Version=12.0.11775.2, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
- <add assembly="GrapeCity.ActiveReports.Diagnostics.v12, Version=12.0.11775.2, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
- <add assembly="GrapeCity.ActiveReports.Chart.v12, Version=12.0.11775.2, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
- <add assembly="GrapeCity.ActiveReports.Document.v12, Version=12.0.11775.2, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
- <add assembly="GrapeCity.ActiveReports.Export.Html.v12, Version=12.0.11775.2, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
- <add assembly="GrapeCity.ActiveReports.Export.Pdf.v12, Version=12.0.11775.2, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
- <add assembly="GrapeCity.ActiveReports.Export.Image.v12, Version=12.0.11775.2, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
- <add assembly="GrapeCity.ActiveReports.v12, Version=12.0.11775.2, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
- <add assembly="GrapeCity.ActiveReports.Web.v12, Version=12.0.11775.2, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
- <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
- </assemblies>
复制代码
如果上面的信息都没问题,在引用中找到AR对应的引用,然后所有的AR的引用都设置其属性 复制到本地为true
然后重新调试生成发布。
|