Click here to Skip to main content
14,635,966 members
Rate this:
Please Sign up or sign in to vote.
I've added a new control to my aspx files and noticed that not only was the new control not added to the designer file but that it was also missing quite a few other controls that were added by other members of the team. I've tried deleting the designer.cs file and using "Convert to Web Application" with no success. Some other things i've tried have been excluding the aspx from the project, building, and then re-including with no success. I've also manually entered in a control that was missing in the designer into the designer. When I run after do so an error appears saying the control isn't defined, even though it actually is, and that I should check if I'm missing a directive.

The first control I added was copy and paste from a similar control and made necessary changes. But, i've also tried manually creating the control with the same results.
Posted
Updated 10-Jul-18 21:11pm
Comments
Sergey Alexandrovich Kryukov 28-Jun-11 11:46am
   
How anyone can know from your description where you messed up? Where is your code?
--SA
Rate this:
Please Sign up or sign in to vote.

Solution 1

From this and your previous questions, I believe you have serious issues in your entire solution/projects.
If this solution is not that large, then I would suggest that it may be in your best interest to have an experienced developer rebuild the solution from scratch or fix the existing issues (whichever is easier at this point) and then hand it back to you.
If you are using source control of some kind, you could also just revert back to the last "good" version that is in there and then reapply the changes from that point forward again.
   
Comments
Tech Code Freak 8-Mar-12 3:48am
   
Good suggestion! 5up!
Rate this:
Please Sign up or sign in to vote.

Solution 3

OFFTOPIC:

just a (a bit paranoic) tip, if the size of the project allows it, of course.

At the end of the afternoon before you live, do a *.zip/*.rar (or whatever format you like more) backup of the code-folder.

Keep the backups of the last 2 or 3 weeks as buffer, just in case. You never know what can happens on the next day.



Edit: Text corrections
   
v2
Rate this:
Please Sign up or sign in to vote.

Solution 2

I have faced the similar issue and the solution at below link work perfectly for me. Do try it.Its very simple and saves lots of efforts and time. http://swsharinginfo.blogspot.in/2012/03/regenerate-designer-file-in-visual.html[^]
   
v2
Comments
Tech Code Freak 8-Mar-12 3:48am
   
5up!
Rate this:
Please Sign up or sign in to vote.

Solution 4

1. Close designer.cs.

2. Change your aspx file to design view.

3. Right-Click –> Refresh.

4. Save
   
Comments
Ralf Meier 20-Oct-17 2:20am
   
I suppose the Enquirer solved his problem during the last 6 years ...
Rate this:
Please Sign up or sign in to vote.

Solution 5

resx file set access modifier as public
   

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

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100