Custom Web Part Load Error, "System.Web.HttpParseException'

Patrick Taylor asked on October 31, 2018 21:19

I added a custom CMSAbstractWebPart to a Kentico 11 Web App project then made the portal changes necessary to implement it in a page template. After adding it to the desired page template, I discovered that there was a web part load error. The event log revealed the cause to be "Exception type: System.Web.HttpParseException". I tried Brenden Kehren's recommendation of adding the full path to the CodeBehind, but that had no effect on the error, ( ). I also rebuilt the project several times but am still unable to load the web part. Any ideas?

Recent Answers

David te Kloese answered on November 1, 2018 11:29 (last edited on November 1, 2018 14:57)

Is the error showing up on the Live site, the Page tab, or just the design tab... and if you add it directly via the template?

Is there any logic in the Web Part yet? (try removing everything till it loads).

And as mentioned on slack if it's just your machine try clearing the .NET cache... check missing/reinstall modules nuget, missing iis features... special web.config... did you try in another (sample) project on same machine

Could also be something like different nuget version pacakges between the projects of your solution.

0 votesVote for this answer Mark as a Correct answer

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