Sharepoint List Template Id's

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

The Web Application at could not be found. Verify that you have typed the URL correctly


When running some C# code containing a reference to SPSite ie
string siteUrl = "http://servername/";
using (SPSite spSite = new SPSite(siteUrl))

I was getting the following error:

The Web Application at could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.

Solution: Go to Project Properties -> Build -> Target Platform -> Make it Any CPU (default is x86)

How to delete a corrupted Sharepoint list

Sometime you will find you have a currupted list that you cant delete through the normal way as when you try & access the list or the list settings the webpage throws errors.
In this case use STSADM
 
stsadm.exe -o forcedeletelist -url http://servername/Lists//

How to embed a powerpoint presentation into a Sharepoint page

Open a PowerPoint File
Save As > Other Formats > Save as type Single File Web Page
Upload the .mht file to a document library
Add a Page Viewer WebPart to a Page
Point the Page Viewer WebPart URL to the .mht file of that document library.
Now you can view your presentation in the webpart.

Converting a Sharepoint List into XML

This easiest way is to use the URL below & insert your list GUID
http://servername/site/_vti_bin/owssvr.dll?Cmd=Display&List=*YOURUNIQUELISTID*&XMLDATA=TRUE
To get the GUID of the list you need to go into the list & click ‘Settings’ -> ‘List Settings’.
Now if you look at your URL you will see something like:
/_layouts/listedit.aspx?List=%7B7B476F98%2D1075%2D4A6D%2D8F63%2D4C754B3F41FC%7D

The URL is encoded so you will need to replace “%7B” with “{” and “%7D” with “}” and “%2D” with “-” so the end result would look something like: {7B476F98-1075-4A6D-8F63-4C754B3F41FC}

Enable anonymous access on a Sharepoint site

To perform this procedure, an administrator must have enabled anonymous access for the Web application. If they haven’t done so, the Anonymous Access option does not appear.
  1. Open the site on which you want to enable anonymous access.
  2. On the Site Actions menu , click Site Settings.
Note: On a site for which the Site Actions menu is customized, point to Site Settings, and then click the settings that you want to view.

On the Site Settings page, in the Users and Permissions column, click Advanced permissions.
On the Permissions page, on the Settings menu, click Anonymous Access.
On the Change Anonymous Access Settings page, select the parts of your Web site that you want anonymous users to access.

Common Sharepoint Error codes

401 errors – These are generally access related.
401;1 Unauthorized access because the logon has failed
401;2 Unauthorized access because the logon has failed due to the server configuration
401;3 Unauthorized access because of an Access Control List (ACL) entry
401;4 Unauthorized access because an IIS filter is blocking access
401;5 Unauthorized access because of an ISAPI or CGI application

403 errors – These are security related also.
403;1 Forbidden because execute access isn’t allowed
403;2 Forbidden because read access isn’t allowed
403;3 Forbidden because write access isn’t allowed
403;4 Forbidden because SSL use is required
403;5 Forbidden because 128 bit SSL use is required
403;6 Forbidden because the IP address was rejected
403;7 Forbidden because a client certificate is required
403;8 Forbidden because access to the site is denied
403;9 Forbidden because too many users are presently attached to the site
403;10 Forbidden because of an invalid configuration
403;11 Forbidden because of an invalid password
403;12 Forbidden because the Web site requires a valid client certificate
403;13 Forbidden because the client certificate was revoked
403;14 Forbidden because the directory listing is denied
403;15 Forbidden because client access license count was exceeded
403;16 Forbidden because the client access certificate is invalid or untrusted
403;17 Forbidden because the client access certificate is expired or is not yet valid

424 Errors
424 errors normally show up when an application protection level is set too high. To cure this on your IIS server goto the web application, select the Properties Virtual Directory tab & set the Application Protection to Low (IIS Process).

500 Error
This is a generic internal error on the IIS server. A common cause of this error in a Sharepoint environment is that Check That File Exists check box in the Internet Service Manager is checked so check here first!

503 Error
This means a service has stopped running or hung, check in Event Viewer on the server to see which one is causing the problem.