OK. I think we are mis-communicating.
the .licx file or any licensed controls on the form you get the error.
compiles fine. This leads me to believe that the designer is caching the
licensed types and the license providers. So here are the steps:
1. Create a new project.
2. Drop a licensed component on the form.
3. Change the Version part to Version=BadVersion
4. Rebuild.
5. Notice the project built fine even though the version info is bad.
""Ying-Shen Yu[MSFT]"" <v-yiy@online.microsoft.com> wrote in message
news:e86hDRZPEHA.308@cpmsftngxa10.phx.gbl...
> Hi Brock,
>
> I did some test on my system according to your description, however the
> result seems not same as yours, my test IDE is VS.NET 2003 with no patch.
>
> If I replace the version part in licx file with string "badversion" ,
> When build the project VS.NET IDE will report error " ....\licenses.licx
> Could not transform licenses file 'licenses.licx' into a binary resource.
> Input string was not in a correct format."
>
> If I replace the version part with some invalid version number, it will
> compile through. However it is a designed behavior, when a type could not
> be found using its full qualified type name, VS Designer will try to load
> the type with partial type name, in your case if you have the assembly
> version 7.1.0.341 and specified the version part to 7.1.0.500 in licx
file,
> the version 7.1.0.341 will be loaded. the rest process is similiar as if
> you specifiy version= 7.1.0.341 in licx file.
>
> In your description about licensing the assembly in GAC, there should
> I think there is no difference if the assembly is in GAC, the CLR loader
> will load the correct version automatically, one thing you should remind
is
> the assembly is in GAC, the default GetLicence method in
> LicFileLicenseProvider will try to load lic file from the same directory
as
> the component assembly.
>
> If you still have questions on this issue, please feel free to reply this
> thread.
> Thanks!
>
> Ying-Shen Yu [MSFT]
> Microsoft Community Support
> Get Secure! -
www.microsoft.com/security >
> This posting is provided "AS IS" with no warranties and confers no rights.
> This mail should not be replied directly, please remove the word "online"
> before sending mail.
>