Pages.g.cs compilation error

7 posts, 0 answers
  1. Josh
    Josh avatar
    5 posts
    Member since:
    Sep 2015

    Posted 10 Sep 2015 Link to this post

    Any page which contains code I am receiving the following error when trying to compile:

     d:\Test Studio Projects\Client Site\Pages.g.cs: Line 2870: (CS0102) The type 'Client_Site.Pages.IFLFXecutePaymentsSystem20Page.ExpressionDefinitions' already contains a definition for 'TableCell'
    d:\Test Studio Projects\Client Site\Pages.g.cs: Line 2848: (CS0102) The type 'Client_Site.Pages.IFLFXecutePaymentsSystem20Page' already contains a definition for 'TableCell'

     

    All these test cases used to work fine, and seemed to suddenly stop working..

    Anyone able to assist? Thanks, Josh.

     

  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 10 Sep 2015 Link to this post

    Hi Josh,

    That is very strange you are getting this particular error. It should not be possible to get an error like that. To diagnose the problem we need a copy of your entire test project so we can analyze it and determine what is the root cause. Can you put your entire test project into a .zip file and attach that? If it's larger than 20MB let me know and I'll provide an alternate method of uploading it.


    Regards,
    Cody
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  3. Josh
    Josh avatar
    5 posts
    Member since:
    Sep 2015

    Posted 10 Sep 2015 in reply to Cody Link to this post

    Hi thanks, was over 20MB so uploaded to here <a href=http://www.filedropper.com/clientsite-copy><img src=http://www.filedropper.com/download_button.png width=127 height=145 border=0/></a><br /><div style=font-size:9px;font-family:Arial, Helvetica, sans-serif;width:127px;font-color:#44a854;> <a href=http://www.filedropper.com >online backup</a></div>
  4. Josh
    Josh avatar
    5 posts
    Member since:
    Sep 2015

    Posted 10 Sep 2015 Link to this post

    I couldn't edit the post apparently. 

    Here's the link to the upload: http://www.filedropper.com/clientsite-copy

  5. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 10 Sep 2015 Link to this post

    Hello,

    Found it! Somehow you managed to record an element name that has a special symbol in it - see attached screen shot. When we go to generate the pages.g.cs file we strip the special symbol (it's not legal in code) which results in a name conflict with the other already existing "TableCell" element.

    Fortunately the fix is easy. Just change the name of one element or the other so that it doesn't result in a name conflict.

    I'm also filing a problem report using your project as an example so that our development team can prevent this conflict from happening in the future.

    P.S. you can cut the size of your project folder in half by deleting the Backup folder. It looks like an old backup copy that is no longer needed.

    Regards,
    Cody
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  6. Josh
    Josh avatar
    5 posts
    Member since:
    Sep 2015

    Posted 11 Sep 2015 in reply to Cody Link to this post

    Thanks very much!
  7. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 11 Sep 2015 Link to this post

    Hello,

    I am glad I could assist.

    Regards,
    Cody
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top