Error CS0103

Adam Piotrowski asked on January 7, 2017 21:20


I have kentico 6. Unfortunately I imported web part for kentico 5.5, In the result my server was recompiled engine and not working. I see the error message:

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: CS0103: The name 'CMSCustom' does not exist in the current context

Source Error: Line 31: { Line 32: // Init custom methods Line 33: CMSCustom.Init(); Line 34: Line 35: // System events Source File: c:\inetpub\wwwroot\KenticoCMS\App_Code\Global\CMS\Compatibility55.cs Line: 33

How can I restore the operation of the website.



Recent Answers

Juraj Ondrus answered on January 9, 2017 14:41

It looks like you have imported also some old API code into the newer version. Was the Compatibility55.cs file present before the import? If not, I would try deleting it. Another option is to remove the code files that were imported with the web part or, you may need to check the code for the API Changes.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.