只要把*.licx的文件删除重新编译就可以成功,有的还说,要把什么什么破解版的重新编译成DLL,但没一个是可以成功的!!!!!!!~~~~让我郁闷了个把小时.
百般摆弄未果,心情低落.干脆用记事本打开*.licx来看看~这Y到底是什么东西,结果发现,里面写的全是第三方插件的指定DLL,如下:
DataDynamics.ActiveReports.ActiveReport, ActiveReports, Version=4.3.0.1261, Culture=neutral, PublicKeyToken=cc4967777c49a3ff
DevExpress.XtraBars.BarManager, DevExpress.XtraBars.v7.1, Version=7.1.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraGrid.GridControl, DevExpress.XtraGrid.v7.1, Version=7.1.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraEditors.LabelControl, DevExpress.XtraEditors.v7.1, Version=7.1.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraCharts.ChartControl, DevExpress.XtraCharts.v7.1.UI, Version=7.1.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraReports.UserDesigner.XRDesignDockManager, DevExpress.XtraReports.v7.1, Version=7.1.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraEditors.ButtonEdit, DevExpress.XtraEditors.v7.1, Version=7.1.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraTreeList.TreeList, DevExpress.XtraTreeList.v7.1, Version=7.1.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4
DevExpress.Xpo.XPCollection, DevExpress.Xpo.v7.1, Version=7.1.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraTab.XtraTabControl, DevExpress.XtraEditors.v7.1, Version=7.1.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4
DevExpress.XtraEditors.ComboBoxEdit, DevExpress.XtraEditors.v7.1, Version=7.1.1.0, Culture=neutral, PublicKeyToken=79868b8147b5eae4
哈~我的电脑里只装了DevExpress,没装ActiveReports.只是旧电脑里装有,把这句
DataDynamics.ActiveReports.ActiveReport, ActiveReports, Version=4.3.0.1261, Culture=neutral, PublicKeyToken=cc4967777c49a3ff
删除+保存+关闭!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!重新生成解决方案~终于程序运行成功!!!
另外一种情况是:
解决方法:
1、把项目文件夹下Properties文件夹下的licenses.licx文件删除,重新编译即可;
2、文本方式打开*.csproj文件,在文件中查找licenses.licx字样,删除对应节点。
注意:还有一种情况就是Properties文件夹下已经没有licenses.licx文件了,程序还是报这个错,这个时候你只需要重命名一个空的txt文件为licenses.licx再放入Properties文件夹,问题也可解决。
希望我的这点小经历可以让大家得到帮助,其实并没有网上说的这么复杂,删除也不一定可以成功!!!!!!
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/htpower/archive/2007/10/27/1846612.aspx