把需要以用到的以及你自己编译出的dll放到Website对应目录中的bin中。
把你的页面文件部署到需要的路径下。
注意看有没有一个叫App_Licenses.dll的文件,这个比较关键。
如果没有这个文件,可以参考文档。摘录见下:
Licensing Web Forms Projects
To license Web Forms Projects
1.Data Dynamics Analysis must be installed and licensed on a Development machine first. Follow the above steps under "Licensing a Machine for Data Dynamics Analysis" to license this machine.
2.Create a new project in Microsoft Visual Studio or open an existing Microsoft Visual Studio project, once installation is complete.
3.Make sure that the file licenses.licx got automatically generated in the application's root directory. The file licenses.licx contains the information on all licensed classes of the project and is usually generated automatically when the PivotView control is dragged onto a form.
Make sure that the file licenses.licx contains the line about the DDA class (as a comma separated class name and assembly name).
Example: DataDynamics.Analysis.Web.PivotView, DataDynamics.Analysis.Web
4. If the file licenses.licx does not contain the line "DataDynamics.Analysis.Web.PivotView, DataDynamics.Analysis.Web", then add it to the file manually.
5. If the file licenses.licx does not exist, then create a file with this name, add it to the project and insert the line "DataDynamics.Analysis.Web.PivotView, DataDynamics.Analysis.Web" into the file.
6. Save the file licenses.licx.
7. Right-click on the file licenses.licx and select Build Runtime licenses from the appeared menu. The file App_Licenses.dll will be generated in the Bin folder inside the application root folder.
8. Go to the Solution Explorer and make sure that the file App_Lisenses.dll got generated and is displayed under the bin directory. The web application will be licensed under the condition that it has this file containing the license.
9. Select Build/Build Website in the Microsoft Visual Studio menu.
10. The web application is now licensed on the production server and no evaluation banners will show up on views shown through this application. |