Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > Upgrade from 5.5 to 5.5 R2 error CS0246 View modes: 
User avatar
Member
Member
matthew.bennion-southstaffshis.nhs - 10/10/2011 8:12:01 AM
   
Upgrade from 5.5 to 5.5 R2 error CS0246
I tried to upgrade to 5.5 R2 and have the following error appearing

App_Code\CMSPages\TagSelectorService.cs(28,6): error CS0246: The type or namespace name 'ScriptMethod' could not be found (are you missing a using directive or an assembly reference?)

User avatar
Member
Member
matt bennion - 10/10/2011 8:20:35 AM
   
RE:Upgrade from 5.5 to 5.5 R2 error CS0246
Mmm I think this maybe code written by one of our contractors!

However I'm still not entirely sure how to get round this in R2...

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/10/2011 8:54:59 AM
   
RE:Upgrade from 5.5 to 5.5 R2 error CS0246
Hi,

could you please try to remove temporary files usually located in the following path?

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\<web site folder>


Could you please check if you are using .dll files for the correct .NET version?

Best regards,
Ivana Tomanickova

User avatar
Member
Member
matt bennion - 10/10/2011 11:10:55 AM
   
RE:Upgrade from 5.5 to 5.5 R2 error CS0246
Hi Ivana,
I cleared the temp folder several times during my testing without any success.

I opened the entire project up in visual studio and noticed double references present for two of the standard asp.net libraries, so removed the version 1 references and left the 3.5 ones. I also noticed the ajax toolkit in the BIN was only version 1, so I overwrote it with version 3.0.

I'll carry on testing but everything seems ok at the moment.

Best Regards,
Matt

User avatar
Member
Member
Webcoda - 11/24/2011 5:57:47 PM
   
RE:Upgrade from 5.5 to 5.5 R2 error CS0246
Hi,

We are getting the same error upgrading from 5.5. to 5.5R2.

Have you found the solution for this issue?

Thanks,
Oleg

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 11/29/2011 7:03:08 AM
   
RE:Upgrade from 5.5 to 5.5 R2 error CS0246
Hi,

could you please check if the bin folder was upgraded correctly?
Have you applied the package for the correct .NET version?
Have you tried suggestions provided by Matt?

Best regards,
Ivana Tomanickova