Open kentico project using visual studio

hassan kalach asked on October 30, 2017 09:35

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.

Correct Answer

Brenden Kehren answered on October 30, 2017 14:06

You will want to make sure you build the application. There is a good chance you're missing files or have improper references.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Rui Wang answered on October 30, 2017 13:28

Assuming you are talking about ASPX template, in the code behind, is there a CMSRepeater1_ItemCommand method?

0 votesVote for this answer Mark as a Correct answer

hassan kalach answered on October 30, 2017 14:09

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 :)

0 votesVote for this answer Mark as a Correct answer

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