Convert Web application to website

Vadlamani . asked on November 2, 2020 08:47

Hello, I have a web application and exported it. I imported it into kentico (website) portal engine, and could see some of our widget throwing error. Error loading the WebPart 'IM_Widgets_IMG_LEFT_TXT_RIGHT' of type 'IM.Widgets.IMG_LEFT_TXT_RIGHT'] [Error loading the WebPart 'IM_Widgets_Statistics' of type 'IM.Widgets.Statistics'] [Error loading the WebPart 'IM_ImageRightTextLeft' of type 'IM.ImageRightTextLeft'] [Error loading the WebPart 'IM_Widgets_ContentColumn_Header1' of type 'IM.Widgets.ContentColumn_Header']

Please help me to resolve this.

Recent Answers


Juraj Ondrus answered on November 2, 2020 09:25

I would recommend to check on the Internet the differences between web app and web site projects and their code files. Also, check the Event log for more detailed error. But, my guess is that you have not changed the ASCX code markup and the CodeBehind vs. CodeFile attribute. You need to manually change the markup to fit web site project type.

0 votesVote for this answer Mark as a Correct answer

Vadlamani . answered on November 2, 2020 09:56

We have used Layouts for the web part/widgets and no code behind. Getting exceptions only for those we have layouts.

The webparts which we have used code behind and ascx implementation works fine.

Checked in events log and found the below error: httpparse... error

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on November 2, 2020 10:06

Even in the layout there is the ASCX markup for the control, for example:
<%@ Control Language="C#" AutoEventWireup="true" Inherits="someClassName" Codebehind="~/SopmePath" %> - this is for web application.
For web site project, there is the CodeFile atteribute instead. You need to update these. Exporting from web app and importing to web site project is not the way how to convert the project type. It is much more complicated.

0 votesVote for this answer Mark as a Correct answer

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