:: Home     :: MS Dynamics CRM     :: .Net 1.1     :: .Net 2.0     :: Sharepoint Portal     :: Ajax

  login:         
  passwords:  

Microsoft SharePoint Interview Questions

General Interview Questions

SharePoint 2007 Interview Questions[1]
SharePoint 2007 Interview Questions[2]

SharePoint Developer Interview Questions

SharePoint Developers Interview Qs[1]
SharePoint Developers Interview Qs[2]

SharePoint Administrator Interview Questions

SharePoint Administrator Interview Qs
SharePoint Administrator Interview Qs[1]

SharePoint 2007 Articles

Creating Creating Website Using Share point 2007 Step by Step
Creating a Custom SharePoint 2007 Portal Site Definition using the PortalProvisioningProvider Class
How to implement Forms-based authentication for Office SharePoint Server 2007 by using SQL Server
How to configure the Excel Services Unattended Service account in Microsoft Office SharePoint Server 2007
Error message when you try to open a help window from a SharePoint Server 2007 site or from a Windows SharePoint Services 3.0 site: "Cannot display help
Mobile browsers and devices that are supported in Windows SharePoint Services 3.0 and in SharePoint Server 2007
How to move a WMSDE content database that resides on a Windows SharePoint Services 2.0 server to a Windows SharePoint Services 3.0 server
Sharepoint 2007 Content Query Tool Part Custom Fields
Error message when you try to create an .aspx Web page in a Web application in SharePoint Server 2007: "Access denied"
Content Types, Columns and Page Layouts Explained
Managing the SDLC in Microsoft Office SharePoint Server 2007 and WSS
How to Activate the Drop Down Menu in MOSS Sites
Using Background Images in your Site Design
Align your Search Inputs
Check-in, Publish and Approve in One Step
How to specify a Theme
How to tell if your WSS site is on a WSS only install of SharePoint
Creating the Custom Item Style
Welcome Menu Arrow Display
Writing the WebParts - The OPMLEditor WebPart
Creating a Custom Policy File
How to install WSS and MOSS SP1
How to customize application pages in the Layouts folder in SharePoint Server 2007
You receive error messages after you install security update
How to prevent SharePoint Designer 2007 users from changing a Windows SharePoint Server 2007 site
Publish button is not displayed when you create a site based on the Publishing Portal site template in SharePoint Server 2007
How to manually collocate ProClarity Analytics Server 6.3 and SharePoint Server 2007 on port 80
cannot create a list that is based on a list template that has the E-Mail Notification option enabled in Sharpoint 2007
Error message when you try to restore a SharePoint Portal Server 2003 site collection that contains subsites:
Guidelines for managing the Group Approval workflow process in SharePoint Server 2007
Adobe Reader files cannot be found after you add the .pdf file type to the list of crawled file types in SharePoint Server 2007
A maximum number of 25 sessions can be active at the same time on Excel Services when you enable anonymous access to a SharePoint Server 2007 Web site
Receive an error message when you use Excel Web Access to refresh the data connections for an Excel 2007 workbook
An error message when you deactivate or remove a form from a form server
Cannot create a new document or check out an existing document in a Windows SharePoint Services 3.0 document library when you have multiple versions of Office installed
The "Operation in Progress" message remains visible after the page is loaded
Search results include draft documents in SharePoint Server 2007
Error message when you try to migrate content from Content Management Server 2002 to SharePoint Server 2007: "Unable to connect to the database server"
The data in a workbook is not displayed when you use Excel Web Access to open a workbook that queries a Jet database
Complex remote links are not crawled when the links are in the same SharePoint Server 2007 portal
After you delete a SharePoint Portal Server Web site, the Web site still appears in the Gatherer log file
Do not receive e-mail notifications after you configure an alert to notify you when Web site content is changed in SharePoint Portal
After you change the quota values in a template in Windows SharePoint Services, the quota values in the existing sites do not change
Windows SharePoint Services does not synchronize a new name change to Active Directory
You cannot crawl case-sensitive Web content in SharePoint Server 2007

SharePoint 2003 Articles

