license files

D

David

I am using some 3rd party assemblies that require license files.
I have placed all the licx files into one and compiled it.
If I compile it from command prompt and include the compiled license file as
an embedded resource it works file, however if I include the compiled
license file in visual studio as an embedded resource and remove the licx
file it throws a system.componentmodel.licenseexception

I am including the compiled license file and settings its build action to
"Embedded Resource"

Is it possible to complie a licx file and include it in a project as an
embedded resource and if so can you let me know how.

Thanks
David
 
N

Nicholas Paldino [.NET/C# MVP]

David,

How are you embedding the licence from the command line? Are you
embedding it as a Win32 resource, or as a .NET resource? If you are
embedding it as a win32 resource, then you won't be able to do this from
VS.NET, as it doesn't support this (but the command line compiler does).

Hope this helps.
 
D

David

I am using lc.exe to compile the licenses.licx file and I am using the
following in the command prompt to include it "/resource:myapp.exe.licenses"

Nicholas Paldino said:
David,

How are you embedding the licence from the command line? Are you
embedding it as a Win32 resource, or as a .NET resource? If you are
embedding it as a win32 resource, then you won't be able to do this from
VS.NET, as it doesn't support this (but the command line compiler does).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

David said:
I am using some 3rd party assemblies that require license files.
I have placed all the licx files into one and compiled it.
If I compile it from command prompt and include the compiled license
file
as
an embedded resource it works file, however if I include the compiled
license file in visual studio as an embedded resource and remove the licx
file it throws a system.componentmodel.licenseexception

I am including the compiled license file and settings its build action to
"Embedded Resource"

Is it possible to complie a licx file and include it in a project as an
embedded resource and if so can you let me know how.

Thanks
David
 
N

Nicholas Paldino [.NET/C# MVP]

David,

I can think of the two following things. First, make sure that the name
of the file that you are adding to the project is the name of the resource
that you want to access. In other words, make sure the file name is
myapp.exe.licenses. After that, I would try using "Content" instead of
"Embedded Resource". I am not ^that^ familiar with how the license
management works, so most of this is a guess.

Is there any way you can post the project or an example with the same
problem (so we can try and tackle it).


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

David said:
I am using lc.exe to compile the licenses.licx file and I am using the
following in the command prompt to include it "/resource:myapp.exe.licenses"

message news:[email protected]...
David,

How are you embedding the licence from the command line? Are you
embedding it as a Win32 resource, or as a .NET resource? If you are
embedding it as a win32 resource, then you won't be able to do this from
VS.NET, as it doesn't support this (but the command line compiler does).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

David said:
I am using some 3rd party assemblies that require license files.
I have placed all the licx files into one and compiled it.
If I compile it from command prompt and include the compiled license
file
as
an embedded resource it works file, however if I include the compiled
license file in visual studio as an embedded resource and remove the licx
file it throws a system.componentmodel.licenseexception

I am including the compiled license file and settings its build action to
"Embedded Resource"

Is it possible to complie a licx file and include it in a project as an
embedded resource and if so can you let me know how.

Thanks
David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top