Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > How to fix? View modes: 
User avatar
Member
Member
hungquang_itsyad-yahoo.com - 2/14/2012 10:56:57 PM
   
How to fix?
I added Image Slider web part

after Convert To Web Application, when I rebuild the solution, i have an error:

protected void SetupControl()
{
cmsrepeaterImageSlider.Path = this.Path;
.....
.....
}

Error 166 'System.Web.UI.UserControl' does not contain a definition for 'Path' and no extension method 'Path' accepting a first argument of type 'System.Web.UI.UserControl' could be found (are you missing a using directive or an assembly reference?)

How to fix?

Thank!

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 2/16/2012 12:40:51 PM
   
RE:How to fix?
If that code you posted can be edited by you, try casting cmsrepeaterImageSlider to its real class.

Like this:


((CMSWebParts_Viewers_Effects_ContentSlider)cmsrepeaterImageSlider).Path = this.Path;

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/18/2012 4:54:42 AM
   
RE:How to fix?
Hi,

What were the steps you made in order to convert to web application?
Were there any other problems?

Best regards,
Juraj Ondrus

User avatar
Member
Member
hungquang_itsyad-yahoo.com - 2/28/2012 5:25:42 AM
   
RE:How to fix?
please see picture below

User image



How to fix it?


Thank!

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/29/2012 6:19:02 AM
   
RE:How to fix?
Hi,

thank you for the image - however, could you please answer my previous question?

What were the steps you made when you were converting the project to web application?

Best regards,
Juraj Ondrus


User avatar
Member
Member
hungquang_itsyad-yahoo.com - 3/8/2012 12:30:24 AM
   
RE:How to fix?
I import step by step.

After step 4, I go to ~/App_Data/CMSTemp/ImportExport/Files - Include In Project - rebuilt
User image


then have error:

Error 2 The name 'cmsrepeaterImageSlider' does not exist in the current context D:\HOC TAP\UngDungTinHoc\Kentico\TestLocal\Sources\App_Data\CMSTemp\ImportExport\Files\CMSWebParts\MediaLibrary\ImageSliderBasic.ascx.cs 157 9 CMSApp


Error 3 The name 'ltlScript' does not exist in the current context D:\HOC TAP\UngDungTinHoc\Kentico\TestLocal\Sources\App_Data\CMSTemp\ImportExport\Files\CMSWebParts\MediaLibrary\ImageSliderBasic.ascx.cs 161 13 CMSApp

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/12/2012 2:09:16 AM
   
RE:How to fix?
Hi,

Thank you for the post however I am still not clear which steps are you following while converting the project to application. Could you please describe the process?

Thank you.

Best regards,
Juraj Ondrus