receive a "The server couldn't log you on" error message when you use an Office 2003 program to connect to a Windows SharePoint Services server
Users can create a listing in a portal site area, but they cannot delete or modify the listing in SharePoint Portal Server 2003
Survey results in SharePoint Portal Server 2003 and in Windows SharePoint Services are not exported to an Excel workbook if the answer to a question uses a rating scale
Crawls take a longer time to be completed when you use a third-party single-threaded IFilter in SharePoint Portal Server 2003
You receive a "Can not add the user” error message when you try to add a user to a SharePoint Portal Server 2003 portal site or to a Windows SharePoint Services Web site that is hosted on a SharePoint Portal Server 2003 portal site
Error message when you try to compile audiences in SharePoint Portal Server 2003: "The audience cannot be compiled, because the account used to compile audiences does not have the proper rights"
Office 2003 and 2007 Office documents open read-only in Internet Explorer
Two versions of the same document appear when you put a document in a SharePoint Server 2003 document library
You do not have permission to upload this document" error message when you upload a document to a document library in SharePoint Portal Server 2003
How to change the user account and the password in SharePoint Portal Server 2003
How to change the location of the Web Storage System in an automated installation of SharePoint Portal Server 2003
How to install SharePoint Portal Server 2003 and Project Server 2003 on the same server
How to use PKMCDO to programmatically upload a document to a folder in Visual C#
How to move SharePoint Portal Server 2003 from MSDE to SQL Server
How to use the SharePoint Administrator to upgrade to FrontPage 2002 server extensions on Windows Server 2003
Link bar with custom links does not appear in SharePoint Portal Server 2003 or in SharePoint Services
No search results are returned when you search a Windows SharePoint Services Web site from a portal site in SharePoint Portal Server 2003
How to set up an iFilter for OneNote 2003 with SharePoint Portal Server 2003
How to view and manage site collection users in SharePoint Portal Server 2003
Content is missing from search results after you restore SharePoint Portal Server 2003 data to another server
Icons are not displayed for Adobe PDF documents that are listed in the search results when you search your portal site in SharePoint Portal Server 2003
How to set up an iFilter for OneNote 2003 with SharePoint Portal Server 2003
How to re-create a deleted Site Directory in SharePoint Portal Server 2003
Receive a "Cannot generate SSPI context" error message and the configuration database is not created when you run SharePoint Portal Server 2003 Setup
How to rename a computer that is running SharePoint Portal Server 2003
How to import user profile information of enabled user accounts from Active Directory to SharePoint Portal Server 2003
Overview of custom templates in SharePoint Portal Server 2003 and in Windows SharePoint Services
Information about installing the Lotus Notes Protocol Handler for SharePoint Portal Server 2003
How to configure Usage Analysis Processing on a Web server by using SharePoint Portal Server 2003
Receive a "You are not authorized to perform the current operation" error message when you use Smigrate.exe to back up a Windows SharePoint Services Web site
Receive an SQL access error message when you change the configuration database administrator account in SharePoint Portal Server 2003
You are not prompted to confirm the delete operation when you delete an alternate portal site setting in SharePoint Portal Server 2003
Portal Appears to Be Missing Content After You Upgrade to SharePoint Portal Server SP2
Differences Between the SMTP Server Name and the E-mail Address in a Server's Properties
Error Message: The Command REGSVR32 /S CDOWFEVT.DLL Failed
How to Redirect Traffic from Your Default Web Site to a Workspace
Receive a Script Execution Error: Error executing INVOKE query Error Message When You Review the Document Library on an Extranet Web Site
Added Field Names Are Not Displayed in List View Page
Deleted Column Does Not Appear After You Restore Database from Backup
Cannot Filter a Custom List by Using the Hyperlink Field
All Documents View in Document Library Displays All Files Regardless of Subfolders
How to Set the Cutoff Property for New Item Display Tag
Users Do Not Have Access to a Subweb in Web Based on SharePoint Team Services
How to Move Files Between Document Libraries
Error Message: There Is No Catalog
Error 18452 While Extending a SharePoint Team Web Site
Error Message: The Document Could Not Be Opened
How to Invite an Existing Distribution List to Your SharePoint Team Web Site
How to Make the Calendar View the Default View for an Event List
Cannot Import Contacts If a Column Is Deleted from the Contacts List
you Cannot View a Page to Which You Should Have Access
How to configure Usage Analysis processing on a Windows 2000 Server that is running the FrontPage 2002 Server Extensions or SharePoint Team Services
Errors When You Browse to SharePoint Team Services Site Administration Page
ADO Error Appears in the Application Log After You Upgrade to SharePoint Team Services
Use SharePoint Administrator to Upgrade IIS 4.0 or IIS 5.0 with FrontPage 2002 Server Extensions
How to stop the !New tag from appearing when you add items to your SharePoint Team Services and SharePoint Services Web site
you receive a "Service Unavailable" error message when you browse a Windows SharePoint Services 2.0 Web site
List of the database and virtual server settings that you must specify when you restore a portal by using SharePoint Portal Server Central Administration
SQL error when you try to access SharePoint Team Web site
How to start Usage Analysis processing on an IIS Web server
cannot deserialize the Web Part error message when you view the SharePoint Services home page
How to enable an ASP.Net application to run on a SharePoint virtual server
Cannot Upload File to SharePoint Team Services Document Library
How to Change the Color of the Vertical Right Border in a SharePoint Team Web Site
Presence icon does not appear when you browse an Internet-hosted SharePoint Portal Server Web site
Cannot Check in a File After You Check It out by Using Built-in Source Control
How to Change the Color of the Horizontal Top Banner
Error Message After You Change Password: ADO Error 80040E4D: Login Failed for User 'sa'
How to Turn on Global Logging for SharePoint Team Services
receive a "The location you selected for your new Document Workspace is a restricted or non-trusted site" message when you try to create a document workspace
Databases are not removed from SQL Server when you remove Windows SharePoint Services
How to add members of a distribution list to your Windows SharePoint Services Web site
MSDE Setup Unexpectedly Starts and You Receive an "Unable to Run Script File" Error Message When You Add or Remove a Windows Component on a Server That Is Running Windows SharePoint Services and WMSDE
How to turn off Windows SharePoint Services features in Outlook 2003
Cannot edit the lookup field of a linked Windows SharePoint Services list when you link the list in an Access 2003 database
You cannot save changes to an XSLT Data View Web Part in FrontPage 2003
Must enable Basic authentication for browsers running on Macintosh OS
Hyperlinks Are Updated Even Though You Choose Not to Update Them
How to use Windows SharePoint Services calendars in Outlook
You receive a "The page cannot be found" error message when you connect to Project Server 2003 by using Project Web Access
Error messages when you access a Microsoft Project Web Access page that contains grids
Error Message with Search Component in SharePoint Team Services: No Records Were Found Matching Your Query
A Blank, White Web Page Is Displayed in Internet Explorer When You Try to View Documents in the Document Library in Explorer View
How to submit an InfoPath form to a Windows SharePoint Services document library
How to use a URL parameter to filter a Data View Web part in FrontPage 2003
Notebook opens as read-only from a Windows SharePoint Services document library in OneNote 2003
How to change the application pool identity for Windows SharePoint Services administration and content virtual servers
Receive an "Access denied" or a "Cannot complete this action" error message when you try to connect to a Windows SharePoint Services Web site
Extension of a virtual server with Windows SharePoint Services 2.0 does not complete successfully when you use Active Directory account creation mode

