This is a migrated thread and some comments may be shown as answers.

Pages.g.cs compilation error

6 Answers 55 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 10 Sep 2015, 10:24 AM

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.

 

6 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 10 Sep 2015, 03:45 PM
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!
0
Josh
Top achievements
Rank 1
answered on 10 Sep 2015, 04:12 PM
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>
0
Josh
Top achievements
Rank 1
answered on 10 Sep 2015, 04:13 PM

I couldn't edit the post apparently. 

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

0
Cody
Telerik team
answered on 10 Sep 2015, 04:58 PM
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!
0
Josh
Top achievements
Rank 1
answered on 11 Sep 2015, 09:25 AM
Thanks very much!
0
Cody
Telerik team
answered on 11 Sep 2015, 01:30 PM
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!
Tags
General Discussions
Asked by
Josh
Top achievements
Rank 1
Answers by
Cody
Telerik team
Josh
Top achievements
Rank 1
Share this question
or