Click here to Skip to main content
15,888,293 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi

I have many user controls in my web application project. I have added a label in one of the user control, but its designer.cs file is not getting updated. Also I tried with removing the designer.cs and regenerating using "Convert to Web application", but I am getting this error "Generation of the designer file for failed: Collection was modified; enumeration operation may not execute."
Posted
Comments
Sergey Alexandrovich Kryukov 24-Sep-13 9:48am    
What do you mean by "designer.cs"? There are no well-known fixed-name files. Do you mean just a part of file name?
Then I'm sure you are mistaken.
—SA
Mehul M Thakkar 24-Sep-13 9:50am    
it is about page.designer.cs(e.g. default1.aspx.designer.cs) or usercontrol.designer.cs(e.g. uc1.ascx.designer.cs) . Hope it is clear my question now.
Sergey Alexandrovich Kryukov 24-Sep-13 10:13am    
Thank you for confirmation. As I say, I don't believe your observations are correct. However, if you think they are, you would need to provide step-by-step instructions to reproduce the problem. 1) Run Visual Studio, 2) In Solution Explorer, select project type... and so on.

You would need to generate most simplified code text for this exercise. But chances are, if you try to pay so much attention for detail, the problem may disappear... :-)

—SA
Mehul M Thakkar 24-Sep-13 12:38pm    
yes, in the case of code written by us, but if it is written by someone and need enhancement in it for that we can not rewrite everything :). still I'm trying. For the another error "Generation of the designer file for failed: Collection was modified; enumeration operation may not execute." I got the solution that Microsoft has released RC3 for that. I will check with that.
Sergey Alexandrovich Kryukov 24-Sep-13 13:00pm    
In other words, you don't know how to reproduce this problem (the first one) from scratch.
But if you cannot, you cannot prove to us that the problem even exists. Too bad...
It's good that you resolved the second one, thanks you for the note.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900