WPF Interview Qs

SilverLight Interview Qs

SAP Interview Questions

Oracle Interview Questions

PHP Interview Questions

Ajax Interview Questions

IIS 7.0

OOP Interview Questions

Ruby Interview Questions

Sql Server Interview Questions

Winforms Interview Questions

Microsoft Crm Questions

Miscrosoft Share Point 2007 Interview Questions for Developer

The General Share Point 2007 Interview Questions consists the most frequently asked questions in Share Point. This list of 100+ questions guage your familiarity with the Share Point platform. The q&a have been collected over a period of time from various blogs, forums and other similar Share Point sites

3. Microsoft Share Point 2007 Interview Questions for Developers

    3.1 What is the GAC?
    3.2 What is strong naming (signing) a WebPart assembly file mean?
    3.3 What are safe controls, and what type of information, is placed in that element in a SharePoint web.config file?
    3.4 What is the CreateChildControls() method? How can you use it to do something simple like displaying a Label control?
    3.5 What does the RenderContents method do in an ASP.NET 2.0 WebPart?
    3.6 ) What is the WebPartManager sealed class? What is its purpose?
    3.7 What is a SPSite and SPWeb object, and what is the difference between each of the objects?
    3.8 ) How would you go about getting a reference to a site?
    3.9 What does a SPWebApplication object represent?
    3.10 Would you use SPWebApplication to get information like the SMTP address of the SharePoint site?
    3.11 How do you connect (reference) to a SharePoint list, and how do you insert a new List Item?
    3.12 How do you return SharePoint List items using SharePoint web services?
    3.13 How can we find the number of rows in a result set using PHP?
    3.14 When retrieving List items using SharePoint Web Services, how do you specify explicit credentials to be passed to access the list items?
    3.15 What is CAML, and why would you use it?
    3.16 What is impersonation, and when would you use impersonation?
    3.17 What is the IDesignTimeHtmlProvider interface, and when can you use it in WebParts?
    3.18 What are WebPart properties, and what are some of the attributes you see when declaring WebPart properties in code?
    3.19 Why are properties important in WebPart development, and how have you exploited them in past development projects? What must each custom property have?
    3.20 What are ClassResources? How do you reference and deploy resources with an ASP.NET 2.0 WebPart?

