Search

APP_License.dll can not be generated automatically in ASP.NET website by Jamebo

Closed
as By Design Help for as By Design

1
0
Sign in
to vote
Type: Bug
ID: 499908
Opened: 10/23/2009 1:20:33 AM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
Put a 3rd commercial web control into a new website. THe licenses.licx can be generated automatically. After run, the app_license.dll can not be generated and the control will throw license exception.
(This bug is just in website. In a web application, the license checking will be run correctly.)
Details (expand)

Product Language

English

Version

.NET Framework 4 Beta 2

Operating System

Windows 7

Operating System Language

English

Steps to Reproduce

1. Create an ASP.NET web site with .NET 4.0
2. Put a commercial web control into default.aspx page (or you can implment a web control with you own license provider.)
3. The licenses.licx will be generated after step 2 to indicate the control's type information
4. run the web site,

Actual Results

A license exception will be thrown to indicate there is not license for the web site. Actually, no App_license.dll is generated. (This dll will contain the license information.)

Expected Results

App_license.dll will be generated for this control and the license checking will be excuted as VS2008 SP1 like .
      You can indicate your satisfaction with how Microsoft handled this issue by completing this quick 3 question survey. [Details]

 

File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 11/20/2009 at 11:04 AM
There is another bug tracking the generation of licenses.licx which should be fixed for the final release
Posted by Jamebo on 11/3/2009 at 5:02 PM
>>In Websites, App_LICENSES.dll is generated to contain the LICX as an embedded resource.
Yes, that is the feature what VS2008 provided.
But in VS2010 Beta2, I can not get this result. Please check it.

>>In Websites, App_LICENSES.dll is generated to contain the LICX as an embedded resource.
It sounds this is not current (VS2008) behavior.
Current bebavior (VS2008) is generating WebApplication.dll which contains embed license resource, not copy the lic file to /bin folder.
Please confirm that.

Thanks
-Jamebo
Posted by Microsoft on 11/3/2009 at 1:30 PM
In a web application project, manually copy the .lic file to /bin folder. In a Website, this is done automatically.

At this pointm refresh the designer or rerun the project and the licensed control should work as expected.

Note: App_LICENSES.dll isn't required in a WAP. In Websites, App_LICENSES.dll is generated to contain the LICX as an embedded resource. In WAP, there is a project assembly which contains the embedded LICX resource, so a separate DLL is not necessary
Posted by Microsoft on 10/27/2009 at 1:05 AM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Thank you
Posted by Microsoft on 10/25/2009 at 8:36 PM
Thank you for your feedback, We are currently reviewing the issue you have submitted.
Sign in to post a workaround.