Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > Compilation error after instalation View modes: 
User avatar
Member
Member
filip.kajzderski-gmail - 8/6/2010 5:38:27 AM
   
Compilation error after instalation
Hi,

I installed Kentico CMS 5.5 using web installer (I unpacked it to a local folder, and then I copied everything to an FTP location). I managed to configure the database, but after that I'm getting a compilation error:

"CS0012: The type 'Global' is defined in an assembly that is not referenced. You must add a reference to assembly 'App_Code.tklobas9, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'."

Any ideas?

F.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 8/9/2010 6:36:28 AM
   
RE:Compilation error after instalation
Hello.

This seems to be some problem with .NET cache. Could you please try to delete c:\WINDOWS\Microsoft.NET\Framework\<proper version number>\Temporary ASP.NET
Files and let us know, if it helped? Thank you.

Best Regards,
Radek Macalik

User avatar
Member
Member
sprintstar - 8/24/2010 5:19:19 PM
   
RE:Compilation error after instalation
I am getting the same issue, having just installed to shared hosting. I don't have access to the temporary asp.net files directory, so I can't clear them out. If you google " The type 'Global' is defined in an assembly that is not referenced", you only get Kentico related problems.. :(

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/25/2010 3:58:17 AM
   
RE:Compilation error after instalation
Hi,

You need to ask your hosting provider to do so. Moreover, if you search for the error message with "Global" in it you will get Kentico related problems, because the "Global" is specific for Kentico, if you will search for the error code CS0012 you will get lots of non-Kentico related problems and posts, for example: http://stackoverflow.com/questions/284433/strange-error-cs0012-the-type-x-is-defined-in-an-assembly-that-is-not-referenc which is talking about GAC, but since you are using hosting provider, I think you have not added the assemblies to GAC, so the only way how to solve it is to clear the .Net cache.

It happens sometimes when the application is restarted by .Net framework, that some assemblies are not loaded correctly to the cache, which is .Net related problem.

Best regards,
Juraj Ondrus