3.1 What is the GAC?

The GAC stands for the global assembly cache. It is the machine wide code cache which will give custom binaries place into the full trust code group for SharePoint. Certain SharePoint assets, such as Feature Receivers need full trust to run correctly, and therefore are put into the GAC. You should always try to avoid deployment to the GAC as much as possible since it will possibly allow development code to do more than it was intended to do.


3.2 What is strong naming (signing) a WebPart assembly file mean?

Signing an assembly with a strong name (a.k.a strong naming) uses a cryptographic key pair that gives a unique identity to a component that is being built. This identity can then be referred throughout the rest of the environment. In order to install assemblies into the GAC, they must be strongly named. After signing, the binary will have a public key token identifier which can be use to register the component in various other places on the server.


3.3 What are safe controls, and what type of information, is placed in that element in a SharePoint web.config file?

When you deploy a WebPart to SharePoint, you must first make it as a safe control to use within SharePoint in the web.config file. Entries made in the safe controls element of SharePoint are encountered by the SharePointHandler object and will be loaded in the SharePoint environment properly, those not will not be loaded and will throw an error. In the generic safe control entry (this is general, there could be more), there is generally the Assembly name, the namespace, the public key token numeric, the typename, and the safe declaration (whether it is safe or not). There are other optional elements.


3.4 What is the CreateChildControls() method? How can you use it to do something simple like displaying a Label control?

The CreateChildControls method in WebParts is used to notify the WebPart that there are children controls that should be output for rendering. Basically, it will add any child ASP.NET controls that are called instantiating each control with its relevant properties set, wire any relevant event handlers to the control, etc. Then the add method of the control class will add the control to the controls collection. In the relevant WebPart render method, the EnsureChildControls method can be called (or set to false if no child controls should be called) to ensure that the CreateChildControls method is run. When using CreateChildControls it implies that your WebPart contains a composition of child controls.

In order to create something like a label control in Create, you would create a new label control using the new keyword, set the various properties of the control like Visible=True and ForeColor = Color.Red, and then use Controls.Add(myLabelControl) to add the control to the controls collection. Then you can declare EnsureChildControls in the Render method of the WebPart.


3.5 What does the RenderContents method do in an ASP.NET 2.0 WebPart?

The render contents method will render the WebPart content to the writer, usually an HtmlTextWriter since WebParts will output to an HTML stream. RenderContents is used to tell how the controls that are going to be displayed in the WebPart should be rendered on the page.


3.6 What is the WebPartManager sealed class? What is its purpose?

The WebPartManager sealed class is responsible for managing everything occurring on a WebPart page, such as the WebParts (controls), events, and misc. functionality that will occur in WebPartZones. For example, the WebPartManager is responsible for the functionality that is provided when you are working with moving a WebPart from WebPartZone to WebPartZone. It is known as the “the central class of the Web Part Control Set.”


3.7 What is a SPSite and SPWeb object, and what is the difference between each of the objects?

The SPSite object represents a collection of sites (site collection [a top level sites and all its subsites]). The SPWeb object represents an instance SharePoint Web, and SPWeb object contains things like the actual content. A SPSite object contains the various subsites and the information regarding them.


3.8 How would you go about getting a reference to a site?

Select For Unformatted Code
C#:
1. oSPSite = new SPSite("http:/server");
2. 3. oSPWeb = oSPSite.OpenWeb();
Internet Explorer 6, Netscape Navigator 6.2 or later.


3.9 What does a SPWebApplication object represent?

The SPWebApplication objects represents a SharePoint Web Application, which essentially is an IIS virtual server. Using the class you can instigate high level operations, such as getting all the features of an entire Web Application instance, or doing high level creation operations like creating new Web Applications through code.


3.10 Would you use SPWebApplication to get information like the SMTP address of the SharePoint site?

