I am trying to create Visual Webpart(Sandboxed) with the help of power tool we have.
But it is not creating the designer file (ascx.g.cs) and it is not compiling.
Initially I used to have Visual studio 2010 where the ascx file has a limit of 8256 characters. I then upgraded to Visual Studio 2010 SP1 and now the designer file is completely gone.
I saw lot of threads based on this, but none of them has a perfect solution.
I tried installing visual studio 2010 sp1 again and I also tried different machines/servers but it didn’t help.
Any help would be appreciated.
Finally I got resolved…
Here is the solution for all the questions
First thing to work with Sandbox webpart you need to have Visual Studio 2010 SP1 and the user logged in as visual studio should have db_owner permissions for the 3 databases Sharepoint_Admin_Guid,
Sharepoint_Config, content database of the web application you are deploying.
In visual studio 2010 you have char limitation of 8256( fixed in SP1).
http://blog.mastykarz.nl/the-name-initializecontrol-does-not-exist-in-the-current-context-visual-web-part-sandboxed-bug-fix/