你的工程缺少licenses.licx信息,你可以按照下面的步骤对WebApplication1进行以下操作:
1、以系统管理员的身份运行Visual Studio 2010,并打开WebApplication1
2、删除References目录中和ActiveReports相关的四个DLL
3、添加一个ActiveReports文件,添加时注意选择(code base)的那种文件
4、此时在Properties目录下有会自动生成一个licenses.licx文件,其中有会有这样一条信息- DataDynamics.ActiveReports.ActiveReport, ActiveReports6, Version=6.2.3681.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff
复制代码 5、检查Web.config文件,至少应该包含以下和ActiveReports相关的信息- <?xml version="1.0" encoding="utf-8"?>
- <!--
- 有关如何配置 ASP.NET 应用程序的详细消息,请访问
- [url]http://go.microsoft.com/fwlink/?LinkId=169433[/url]
- -->
- <configuration>
- <system.web>
- <compilation debug="true" targetFramework="4.0" />
- <httpHandlers>
- <!-- ********** ActiveReports HttpHandler Configuration ********** -->
- <add verb="*" path="*.rpx" type="DataDynamics.ActiveReports.Web.Handlers.RpxHandler, ActiveReports.Web, Version=6.2.3681.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff"/>
- <add verb="*" path="*.ActiveReport" type="DataDynamics.ActiveReports.Web.Handlers.CompiledReportHandler, ActiveReports.Web, Version=6.2.3681.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff"/>
- <add verb="*" path="*.ArCacheItem" type="DataDynamics.ActiveReports.Web.Handlers.WebCacheAccessHandler, ActiveReports.Web, Version=6.2.3681.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff"/>
- </httpHandlers>
- </system.web>
- <!-- ********** 在System.WebServer的handlers中添加三项配置信息 ********** -->
- <system.webServer>
- <handlers>
- <add name="ar rpx" path="*.rpx" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
- <add name="ar cache" path="*.ArCacheItem" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
- <add name="AR" path="*.ActiveReport" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv4.0,bitness32" />
- </handlers>
- </system.webServer>
- </configuration>
复制代码 6、通过工程的右键菜单,选择【发布/Publish...】发布工程,此时是在你开发的机器上发布,发布成功之后会在wwwroot中得到一个发布包,你将这个发布包拷贝到服务器上试一下。 |