Yes, since this is a Web Application level setting. You would iterate through each SPWebApplication in the SPWebApplication collection, and then use the appropriate property calls (OutboundMailServiceInstance) in order to return settings regarding the mail service such as the SMTP address.


3.11 How do you connect (reference) to a SharePoint list, and how do you insert a new List Item?

Select For Unformatted Code
C#:
1. using(SPSite mySite = new SPSite("yourserver"))
2. {
3. using(SPWeb myWeb = mySite.OpenWeb())
4. {
5. SPList interviewList = myWeb.Lists["listtoinsert"];
6. SPListItem newItem = interviewList.Items.Add();
7. 8. newItem["interview"] = "interview";
9. newItem.Update();
10. }
11. }


3.12 How would you loop using SPList through all SharePont List items, assuming you know the name (in a string value) of the list you want to iterate through, and already have all the site code written?

Select For Unformatted Code
C#:
1. SPList interviewList = myWeb.Lists["listtoiterate"];
2. foreach (SPListItem interview in interviewList)
3. {
4. // Do Something
5. }


3.13 How do you return SharePoint List items using SharePoint web services?

In order to retrieve list items from a SharePoint list through Web Services, you should use the lists.asmx web service by establishing a web reference in Visual Studio. The lists.asmx exposes the GetListItems method, which will allow the return of the full content of the list in an XML node. It will take parameters like the GUID of the name of the list you are querying against, the GUID of the view you are going to query, etc.


3.14 When retrieving List items using SharePoint Web Services, how do you specify explicit credentials to be passed to access the list items?

In order to specify explicit credentials with a Web Service, you generally instantiate the web service, and then using the credentials properties of the Web Service object you use the System.Net.NetworkCredential class to specify the username, password, and domain that you wish to pass when making the web service call and operations.


3.15 What is CAML, and why would you use it?

CAML stands for Collaborative Application Markup Language. CAML is an XML based language which provides data constructs that build up the SharePoint fields, view, and is used for table definition during site provisioning. CAML is responsible for rending data and the resulting HTML that is output to the user in SharePoint. CAML can be used for a variety of circumstances, overall is used to query, build and customize SharePoint based sites. A general use would be building a CAML query


3.16 What is impersonation, and when would you use impersonation?

Impersonation can basically provide the functionality of executing something in the context of a different identity, for example assigning an account to users with anonymous access. You would use impersonation in order to access resources on behalf of the user with a different account, that normally, that wouldn’t be able to access or execute something.


3.17 What is the IDesignTimeHtmlProvider interface, and when can you use it in WebParts?

The IDesignTimeHtmlProvider interface uses the function GetDesignTimeHtml() which can contain your relevant render methods. It was helpful to use in 2003 since it allowed your WebPart to have a preview while a page was edited in FrontPage with the Webpart on it, because the GetDesignTimeHtml() method contains the HTML for the designer to render.


3.18 What are WebPart properties, and what are some of the attributes you see when declaring WebPart properties in code?

WebPart properties are just like ASP.NET control properties, they are used to interact with and specify attributes that should be applied to a WebPart by a user. Some of the attributes you see with ASP.NET 2.0 properties are WebDescription, WebDisplayName, Category, Personalizable, and WebBrowsable. Although most of these properties come from the System.Web.UI.WebControls.WebParts class, ones like Category come out of System.ComponentModel namespace.


3.19 Why are properties important in WebPart development, and how have you exploited them in past development projects? What must each custom property have?

Properties are important because WebParts allow levels of personalization for each user. WebPart properties make it possible for a user to interact, adjust, and increase overall experience value with the programmatic assets that you develop without having the need to use an external editor or right any code. A very simple example of exploiting a property would be something like allowing the user to change the text on the WebPart design interface so that they can display whatever string of text they desire.

Each custom property that you have must have the appropriate get and set accessor methods.


3.20 What are ClassResources? How do you reference and deploy resources with an ASP.NET 2.0 WebPart?

ClassResources are used when inheriting from the SharePoint.WebPart.WebPartPages.WebPart base class, and are defined in the SharePoint solution file as things that should be stored in the wpresources directory on the server. It is a helpful directory to use in order to deploy custom images. In ASP.NET 2.0, typically things such as images are referenced by embedding them as resources within an assembly. The good part about ClassResources is they can help to eliminate recompiles to change small interface adjustments or alterations to external JavaScript files.

Copyright 2007, Megasolutions Ltd