# Migration from Kentico V7 to Kentico V 8.2.2

### Chetan Sharmaasked on March 10, 2015 19:10

Hi All,

We have On premise Kentico. We migrated to kentico 8.2.2 from kentico 7.70. We got few errors due to some api changes. After resolving we are getting finally these errors. Attached SS

I understand few of them are library issues. I can take care of that. I am concerned about the error highlighted and of those type in the SS attached.

Thanks Chetan

Edit:- Could not attach Images to it

Detailed Error log...

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: CS0246: The type or namespace name 'CMSCssSettings' could not be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 310: /// Http context Line 311: /// CSS Settings Line 312: private static void ProcessRequest(HttpContext context, CMSCssSettings settings) Line 313: { Line 314: CMSOutputResource resource = null;

Source File: e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs Line: 312

Compiler Warning Messages: Warning: CS0105: The using directive for 'System.Data' appeared previously in this namespace Source Error:

e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\WebService.cs

Line 11: using Newtonsoft.Json; Line 12: using System; Line 13: using System.Data; Line 14: using System.Web.Mvc; Line 15: using System.Web.Script.Services;

Warning: CS0105: The using directive for 'System.Web.Script.Services' appeared previously in this namespace Source Error:

e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\WebService.cs

Line 13: using System.Data; Line 14: using System.Web.Mvc; Line 15: using System.Web.Script.Services; Line 16: using System.Web.Services; Line 17:

Warning: CS0105: The using directive for 'System.Web.Services' appeared previously in this namespace Source Error:

e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\WebService.cs

Line 14: using System.Web.Mvc; Line 15: using System.Web.Script.Services; Line 16: using System.Web.Services; Line 17: Line 18:

Show Detailed Compiler Output:

Microsoft (R) Visual C# Compiler version 4.0.30319.34209

e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\WebService.cs(13,7): warning CS0105: The using directive for 'System.Data' appeared previously in this namespace e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\WebService.cs(15,7): warning CS0105: The using directive for 'System.Web.Script.Services' appeared previously in this namespace e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\WebService.cs(16,7): warning CS0105: The using directive for 'System.Web.Services' appeared previously in this namespace e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(312,61): error CS0246: The type or namespace name 'CMSCssSettings' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(368,67): error CS0246: The type or namespace name 'CMSOutputResource' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(368,20): error CS0246: The type or namespace name 'CMSOutputResource' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(462,59): error CS0246: The type or namespace name 'CMSOutputResource' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(641,66): error CS0246: The type or namespace name 'CMSOutputResource' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(791,40): error CS0246: The type or namespace name 'CMSOutputResource' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(832,62): error CS0246: The type or namespace name 'CMSOutputResource' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1105,50): error CS0246: The type or namespace name 'CMSCssSettings' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1105,20): error CS0246: The type or namespace name 'CMSOutputResource' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1261,46): error CS0246: The type or namespace name 'CMSItem' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1261,20): error CS0246: The type or namespace name 'CMSOutputResource' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1355,20): error CS0246: The type or namespace name 'CMSOutputResource' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1494,52): error CS0246: The type or namespace name 'CMSItem' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1494,20): error CS0246: The type or namespace name 'CMSOutputResource' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1547,51): error CS0246: The type or namespace name 'CMSItem' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1547,20): error CS0246: The type or namespace name 'CMSOutputResource' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1584,55): error CS0246: The type or namespace name 'CMSItem' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1584,20): error CS0246: The type or namespace name 'CMSOutputResource' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1632,50): error CS0246: The type or namespace name 'CMSItem' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1632,20): error CS0246: The type or namespace name 'CMSOutputResource' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1690,48): error CS0246: The type or namespace name 'CMSItem' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1690,20): error CS0246: The type or namespace name 'CMSOutputResource' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1739,54): error CS0246: The type or namespace name 'CMSItem' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1739,20): error CS0246: The type or namespace name 'CMSOutputResource' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1789,49): error CS0246: The type or namespace name 'CMSItem' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1789,20): error CS0246: The type or namespace name 'CMSOutputResource' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1824,56): error CS0246: The type or namespace name 'CMSItem' could not be found (are you missing a using directive or an assembly reference?) e:\inetpub\wwwroot\DF\KenticoCMS7\CMS\App_Code\CMSPages\GetResource.ashx.cs(1824,20): error CS0246: The type or namespace name 'CMSOutputResource' could not be found (are you missing a using directive or an assembly reference?)

Show Complete Compilation Source:

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

### Brenden Kehren answered on March 11, 2015 00:56

During the upgrade to 8, there could be a lot of different pieces that could fail. Did you make changes to the base controls? If so, you'll need to copy those back. Are all of your DLLs on v8? Are there any < location > nodes you added in the web.config?

As I said, there are a lot of places it could fail, just have to ask a lot of questions.

### Martin Danko answered on March 11, 2015 03:12 (last edited on March 11, 2015 03:14)

Hi Chetan,

Did you perform a manual upgrade or the automatic one via KIM?

Could you please also try to delete .NET caches completely:

    "$appdata\Local\Microsoft\WebsiteCache\", "$appdata\Local\Microsoft\VisualStudio\9.0\ProjectAssemblies\",
"$appdata\Local\Microsoft\VisualStudio\10.0\ProjectAssemblies\"; "$windir\Microsoft.NET\Framework\v2.0.50727\Temporary ASP..NET Files\",
"$windir\Microsoft..NET\Framework\v4..0.30319\Temporary ASP.NET Files\", "$windir\Microsoft.NET\Framework64\v2.0...50727\Temporary ASP..NET Files\",
"\$windir\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP...NET Files\"


And also I believe that posting here 100 lines of code is probably not the best idea :) Rather copy them into txt file and put that file on some free sharing service, and then you can simply share the link to that file.

Regards, Martin

### Chetan Sharma answered on March 11, 2015 05:25

Thanks Brenden and Martin

@Brenden - Yes we had one control that I modified. I will take care of that. May be I need to now override that in the new file.

@Martin - We used the tool provided by Kentico to perform the upgrade. I will keep your other suggestion in mind. Does deleting application cache helps?

Thanks, Chetan

### Chetan Sharma answered on March 13, 2015 08:28

After analysis we realized that we had GetResource.ashx.cs stayed in the directory under App_code/CMSPages. After removing this file we were able to proceed forward.

Now we are getting this error

http://pastebin.com/vh2YRdyE

It seems like a database corruption after patch applying. I looked at our database view and I couldn't find this Column name "DocumentMenuRedirectToFirstChild"

Any thoughts or help what could have gone wrong.

Thanks, Chetan

### Rene Guzman answered on September 14, 2016 17:31

We found instances where the CMSApp_MVC.csproj file would build a DLL to /bin with previous versions of Kentico DLLs after an upgrade. If you aren't using this csprj file try removing it and the built DLL from /bin.