News RSS Problem after upgrade Kentico7.0 to 8.0

Rasiuddin Khan asked on September 16, 2014 14:36

I'm facing problem after upgrade Kentico website kentico 7.0 to 8.0. getting below log.

Event ID:

152727

Event type:

Error

Event time:

9/16/2014 4:11:52 PM

Source:

Controls

Event code:

LoadTransformation

User ID:

53

User name:

administrator

IP address:

::1

Description:

Message: [TempITemplate.Template]: http://server/PACP81/CMSVirtualFiles/Transformations/=vg=330f78ea-e9ab-4587-bb51-f94737bd584d/CMS.News/RSSItem.ascx(6): error CS0103: The name 'CMSContext' does not exist in the current context

Exception type: System.Exception

Message: http://server/PACP81/CMSVirtualFiles/Transformations/=vg=330f78ea-e9ab-4587-bb51-f94737bd584d/CMS.News/RSSItem.ascx(6): error CS0103: The name 'CMSContext' does not exist in the current context

Exception type: System.Web.HttpCompileException Stack Trace: at System.Web.Compilation.BuildManager.PostProcessFoundBuildResult(BuildResult result, Boolean keyFromVPP, VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetBuildResultFromCacheInternal(String cacheKey, Boolean keyFromVPP, VirtualPath virtualPath, Int64 hashCode, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(VirtualPath virtualPath, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate) at System.Web.UI.TemplateControl.LoadTemplate(VirtualPath virtualPath) at CMS.Controls.TempITemplate.get_Template()

Machine name:

TAKWEENIT-KHAN

Event URL:

/PACP81/cms/getdoc/59a623c1-204c-496d-b8b1-8859ffc5cf35/Home.aspx?viewmode=3&showpanel=1&lang=ar-OM&langobjectlifetime=request&rss=news

URL referrer:

http://localhost/PACP81/cms/getdoc/59a623c1-204c-496d-b8b1-8859ffc5cf35/Home.aspx?viewmode=3&showpanel=1&lang=ar-OM&langobjectlifetime=request

User agent:

Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0; MATMJS)

Recent Answers


Brenden Kehren answered on September 16, 2014 15:13

Did you follow the upgrade instructions or about read about the API changes? The upgrade procedure stated you need to save all your virtual objects (transformations, layouts, templates, etc.) to disk and edit them as needed, then check them back into the database.

The problem with your experiencing is CMSContext no longer exists in 8.x. If you simply remove it, this should fix the issue in most cases. Other cases you will have to revert to the API Changes to look the new namespace up.

1 votesVote for this answer Mark as a Correct answer

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