Archive

Author Archive

SharePoint 2010 RTM Announced

March 8th, 2010 Dominick Cosgrove No comments

It’s almost here! Arpan Shah SharePoint Director announced that SharePoint 2010 and Office 2010 will be Release To Manufacture (RTM) in April 2010 with an official launch date of the 12th May 2010.

The announcement can be found on the  SharePoint Team Blog: SharePoint 2010 & Office 2010 Launch.

Categories: Uncategorized Tags:

Example of how to get the URL to SharePoint 2007 Form Pages

February 11th, 2010 Dominick Cosgrove No comments

You can use the following syntax to get the fully qualified URL to a Form for a SharePoint List / Library.

SPList list = SPContext.Current.List;

SPListItem item = list[0];

item.Web.Url + "/" + item.ParentList.Forms[PAGETYPE.PAGE_DISPLAYFORM].Url + "?ID=" + item.ID

 

PAGETYPE is an enumeration of the SharePoint Forms:

PAGE_DEFAULTVIEW

Default view. Value=0.

PAGE_DIALOGVIEW

File dialog box view. Value=2.

PAGE_DISPLAYFORM

Display form for list items. Value=4.

PAGE_DISPLAYFORMDIALOG

Display form for a file dialog box. Value=5.

PAGE_EDITFORM

Edit form for list items. Value=6.

PAGE_EDITFORMDIALOG

Edit form for a file dialog box. Value=7.

PAGE_INVALID

Not used. Value= -1.

PAGE_MAXITEMS

Not used. Value=11.

PAGE_NEWFORM

New form for list items. Value=8

PAGE_NEWFORMDIALOG

New form for a file dialog box. Value=9.

PAGE_NORMALVIEW

Normal view. Value=1.

PAGE_SOLUTIONFORM

Solution form. Value=10.

PAGE_VIEW

View, including both default view and normal view. Value=3.

List and Site Template IDs

February 11th, 2010 Dominick Cosgrove No comments

List Template IDs:

Template ID List Description
1200 Administrator tasks list
104 Announcements list
303 Blog Categories list
302 Blog Comments list
301 Blog Posts list
105 Contacts list
120 Custom grid for a list
118 Custom Workflow Process
130 Data Connection library
110 Data sources
108 Discussion board
101 Document library
106 Events list
150 Gantt Tasks list
100 Generic list
1100 Issue tracking
103 Links list
114 List template gallery
116 Master pages gallery
201 Meeting Agenda list
202 Meeting Attendees list
204 Meeting Decisions list
207 Meeting Objectives list
200 Meeting Series list
210 Meeting text box
211 Meeting Things To Bring list
212 Meeting Workspace Pages list
117 No-Code Workflows
2002 Personal document library
109 Picture library
300 Portal Sites list
2003 Private document library
111 Site template gallery
102 Survey
107 Tasks list
112 User Information list
113 Web Part gallery
119 Wiki Page library
140 Workflow History
115 XML Form library


 

WSS Site Template IDs: 

Template ID Site Description
STS#0 Team Site
STS#1 Blank Site
STS#2 Document Workspace
MPS#0 Basic Meeting Workspace
MPS#1 Blank Meeting Workspace
MPS#2 Decision Meeting Workspace
MPS#3 Social Meeting Workspace
MPS#4 Multipage Meeting Workspace
CENTRALADMIN#0 Central Admin Site
WIKI#0 Wiki Site
BLOG#0 Blog

MOSS Site Template IDs:

Template ID Site Description
BDR#0 Document Center
OFFILE#1 Records Center
OSRV#0 Shared Services Administration Site
SPS#0 SharePoint Portal Server Site
SPSPERS#0 SharePoint Portal Server Personal Space
SPSMSITE#0 Personalization Site
SPSMSITE#0 Contents area Template
SPSTOPIC#0 Topic area template
SPSNEWS#0 News Site
CMSPUBLISHING#0 Publishing Site
BLANKINTERNET#0 Publishing Site
BLANKINTERNET#1 Press Releases Site
BLANKINTERNET#2 Publishing Site with Workflow
SPSNHOME#0 News Site
SPSSITES#0 Site Directory
SPSCOMMU#0 Community area template
SPSREPORTCENTER#0 Report Center
SPSPORTAL#0 Collaboration Portal
SRCHCEN#0 Search Center with Tabs
PROFILES#0 Profiles
BLANKINTERNETCONTAINER#0 Publishing Portal
SPSMSITEHOST#0 My Site Host
SRCHCENTERLITE#0 Search Center
Categories: SharePoint 2007 Tags:

