Contents
Is there an initializecontrol in Visual Studio 2010?
A while ago Microsoft provided us with Visual Studio 2010 SharePoint Power Tools – a set of productivity extensions for the Visual Studio 2010 SharePoint Developer Tools.
Where can I find the initializecontrol.ascx file?
To test it I created a new webapp with a site collection eg.: http://mysomething:5040 and visual web part was created successfully with the design file “….g.cs”. You are probably missing VisualWebpartName.ascx.c.gs file under your VisualWebpartName.ascx. Right click your VisualWebpartName.ascx and select Run Custom Tool .
Is the name’initializecontrol’in the current SharePoint project property?
I noticed that a lot of people is having this issue ,, its seems this issue is not related to specific thing ,,, it can be one of the following the site URL in the SharePoint project property is not valid [ This happens when you copy past the solution from one environment to another ] Missing designer files just like @hir said.
How to run custom tool in visualwebpartname.ascx?
Right click your VisualWebpartName.ascx and select Run Custom Tool . This will recreate .c.gs file and all errors will be gone.
Is the visual web part sandboxed in power tools?
One of the improvements shipped with the Power Tools is the Visual Web Part (Sandboxed) that – as the name says it – allows you to both benefit of the great design capabilities of Visual Web Part while still being able to deploy it to Sandbox.
When I build the project, it throws this error “The name ‘InitializeControl’ does not exist in the current context”. I’ve also tried using the “SharePoint 2010 Project” and “SharePoint 2010 Visual Web Part” VS 2012 Project templates targeting .NET Framework 3.5, .NET Framework 4.0 and .NET Framework 4.5 but I still get the same error.