WebPart Control stops creating/amending the ascx.g.cs File - by JeffreyJa3

Status : 


Sign in
to vote
ID 800844 Comments
Status Active Workarounds
Type Bug Repros 0
Opened 9/15/2013 8:39:20 PM
Access Restriction Public


I have an issue building 2 webpart projects that have multiple UserControls.ascx for different users/reasons.  For some reason the ascx.g.cs file is no longer automatically generating itself causing the error "The name 'InitializeControl' does not exist in the current context" along with other errors related to the ascx.g.cs file no being automatically populated.  I have attached the projects so the error can be reproduced.  I am using VS2012 with latest updates.
Sign in to post a comment.
Posted by Hoots on 11/8/2013 at 7:47 AM
I also discovered that if the markup is wrong this will prevent the ascx.g file being generated. Can replicate this by adding two Width attributes to a Sharepoint:DVDropDownList.
Posted by Microsoft on 9/17/2013 at 5:25 AM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Microsoft on 9/15/2013 at 8:51 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)