R – VSeWSS Administrator Privileges and entry

administratorasp.netsharepointvisual studio

I am trying to deploy my first custom aspx page in sharepoint:

  • Windows Server 2003
  • Microsoft Visual Studio 2008
  • VSeWSS 1.3
  • Latest Sharepoint Patches as of May 28, 2009

I am following this detailed howto:

http://geeksconnected.com/jamil/Lists/Posts/Post.aspx?ID=19

Unfortunately, it quickly becomes incomplete toward the bottom. I am running into two issues thus far:

  1. How do you grant the VSeWSS Administrator privileges so that the "Deploy" option will work in Visual Studio?

  2. It cuts off half of the <SafeControl> tag in the example, and I am not sure what to put after the PublicKeyToken= option. All current attempts completely break sharepoint.

Any solutions and explanations would be appreciated. Thanks in advance for any help.

Best Answer

Do yourself a favor and use WSPBuilder and its companion SPVisualDev instead of VSeWSS. Both of these tools are on CodePlex.com

They will take care of your safecontrols problem by adding that into the WSP file that any SharePoint administrator can install. (Frankly, modifying web.config by hand in a SharePoint environment is a big no-no in my mind, especially safecontrols)

They will also not need the elaborate 2-project spoof just to have a codebehind for an ASPX page that the article you quoted promotes. SPVisualDev will give you the option to do 'add new item' in visual studio and select a new Page or UserControl with codebehind, and take care of the deployment through WSP. Easy as!