Page 1 of 1

ASP.NET Licensing problem

Posted: Mon 27 Jul 2009 19:59
by jkucera
I created a new Website in VS2008 (file system or local IIS) which I want to publish to a remote server. So I do Tools,PostgreSQL,License information... next I fix the missing license file. So far, so good. The licenses.licx contains:

Devart.Data.PostgreSql.PgSqlConnection, Devart.Data.PostgreSql, Version=4.55.37.0, Culture=neutral, PublicKeyToken=09af7300eec23701

And when try to "Build runtime licenses" from the context menu on licenses.licx, the following error occurs:

Error 1 ProjectPath\licenses.licx: Could not transform licenses file into a binary resource. Could not load file or assembly 'lc, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

The last part of the error is in Czech, stating something like:
An attempt was made to read data in incorrect format.
(Byl učiněn pokus načíst program v nesprávném formátu.)

Any idea?

Posted: Tue 28 Jul 2009 08:19
by Shalex
This is a Visual Studio issue. Probably something is wrong with its installation. Please refer to MSDN ( http://msdn.microsoft.com/en-us/library ... ks.lc.aspx ). Maybe this will help.

Posted: Sat 01 Aug 2009 21:11
by swaxolez
I have the same problem when I try to build runtime license:

C:\Users\William\Documents\Visual Studio 2008\WebSites\PCFS\licenses.licx: Could not transform licenses file into a binary resource. Could not load file or assembly 'lc, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. An attempt was made to load a program with an incorrect format.


I am at a loss?

Posted: Mon 03 Aug 2009 08:16
by AndreyR
The lc.exe file is a .NET license compiler. If you miss it, you have a problem with the .NET Framework or
Visual Studio installation. Please specify the full versions of your .NET and VS.