hi guys, I am working on a kentico 9 project that was previously developed by somebody else, now I am trying to open the project on visual studio 2017 and when running Home.aspx it shows me this 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: CS1061: 'ASP.cmstemplates_elections_views_templates_en_home_aspx' does not contain a definition for 'CMSRepeater1_ItemCommand' and no extension method 'CMSRepeater1_ItemCommand' accepting a first argument of type 'ASP.cmstemplates_elections_views_templates_en_home_aspx' could be found (are you missing a using directive or an assembly reference?)
Source Error:
<div class="row"> <div class="slider rsDefault" style="width: 1600px; height: 580px; margin: 0 auto;"> <cms:CMSRepeater ID="CMSRepeater1" DelayedLoading="true" runat="server" ClassNames="CMS_Elections.Slider" TransformationName="CMS_Elections.Slider.HomeSlider" OrderBy="NodeOrder" OnItemCommand="CMSRepeater1_ItemCommand" /> </div> </div>
What could be the problem? Please note that within this project, they were using a Template project structure and not a WebParts project structure.
You will want to make sure you build the application. There is a good chance you're missing files or have improper references.
Assuming you are talking about ASPX template, in the code behind, is there a CMSRepeater1_ItemCommand method?
hello, well after consulting with people who used to work on this project, it seems that I have included a file in the project directory that it should'nt be included, which caused all the errors. Thank you very much :)
Please, sign in to be able to submit a new answer.