0

VS2005 で作成された Web サイトがあります。

最近、Web サイトを 2.0 フレームワークの VS2008 にアップグレードしました。

Web サイトのコンパイル中にコンパイル エラーが発生しています。つまり、Licenses.licx ファイルがコンパイルされていません。コンパイルすると、AppLicenses.dll が再生成されます。

1 つのクラスと名前空間 (つまり、OSADirectLicensing.OSADirectLicensedClass、OSADirectLicensing) を含む Licensing.licx ファイル。

コンパイルエラーは次のとおりです。

Error 1 C:\Program Files\Sharp\Sharp Developer Tools\OSA SDK\Samples\DirectOSA\ExternalAuthority\licenses.licx: Could not transform licenses file into a binary resource.  (1) : error LC0004 : Exception occurred creating type 'OSADirectLicensing.OSADirectLicensedClass, OSADirectLicensing, Version=1.0.4006.31768, Culture=neutral, PublicKeyToken=null System.ComponentModel.LicenseException: Invalid License
   at System.ComponentModel.LicenseManager.CreateWithContext(Type type, LicenseContext creationContext, Object[] args)
   at System.ComponentModel.LicenseManager.CreateWithContext(Type type, LicenseContext creationContext)
   at System.Tools.LicenseCompiler.GenerateLicenses(String fileContents, String targetPE, ITypeResolutionService resolver, DesigntimeLicenseContext ctx)' .

VS2008 は licenses.licx をサポートしていますか?

このファイルを Web サイトから削除するべきではありません。

どうすればこの問題を解決できますか?

4

2 に答える 2

0

licenses.licxファイルを削除し、プロジェクトを再コンパイルします。

これで問題は解決するはずです。

幸運を!

于 2011-01-17T09:22:08.197 に答える