Recently i have been working with SharePoint 2010 to 2013 migration project on development server and when i was trying to migrate i got one problem.
I have SharePoint 2010 custom code solution file and i opened that solution using visual studio 2012 and it automatically converted the solution to SharePoint 2013 version.
And also i have changed user control path in .webpart file and deployed the solution.
Now i tried to add the web part to my page but it is throwing error.
then i checked the log files it was showing could not find the user control file.
Then i have checked the user control under 15, it was not there but it was there under 14 hive.
Then i realised that the solution has been deploying under 14 from visual studio.
Solution:
Solution for the problem is, The first thing you need to do is change your 'SharePoint Product Version' to "15.0". Doing this causes your solution to be treated as a SharePoint 2013 solution and will deploy all of the components to the correct locations.
I have SharePoint 2010 custom code solution file and i opened that solution using visual studio 2012 and it automatically converted the solution to SharePoint 2013 version.
And also i have changed user control path in .webpart file and deployed the solution.
Now i tried to add the web part to my page but it is throwing error.
then i checked the log files it was showing could not find the user control file.
Then i have checked the user control under 15, it was not there but it was there under 14 hive.
Then i realised that the solution has been deploying under 14 from visual studio.
Solution:
Solution for the problem is, The first thing you need to do is change your 'SharePoint Product Version' to "15.0". Doing this causes your solution to be treated as a SharePoint 2013 solution and will deploy all of the components to the correct locations.
Nice Blog Dude.
ReplyDelete