Error: "A SharePoint server is not installed on this computer. A SharePoint server must be installed to work with SharePoint projects."
Step 1: from server machine/production server run regedit and export the folder (14.0):
HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Shared Tools > Web Server Extensions > 14.0
Step 2: On your local development machine, import the regedit file that you exported before or you can just only double click on exported regedit file. Then it will create a "Web Server Extensions" folder and the 14 hive registry for you.
Step 3: You will now be able to create a SharePoint Project in Visual Studio 2010.
On the VS 2010, build the solution (so that you generate .pdb files) and then right click on the project in the Solution Explorer and choose "Package". This will generate a .wsp file. Import this .wsp file to your SharePoint sites to see the result.
All SharePoint Server 2010 assemblies can be found under:
C:Program Files > Common Files > Microsoft Shared > Web Server Extensions > 14 > ISAPI
Disadvantages:
This approach remind me the old version of SharePoint (WSS 3.0). The developer need to have almost 10 steps to see the result of the codes. Except, you didn't have to edit your web config manually each time you created a webpart.
The best solutions is to install the VS 2010 at Hyper V server where your SharePoint Apps reside.
No comments:
Post a Comment