Custom Counter Sets in Visual Studio for Software Testers

February 9th, 2010 Dominick Cosgrove No comments

Visual Studio 2005 for Software Testers (VSST) allows you to create custom Counter Sets, which are a set of performance counters that can be applied to a computer in the test farm. VSST comes with some Counter Sets out-of-the-box (OOTB) for the Load Test, Controller and Agent amongst others:
clip_image002
Invariably when creating performance tests, you’ll develop them on a computer, which is not in the SharePoint Server Farm. This computer will most probably not have a number of the performance counters that you want to monitor. For instance SharePoint uses the w3wp (IIS) worker process, which unless you have IIS installed on your local machine, you will not be able to add the counters. To add the counters you need to specify a computer that has the counters that you require.

Typically I create a counter set for each of the server roles in the farm. This allows me to monitor different counters for different roles. For instance the Web Front End (WFE) servers counters are very different to the Back End SQL server. Joel Oleson has publish a good list of counters that the SharePoint Performance Team use.

Creating Custom Counter Set
1. Open or create a new Load Test in VSST;
2. Right mouse click on the Counter Set node and select Add Custom Counter Set;
clip_image004
3. In the properties pane give the newly created Counter Set a useful name e.g. SharePoint WFE, SharePoint DB, SharePoint Search e.t.c
4. Right mouse click the newly created Counter Set and select Add Counters;
clip_image006
5. Enter the name of the computer that you are going to collect the counters from e.g. SharePoint WFE or SQL Database server. The List of Performance Categories will be refreshed for the categories available on that server. If you select Process for instance, the list of instances will be different for the WFE and the DB servers. Select the required counters.
clip_image008
Note:
If you work in an environment where least privileges are employed you may not have sufficient right to add performance counters from a remote computer. You may encounter a message such as “Cant read performance counter categories for computer xxx”.
clip_image010
To be able to access the performance counters you need your system administrators to add you (or the account you are running the test under) to the following server roles:

  • Performance Log Users – Members of this group have remote access to schedule logging of performance counters on this computer
  • Performance Monitor Users – Members of this group have remote access to monitor this computer

Using Custom Counter Set
1. Open the Load Test where you created your custom counter set;
2. Right mouse click on Counter Set Mappings and Select Manage Counter Sets…;
clip_image012
3. In the Manage Counter Sets dialog box select Add Computer. Select the newly created Custom Counter Set and click OK;
clip_image014

References:

Failure adding assembly to the cache

January 31st, 2010 Dominick Cosgrove 3 comments

Issue

When copying files to the GAC I occasionaly get the following message in the Visual Studio OutPut window on my development VPC:

Failure adding assembly to the cache: Access denied. You might not have administrative credentials to perform this task. Contact your system administrator for assistance.

Also I cannot see any assemblies in the GAC through Windows Explorer, while it is this state.

clip_image002

Background

When developing features for SharePoint, it is common practice to deploy only the Signed Assembly to the GAC, rather that re-deploying the whole SharePoint solution. Personally depending on the project I use one of two mechanisms:

WSPBuilder – Copy to GAC

WSPBuilder is my tool of choice for increasing productivity while developing SharePoint Solutions. One of the functions of WSPBuilder is Copy to GAC, which does exactly as the name suggest:

clip_image004

PostBuild Task
Some clients don’t allow WSPBuilder to be installed or they prefer a more custom project structure. In these cases I tend to use Project Post Build Tasks. You can use the Edit Post Build… function to add parameters to your post build command, as shown below. I tend to use the GACUtil command to copy the assembly to the GAC and the iisapp.vbs to recycle the application pool. A sample script is show below. This is required to ensure that the Just In Time (JIT) compilation occurs again.

clip_image006

clip_image008

"%programfiles%\Microsoft Visual Studio 8\SDK\v2.0\Bin\GacUtil.exe" /if "$(TargetPath)" /nologo
"%systemroot%\system32\iisapp.vbs" /a "SharePoint – 9000" /r

Resolution

Although I cannot actually explain what is causing this issue, I found that if you restart the Indexing Service through the Windows Services Management Console, the problem is resolved.

If anyone has an explanation as to why this occurs I would be grateful.

clip_image010

SharePoint eMagazine

