Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > App_Web_invalidlicensekey View modes: 
User avatar
Member
Member
vash-mugjooz - 6/30/2011 11:31:36 AM
   
App_Web_invalidlicensekey
Yesterday I installed the free version on sub.mydomain.local. Then it asked for the license key. I decided to do it later, and closed the browser (yes, shouldnt have done that).

Now when I return to the site i get the following error:

Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0012: The type 'Global' is defined in an assembly that is not referenced. You must add a reference to assembly 'App_Code.-3csd_bx, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

Source Error:

[No relevant source lines]


Source File: c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\7021e49a\5a507072\App_Web_invalidlicensekey.aspx.87f5ba7.gcpjureg.0.cs Line: 112


Show Detailed Compiler Output:


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

What to do?

User avatar
Member
Member
vash-mugjooz - 6/30/2011 11:33:02 AM
   
RE:App_Web_invalidlicensekey
By the way, I already cleared the Temporary internet files in the 4.x. dir.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 7/2/2011 4:56:16 PM
   
RE:App_Web_invalidlicensekey
Hello.

At first, please read following FAQ article: http://devnet.kentico.com/FAQs/General.aspx#FAQ96 .

It deals with similar error (the same error code) and states, that if the source of this error is located in c:\WINDOWS\microsoft.net\Framework\v2.0.50727\Temporary ASP.NET Files\, it is probably (in 90%) needed to clear the .NET cache in location mentioned above.
This issue may happen if the application is often restarted/recycled or during development when it is re-compiled frequently. This leads that sometimes the data are not loaded correctly.

Also please note this is rather issue with ASP.NET itself. It may also happen that ASP.NET inserts invalid record to .NET cache after restart. This causes this issue. You can try to convert your site to web application. As for some general info about the conversion process, you may also find useful following post:
weblogs.asp.net/meligy/archive/2008/08/03/converting-vs-2008-website-to-web-application.aspx.

Best Regards,
Radek Macalik