The type or namespace name 'CMSOutputFilter' does not exist in the namespace 'CMS' (are you missing

Aashish Khandelwal asked on July 15, 2014 23:35

After I ran the Kentico Upgrade from version 7.0.31 to 8, error is generating.

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: CS0234: The type or namespace name 'CMSOutputFilter' does not exist in the namespace 'CMS' (are you missing an assembly reference?)

Source Error:

Line 3: using CMS.GlobalHelper; Line 4: using CMS.SettingsProvider; Line 5: using CMS.CMSOutputFilter; Line 6:
Line 7: ///

Recent Answers


Aashish Khandelwal answered on July 15, 2014 23:40

Source File: XXXXX\CMS\App_Code\Samples\Modules\SampleMacroModule.cs Line: 5

Source Error:

Line 3: using CMS.GlobalHelper;

Line 4: using CMS.SettingsProvider;

Line 5: using CMS.CMSOutputFilter;

Line 6:

Line 7: ///

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on July 16, 2014 04:22

Did you run the upgrade tool to tell you what needed to be changed? You might check out the reference tool to see what it changed to from v7 to v8.

Class

CMS.CMSOutputFilter.OutputFilter

was moved to

CMS.OutputFilter.ResponseOutputFilter

1 votesVote for this answer Mark as a Correct answer

Aashish Khandelwal answered on July 16, 2014 08:45

Brenden,

Could you please provide the URL of reference check TOOL.

Regards Aashish Khandelwal Technoscatter - Drive To Technology

0 votesVote for this answer Mark as a Correct answer

Martin Danko answered on July 16, 2014 10:29

Hello Aashish,

the easiest way to find out API changes in Kentico 8 is to use the following page: List of all changes in Kentico 8 API + on the same page you can download the Kentico code upgrade tool.

Best regards, Martin

1 votesVote for this answer Mark as a Correct answer

Aashish Khandelwal answered on July 16, 2014 11:03

Hello Martin,

I tried KENTICO CODE UPGRADE TOOL but it requires framework 4.5 as a prerequisite. I have 4.0 installed on my server so its not working and throwing exceptions.

Regards
Aashish Khandelwal
Technoscatter - Drive To Technology

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on July 16, 2014 19:46

@Aashish, the link was in my initial post but it looks like I pasted the wrong link and the formatting of the links on the site is hard to read sometimes. http://devnet.kentico.com/documentation/api-changes/374

If you have a local copy of your code not on the server then install .net 4.5 and run it from there and have it evaluate your site.

0 votesVote for this answer Mark as a Correct answer

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