January 29th, 2010 Dominick Cosgrove No comments
Categories: Uncategorized Tags:

Global SharePoint User Group (GSPUG)

November 26th, 2009 Dominick Cosgrove No comments

The Global SharePoint User Group is having it’s first meeting on the 1st December 2009 @ 7pm ET. This will be the first virtualised SharePoint User Group, and will be presented via LiveMeeting.

If you can’t actually attend the user group meeting then they will be recorded so that you can watch them at your leisure.

They also have a survey to establish what topics / subject areas people want discussed. Make sure you take the time to complete this as this will be key to getting the right content out there.

http://www.gspug.org/

Categories: SharePoint Tags:

MS Loopback adapter

November 21st, 2009 Dominick Cosgrove No comments

If you need to browse your SharePoint site or for that matter any site, hosted on your VPC while you are not connected to a network, read on. If you are not connected to a network the VPC does not get an IP address issued hence why you cannot browse hosted sites. The solution to this is the MS Loopback Adapter. The following shows you how to set up your loopback adapter.

Add Loopback adapter

  1. Click Start, and then click Control Panel. Then click Add Hardware:
    image
  2. Select Yes, I have already connected the hardware:
    image
  3. From the list of devices select Add a new hardware device:
    image
  4. Select Install the hardware that I manually select from list (Advanced):
    image
  5. From the list of hardware types select Network Adapter:
    image
  6. From the list of Manufactures select Microsoft and from the list of Network Adapters select Microsoft Loopback Adapter:
    image
  7. Click Finish once the adapter is installed.
  8. The Loopback Adapter will now appear in you list of Network Connections:
    image

Configure Loopback Adapter

  1. In the Network Connections right mouse click on the newly created Loopback Adapter and select Properties;
  2. From the Properties select Internet Protocol (TCP/IP) and click Properties:
    image
  3. In the Properties add the IP address as follows:
    image 
  4. Click OK to commit the changes.

Configure VPC Network Adapter

  1. On Virtual PC (VPC) Console click Settings;
    image
  2. On the settings dialog box select Networking and then select Microsoft Loopback Adapter as the 1st Adapter. Click OK;
    image
  3. On the VPC click the Network icon in the task bar or navigate to the Network Connections through the control panel. The network icon may display a warning message “Limited or no connectivity”. Don’t worry about this at the moment;
    image
  4. On the Network Connections window, right mouse click on the Local Area Connection and click Properties;
    image
  5. On the TCP/IP settings for the Network adapter enter the following details. Click OK;image
  6. You will notice that the network icon on the desktop task bar no-longer displays the warning message;
  7. On the VPC, launch the Command Prompt and type IPConfig you should see that the VPC now has the IP address, subnet and gateway that you just entered;
    image
  8. From the VPC Command prompt ping 192.168.5.10 to confirm connectivity to the host;
    image 
  9. Ensure that you don’t have any network connectivity on your host computer, then from the Command Prompt ping the VPC 192.168.5.11 to confirm connectivity to the VPC;

Configure Host File

If your SharePoint (or website) uses Host Headers then you’ll need to edit your Host file:

  1.   Open your Host file C:\Windows\System32\Drivers\etc\host;
    image
  2. In the host file put the IP address of your VPC 192.168.5.11 and set the host in my case that is scratch;
     image
  3. You should now be able to browse your SharePoint (Web Site) hosted on a VPC even if you do not have connection to a network;
    image 

Office Update Centre now Live

November 20th, 2009 Dominick Cosgrove No comments

image

Today Microsoft TechNet has launched the Update Centre for Microsoft Office, Office Server and Related Products. This site will will consolidate all Service Packs, Public Updates and Cumulative updates for the Office Product suite in one location. Please note that this is not just for the Office Desktop products but also includes the server products i.e. SharePoint.

The site includes:

  • Latest Updates;
  • Updates in the last year;
  • Update Resources;
  • An RSS feed of the updates;

This will be a valuable resource for all system administrators and is something that has been long over due.

Categories: Random Tags:

SharePoint 2010 Beta 2 – Available for MSDN Subscribers

November 17th, 2009 Dominick Cosgrove No comments

imageOffice and SharePoint 2010 Betas are available for MSDN Subscribers:

    Make sure you download Visual Studio 2010 Beta 2 that was released a couple of weeks ago, this will be the Developer Tool of choice.
Categories: 2010 Tags: