upgrade kentico error

sayali deshpande asked on June 22, 2016 08:43

Hi I have upgraded my kentico site from version 8.2 to 9. There is lots of custom code but now it successfully upgraded. I am getting following error can anyone suggest solution for this.

The name 'IsFileTypeAllowed' does not exist in the current context

in this file C:\inetpub..\CMS\CMSFormControls\Basic\UploadControl.ascx.cs

Recent Answers


Dawid Jachnik answered on June 22, 2016 09:11 (last edited on June 22, 2016 09:17)

Hello,

did you perfom upgrade manually? It looks like this file was omitted, because the file "CMS\CMSFormControls\Basic\UploadControl.ascx.cs" doesn't exists in Kentico 9.

You should remove it.

BTW. This file was moved to "CMS\CMSFormControls\Media\UploadControl.ascx.cs" and it doesn't contains IsFileTypeAllowed

1 votesVote for this answer Mark as a Correct answer

sayali deshpande answered on June 22, 2016 09:20

I performed upgrade by upgrade tool only. If I remove this file then is there any possibility to affect other files?

0 votesVote for this answer Mark as a Correct answer

Dawid Jachnik answered on June 22, 2016 09:27

First check if the new file exists in "CMS\CMSFormControls\Media\UploadControl.ascx.cs", if exists login to Kentico check in the Form controls the UploadControl, check the File name (it should be Media/UploadControl.ascx). If it doesn't exists I would recommend you to restore your backups and make upgrade process again, because maybe more files are corrupted.

0 votesVote for this answer Mark as a Correct answer

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