You are welcome.. Glad it helped …
The SharePoint Guide
This is again a limitation of sandboxed solutions. Only farm solutions will be able to deploy application pages or anything that needs to be deployed to the SharePoint hive.
Since Visual Webpart template is designed to be used with sandboxed solutions, it will not add this.Â
Prashanth
Thanks.
One more confusion-If we deploy an application(Farm Solution) with Visual Webpart template than a User control not being created in 15 Hive folder,Why?
and if we choose Visual Webpart(Farm Solution) than a user control created in 15 hive…
Any idea about this…
Hi Vipin,
The Visual Web Part can be used in sand box solutions and farm solutions but there are some restrictions to sand box solutions. See https://msdn.microsoft.com/library/gg615454.aspx for which explains about the restrictions of sandbox solutions. Sometimes, this is the only option if your production environment has set these restrictions or if you need to deploy to SharePoint online.
The Visual Web Part (Farm Solution Only) can be used only in Farm solutions so it does not have these restrictions.
Prashanth