User (Legacy) Posted September 23, 2005 Author Report Share Posted September 23, 2005 I am trying to deploy a managed C++ windows forms app that uses chartFX lite. When I get the following error on target computer: An unhandled exception of type: 'System.ComponentModel.LicenseException' occured in chartfx.lite.dll Additional information: Couldn't get Run Time license for 'SoftwareFX.ChartFX.Lite.Chart' I found some discussion of this problem at: http://support.softwarefx.com/kb/610/1/010.htm But the recommended solution did not work... I attempted to execute: lc / target:CIR Simulator.exe / complist:licenses.licx / i:ChartFX.lite.dll from the folder containing the executable, but I got the following message: 'lc' is not recognized as an internal or external command, operable program or batch file. Any additional info would be greatly appreciated. Thanks Link to comment Share on other sites More sharing options...
User (Legacy) Posted September 23, 2005 Report Share Posted September 23, 2005 I am trying to deploy a managed C++ windows forms app that uses chartFX lite. When I get the following error on target computer: An unhandled exception of type: 'System.ComponentModel.LicenseException' occured in chartfx.lite.dll Additional information: Couldn't get Run Time license for 'SoftwareFX.ChartFX.Lite.Chart' I found some discussion of this problem at: http://support.softwarefx.com/kb/610/1/010.htm But the recommended solution did not work... I attempted to execute: lc / target:CIR Simulator.exe / complist:licenses.licx / i:ChartFX.lite.dll from the folder containing the executable, but I got the following message: 'lc' is not recognized as an internal or external command, operable program or batch file. Any additional info would be greatly appreciated. Thanks Link to comment Share on other sites More sharing options...
User (Legacy) Posted September 23, 2005 Author Report Share Posted September 23, 2005 I realized that my problem was that was not using the VS.NET command prompt. I was able to successfully generate the .licenses file & add it to my project. I added it in 2 places: 1. as a resource file and 2. under projects -> properties -> linker -> input -> Embed Managed Resource File (as suggested) I then rebuilt the project & the deployment project and I still get the original error message (shown below). At this point I'm out of ideas... I believe I've followed the steps at: http://support.softwarefx.com/kb/610/1/010.htm exactly. Any additional info would be greatly appreciated Thanks >I am trying to deploy a managed C++ windows forms app that uses chartFX >lite. > When I get the following error on target computer: > An unhandled exception of type: 'System.ComponentModel.LicenseException' > occured in chartfx.lite.dll > Additional information: Couldn't get Run Time license for > 'SoftwareFX.ChartFX.Lite.Chart' > > I found some discussion of this problem at: > http://support.softwarefx.com/kb/610/1/010.htm > > But the recommended solution did not work... I attempted to execute: > > lc / target:CIR Simulator.exe / complist:licenses.licx / > i:ChartFX.lite.dll > > from the folder containing the executable, but I got the following > message: > > 'lc' is not recognized as an internal or external command, operable > program or batch file. > > Any additional info would be greatly appreciated. > > Thanks > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted September 23, 2005 Author Report Share Posted September 23, 2005 I realized that my problem was that was not using the VS.NET command prompt. I was able to successfully generate the .licenses file & add it to my project. I added it in 2 places: 1. as a resource file and 2. under projects -> properties -> linker -> input -> Embed Managed Resource File (as suggested) I then rebuilt the project & the deployment project and I still get the original error message (shown below). At this point I'm out of ideas... I believe I've followed the steps at: http://support.softwarefx.com/kb/610/1/010.htm exactly. Any additional info would be greatly appreciated Thanks >I am trying to deploy a managed C++ windows forms app that uses chartFX >lite. > When I get the following error on target computer: > An unhandled exception of type: 'System.ComponentModel.LicenseException' > occured in chartfx.lite.dll > Additional information: Couldn't get Run Time license for > 'SoftwareFX.ChartFX.Lite.Chart' > > I found some discussion of this problem at: > http://support.softwarefx.com/kb/610/1/010.htm > > But the recommended solution did not work... I attempted to execute: > > lc / target:CIR Simulator.exe / complist:licenses.licx / > i:ChartFX.lite.dll > > from the folder containing the executable, but I got the following > message: > > 'lc' is not recognized as an internal or external command, operable > program or batch file. > > Any additional info would be greatly appreciated. > > Thanks > > Link to comment Share on other sites More sharing options...
Software FX Posted September 24, 2005 Report Share Posted September 24, 2005 The .licenses file must be an embedded resource in your application and the name of the resource must be named as the name of your exe, for example: "WindowsApplicatiion1.exe.licenses" In the KB article you mentioned, step 5 shows you how to do this: 5) Embed this .licenses file as a resource into your executable, you can do this at linking time by using the /ASSEMBLYRESOURCE option. If you are using Visual Studio you can embed this file by going to the Linker properties and adding the reference under "Embed Managed Resource File" (Input category). I suggest you use Reflector or a similar inspection tool to verify the resource is there and named correctly, .NET licensing is handled by the framework and there is nothing special about Chart FX in regards to the way the license should be embedded. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Software FX Posted September 24, 2005 Report Share Posted September 24, 2005 The .licenses file must be an embedded resource in your application and the name of the resource must be named as the name of your exe, for example: "WindowsApplicatiion1.exe.licenses" In the KB article you mentioned, step 5 shows you how to do this: 5) Embed this .licenses file as a resource into your executable, you can do this at linking time by using the /ASSEMBLYRESOURCE option. If you are using Visual Studio you can embed this file by going to the Linker properties and adding the reference under "Embed Managed Resource File" (Input category). I suggest you use Reflector or a similar inspection tool to verify the resource is there and named correctly, .NET licensing is handled by the framework and there is nothing special about Chart FX in regards to the way the license should be embedded. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted September 25, 2005 Author Report Share Posted September 25, 2005 Thanks for your quick response... I verified that the .licenses file has the exact same name as my application: CIR Simulator.exe.licenses and that it is embedded under Linker -> Input -> Embed Managed Resource File as $(ProjectDir)CIR Simulator.exe.licenses I downloaded Reflector as you suggested, and the .licenses file was visible & readable w/ Reflector. So in total I've got licenses.licx added to my project that includes only the following text: SoftwareFX.ChartFX.Chart, ChartFX.Lite and I've got the corresponding .licenses file (built via the VS command prompt) embedded as a managed resource file. Unfortunately, I attempted to deploy the project again and it still generates the same exception. One of the things I didn't understand about Q6101010 was: Execute the following command from the folder in which your executable, ChartFX.dll, ChartFX.Base.dll and licenses.licx reside: Specifically, this confused me because the licenses.licx file was not orignially located in the same folder as the executable and the ChartFX.lite.dll (it's located in the main project directory, which includes the ChartFX.lite.dll, but not the executable). To build the .licenses file, I copied the .licx file to the Release folder (so that all 3 files would be in the same place) and executed the command in that folder. This is probably nothing, but I figured I'd throw it out there since I'm really reaching at this point. The only other thing I wasn't clear about was the note: Note: If you use other licensed controls, components or classes in your application you must include a reference to EACH DLL using /i and a line in licenses.licx for every licensed class. I don't have any other licensed controls, but I do have my own windows control library (only contains a derived datagrid control). However, this control library does not include a reference to the chartFX dll, so I don't see how it could be an issue. If there's anything else you can suggest I would really appreciate it... Thanks Brian Lofton "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:xam4L8UwFHA.3776@webserver3.softwarefx.com... > The .licenses file must be an embedded resource in your application and > the name of the resource must be named as the name of your exe, for > example: > > "WindowsApplicatiion1.exe.licenses" > > In the KB article you mentioned, step 5 shows you how to do this: > > 5) Embed this .licenses file as a resource into your executable, you can > do this at linking time by using the /ASSEMBLYRESOURCE option. If you are > using Visual Studio you can embed this file by going to the Linker > properties and adding the reference under "Embed Managed Resource File" > (Input category). > > I suggest you use Reflector or a similar inspection tool to verify the > resource is there and named correctly, .NET licensing is handled by the > framework and there is nothing special about Chart FX in regards to the > way the license should be embedded. > -- > Francisco Padron > www.chartfx.com > Link to comment Share on other sites More sharing options...
User (Legacy) Posted September 25, 2005 Author Report Share Posted September 25, 2005 Thanks for your quick response... I verified that the .licenses file has the exact same name as my application: CIR Simulator.exe.licenses and that it is embedded under Linker -> Input -> Embed Managed Resource File as $(ProjectDir)CIR Simulator.exe.licenses I downloaded Reflector as you suggested, and the .licenses file was visible & readable w/ Reflector. So in total I've got licenses.licx added to my project that includes only the following text: SoftwareFX.ChartFX.Chart, ChartFX.Lite and I've got the corresponding .licenses file (built via the VS command prompt) embedded as a managed resource file. Unfortunately, I attempted to deploy the project again and it still generates the same exception. One of the things I didn't understand about Q6101010 was: Execute the following command from the folder in which your executable, ChartFX.dll, ChartFX.Base.dll and licenses.licx reside: Specifically, this confused me because the licenses.licx file was not orignially located in the same folder as the executable and the ChartFX.lite.dll (it's located in the main project directory, which includes the ChartFX.lite.dll, but not the executable). To build the .licenses file, I copied the .licx file to the Release folder (so that all 3 files would be in the same place) and executed the command in that folder. This is probably nothing, but I figured I'd throw it out there since I'm really reaching at this point. The only other thing I wasn't clear about was the note: Note: If you use other licensed controls, components or classes in your application you must include a reference to EACH DLL using /i and a line in licenses.licx for every licensed class. I don't have any other licensed controls, but I do have my own windows control library (only contains a derived datagrid control). However, this control library does not include a reference to the chartFX dll, so I don't see how it could be an issue. If there's anything else you can suggest I would really appreciate it... Thanks Brian Lofton "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:xam4L8UwFHA.3776@webserver3.softwarefx.com... > The .licenses file must be an embedded resource in your application and > the name of the resource must be named as the name of your exe, for > example: > > "WindowsApplicatiion1.exe.licenses" > > In the KB article you mentioned, step 5 shows you how to do this: > > 5) Embed this .licenses file as a resource into your executable, you can > do this at linking time by using the /ASSEMBLYRESOURCE option. If you are > using Visual Studio you can embed this file by going to the Linker > properties and adding the reference under "Embed Managed Resource File" > (Input category). > > I suggest you use Reflector or a similar inspection tool to verify the > resource is there and named correctly, .NET licensing is handled by the > framework and there is nothing special about Chart FX in regards to the > way the license should be embedded. > -- > Francisco Padron > www.chartfx.com > Link to comment Share on other sites More sharing options...
Software FX Posted September 25, 2005 Report Share Posted September 25, 2005 I believe you are experiencing There is a bug in the .NET framework. The license resource is not found because the name of your executable has a space in it. Try removing the space from your EXE name and re-build. -- Francisco Padron www.chartfx.com "Brian Lofton" <b_lofton@summitstrategies.com> wrote in message news:yyN2%23dZwFHA.1856@webserver3.softwarefx.com... > Thanks for your quick response... > > I verified that the .licenses file has the exact same name as my > application: > CIR Simulator.exe.licenses > and that it is embedded under Linker -> Input -> Embed Managed Resource > File as > $(ProjectDir)CIR Simulator.exe.licenses > > I downloaded Reflector as you suggested, and the .licenses file was > visible & readable w/ Reflector. > > So in total I've got licenses.licx added to my project that includes only > the following text: > SoftwareFX.ChartFX.Chart, ChartFX.Lite > and I've got the corresponding .licenses file (built via the VS command > prompt) embedded as a managed resource file. > Unfortunately, I attempted to deploy the project again and it still > generates the same exception. > > One of the things I didn't understand about Q6101010 was: > Execute the following command from the folder in which your executable, > ChartFX.dll, ChartFX.Base.dll and licenses.licx reside: > Specifically, this confused me because the licenses.licx file was not > orignially located in the same folder as the executable and the > ChartFX.lite.dll (it's located in the main project directory, which > includes the ChartFX.lite.dll, but not the executable). To build the > .licenses file, I copied the .licx file to the Release folder (so that all > 3 files would be in the same place) and executed the command in that > folder. This is probably nothing, but I figured I'd throw it out there > since I'm really reaching at this point. > > The only other thing I wasn't clear about was the note: > Note: If you use other licensed controls, components or classes in your > application you must include a reference to EACH DLL using /i and a line > in licenses.licx for every licensed class. > I don't have any other licensed controls, but I do have my own windows > control library (only contains a derived datagrid control). However, this > control library does not include a reference to the chartFX dll, so I > don't see how it could be an issue. > > If there's anything else you can suggest I would really appreciate it... > Thanks > Brian Lofton > > > > "SoftwareFX Support" <noreply@softwarefx.com> wrote in message > news:xam4L8UwFHA.3776@webserver3.softwarefx.com... >> The .licenses file must be an embedded resource in your application and >> the name of the resource must be named as the name of your exe, for >> example: >> >> "WindowsApplicatiion1.exe.licenses" >> >> In the KB article you mentioned, step 5 shows you how to do this: >> >> 5) Embed this .licenses file as a resource into your executable, you can >> do this at linking time by using the /ASSEMBLYRESOURCE option. If you are >> using Visual Studio you can embed this file by going to the Linker >> properties and adding the reference under "Embed Managed Resource File" >> (Input category). >> >> I suggest you use Reflector or a similar inspection tool to verify the >> resource is there and named correctly, .NET licensing is handled by the >> framework and there is nothing special about Chart FX in regards to the >> way the license should be embedded. >> -- >> Francisco Padron >> www.chartfx.com >> > > Link to comment Share on other sites More sharing options...
Software FX Posted September 25, 2005 Report Share Posted September 25, 2005 I believe you are experiencing There is a bug in the .NET framework. The license resource is not found because the name of your executable has a space in it. Try removing the space from your EXE name and re-build. -- Francisco Padron www.chartfx.com "Brian Lofton" <b_lofton@summitstrategies.com> wrote in message news:yyN2%23dZwFHA.1856@webserver3.softwarefx.com... > Thanks for your quick response... > > I verified that the .licenses file has the exact same name as my > application: > CIR Simulator.exe.licenses > and that it is embedded under Linker -> Input -> Embed Managed Resource > File as > $(ProjectDir)CIR Simulator.exe.licenses > > I downloaded Reflector as you suggested, and the .licenses file was > visible & readable w/ Reflector. > > So in total I've got licenses.licx added to my project that includes only > the following text: > SoftwareFX.ChartFX.Chart, ChartFX.Lite > and I've got the corresponding .licenses file (built via the VS command > prompt) embedded as a managed resource file. > Unfortunately, I attempted to deploy the project again and it still > generates the same exception. > > One of the things I didn't understand about Q6101010 was: > Execute the following command from the folder in which your executable, > ChartFX.dll, ChartFX.Base.dll and licenses.licx reside: > Specifically, this confused me because the licenses.licx file was not > orignially located in the same folder as the executable and the > ChartFX.lite.dll (it's located in the main project directory, which > includes the ChartFX.lite.dll, but not the executable). To build the > .licenses file, I copied the .licx file to the Release folder (so that all > 3 files would be in the same place) and executed the command in that > folder. This is probably nothing, but I figured I'd throw it out there > since I'm really reaching at this point. > > The only other thing I wasn't clear about was the note: > Note: If you use other licensed controls, components or classes in your > application you must include a reference to EACH DLL using /i and a line > in licenses.licx for every licensed class. > I don't have any other licensed controls, but I do have my own windows > control library (only contains a derived datagrid control). However, this > control library does not include a reference to the chartFX dll, so I > don't see how it could be an issue. > > If there's anything else you can suggest I would really appreciate it... > Thanks > Brian Lofton > > > > "SoftwareFX Support" <noreply@softwarefx.com> wrote in message > news:xam4L8UwFHA.3776@webserver3.softwarefx.com... >> The .licenses file must be an embedded resource in your application and >> the name of the resource must be named as the name of your exe, for >> example: >> >> "WindowsApplicatiion1.exe.licenses" >> >> In the KB article you mentioned, step 5 shows you how to do this: >> >> 5) Embed this .licenses file as a resource into your executable, you can >> do this at linking time by using the /ASSEMBLYRESOURCE option. If you are >> using Visual Studio you can embed this file by going to the Linker >> properties and adding the reference under "Embed Managed Resource File" >> (Input category). >> >> I suggest you use Reflector or a similar inspection tool to verify the >> resource is there and named correctly, .NET licensing is handled by the >> framework and there is nothing special about Chart FX in regards to the >> way the license should be embedded. >> -- >> Francisco Padron >> www.chartfx.com >> > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted September 25, 2005 Author Report Share Posted September 25, 2005 Beautiful! It worked... I never would have guessed. Thanks a lot for your help. Brian Lofton "Software FX Support" <noreply@softwarefx.com> wrote in message news:zFp3lkewFHA.1764@webserver3.softwarefx.com... >I believe you are experiencing There is a bug in the .NET framework. > > The license resource is not found because the name of your executable has > a space in it. Try removing the space from your EXE name and re-build. > > -- > Francisco Padron > www.chartfx.com > > > "Brian Lofton" <b_lofton@summitstrategies.com> wrote in message > news:yyN2%23dZwFHA.1856@webserver3.softwarefx.com... >> Thanks for your quick response... >> >> I verified that the .licenses file has the exact same name as my >> application: >> CIR Simulator.exe.licenses >> and that it is embedded under Linker -> Input -> Embed Managed Resource >> File as >> $(ProjectDir)CIR Simulator.exe.licenses >> >> I downloaded Reflector as you suggested, and the .licenses file was >> visible & readable w/ Reflector. >> >> So in total I've got licenses.licx added to my project that includes only >> the following text: >> SoftwareFX.ChartFX.Chart, ChartFX.Lite >> and I've got the corresponding .licenses file (built via the VS command >> prompt) embedded as a managed resource file. >> Unfortunately, I attempted to deploy the project again and it still >> generates the same exception. >> >> One of the things I didn't understand about Q6101010 was: >> Execute the following command from the folder in which your executable, >> ChartFX.dll, ChartFX.Base.dll and licenses.licx reside: >> Specifically, this confused me because the licenses.licx file was not >> orignially located in the same folder as the executable and the >> ChartFX.lite.dll (it's located in the main project directory, which >> includes the ChartFX.lite.dll, but not the executable). To build the >> .licenses file, I copied the .licx file to the Release folder (so that >> all 3 files would be in the same place) and executed the command in that >> folder. This is probably nothing, but I figured I'd throw it out there >> since I'm really reaching at this point. >> >> The only other thing I wasn't clear about was the note: >> Note: If you use other licensed controls, components or classes in your >> application you must include a reference to EACH DLL using /i and a line >> in licenses.licx for every licensed class. >> I don't have any other licensed controls, but I do have my own windows >> control library (only contains a derived datagrid control). However, >> this control library does not include a reference to the chartFX dll, so >> I don't see how it could be an issue. >> >> If there's anything else you can suggest I would really appreciate it... >> Thanks >> Brian Lofton >> >> >> >> "SoftwareFX Support" <noreply@softwarefx.com> wrote in message >> news:xam4L8UwFHA.3776@webserver3.softwarefx.com... >>> The .licenses file must be an embedded resource in your application and >>> the name of the resource must be named as the name of your exe, for >>> example: >>> >>> "WindowsApplicatiion1.exe.licenses" >>> >>> In the KB article you mentioned, step 5 shows you how to do this: >>> >>> 5) Embed this .licenses file as a resource into your executable, you can >>> do this at linking time by using the /ASSEMBLYRESOURCE option. If you >>> are using Visual Studio you can embed this file by going to the Linker >>> properties and adding the reference under "Embed Managed Resource File" >>> (Input category). >>> >>> I suggest you use Reflector or a similar inspection tool to verify the >>> resource is there and named correctly, .NET licensing is handled by the >>> framework and there is nothing special about Chart FX in regards to the >>> way the license should be embedded. >>> -- >>> Francisco Padron >>> www.chartfx.com >>> >> >> > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted September 25, 2005 Author Report Share Posted September 25, 2005 Beautiful! It worked... I never would have guessed. Thanks a lot for your help. Brian Lofton "Software FX Support" <noreply@softwarefx.com> wrote in message news:zFp3lkewFHA.1764@webserver3.softwarefx.com... >I believe you are experiencing There is a bug in the .NET framework. > > The license resource is not found because the name of your executable has > a space in it. Try removing the space from your EXE name and re-build. > > -- > Francisco Padron > www.chartfx.com > > > "Brian Lofton" <b_lofton@summitstrategies.com> wrote in message > news:yyN2%23dZwFHA.1856@webserver3.softwarefx.com... >> Thanks for your quick response... >> >> I verified that the .licenses file has the exact same name as my >> application: >> CIR Simulator.exe.licenses >> and that it is embedded under Linker -> Input -> Embed Managed Resource >> File as >> $(ProjectDir)CIR Simulator.exe.licenses >> >> I downloaded Reflector as you suggested, and the .licenses file was >> visible & readable w/ Reflector. >> >> So in total I've got licenses.licx added to my project that includes only >> the following text: >> SoftwareFX.ChartFX.Chart, ChartFX.Lite >> and I've got the corresponding .licenses file (built via the VS command >> prompt) embedded as a managed resource file. >> Unfortunately, I attempted to deploy the project again and it still >> generates the same exception. >> >> One of the things I didn't understand about Q6101010 was: >> Execute the following command from the folder in which your executable, >> ChartFX.dll, ChartFX.Base.dll and licenses.licx reside: >> Specifically, this confused me because the licenses.licx file was not >> orignially located in the same folder as the executable and the >> ChartFX.lite.dll (it's located in the main project directory, which >> includes the ChartFX.lite.dll, but not the executable). To build the >> .licenses file, I copied the .licx file to the Release folder (so that >> all 3 files would be in the same place) and executed the command in that >> folder. This is probably nothing, but I figured I'd throw it out there >> since I'm really reaching at this point. >> >> The only other thing I wasn't clear about was the note: >> Note: If you use other licensed controls, components or classes in your >> application you must include a reference to EACH DLL using /i and a line >> in licenses.licx for every licensed class. >> I don't have any other licensed controls, but I do have my own windows >> control library (only contains a derived datagrid control). However, >> this control library does not include a reference to the chartFX dll, so >> I don't see how it could be an issue. >> >> If there's anything else you can suggest I would really appreciate it... >> Thanks >> Brian Lofton >> >> >> >> "SoftwareFX Support" <noreply@softwarefx.com> wrote in message >> news:xam4L8UwFHA.3776@webserver3.softwarefx.com... >>> The .licenses file must be an embedded resource in your application and >>> the name of the resource must be named as the name of your exe, for >>> example: >>> >>> "WindowsApplicatiion1.exe.licenses" >>> >>> In the KB article you mentioned, step 5 shows you how to do this: >>> >>> 5) Embed this .licenses file as a resource into your executable, you can >>> do this at linking time by using the /ASSEMBLYRESOURCE option. If you >>> are using Visual Studio you can embed this file by going to the Linker >>> properties and adding the reference under "Embed Managed Resource File" >>> (Input category). >>> >>> I suggest you use Reflector or a similar inspection tool to verify the >>> resource is there and named correctly, .NET licensing is handled by the >>> framework and there is nothing special about Chart FX in regards to the >>> way the license should be embedded. >>> -- >>> Francisco Padron >>> www.chartfx.com >>> >> >> > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.