MOSS

  Home  Microsoft .Net Technologies  MOSS


“MOSS frequently Asked Questions by expert members with experience in MOSS. These interview questions and answers on MOSS will help you strengthen your technical skills, prepare for the interviews and quickly revise the concepts. So get preparation for the MOSS job interview”



47 MOSS Questions And Answers

21⟩ Explain Application Pages in SharePoint?

One can create custom application pages to add GUI components in Sharepoint. Unlike site pages, an application page is deployed only once per Webserver. Application pages cannot be customized based on sites, and are based on virtual _layouts directory. Application pages are all compiled together into a single dll and are also used across all sites within a server farm. They are preferred to site pages because of their performance benefits over them and they also support inline code.

 207 views

22⟩ What is the role of RunWithElevatedPrivileges?

RunWithElevatedPrivileges executes code as the System account. This basically then means that the code that you supply as a delegate to the method, has full permissions to modify SharePoint objects in question.

 194 views

23⟩ What is MOSS?

MOSS stands for Microsft Office Share Point Server. MOSS is a portal based platform for complete management of documents & web services. It is a platform for creation of customized web based applications & portals like blogs, wiki etc. MOSS provides security features and can be configured to return separate content based on the fact that the user has logged on using internet, intranet or extranet.

 212 views

24⟩ What is the Security methods(Authentication methods) available in sharepoint?

Authentication methods supported by Sharepoint:

Classic-mode authentication methods

Anonymous

Basic

Digest

Certificates

NTLM

Negotiate (Kerberos or NTLM)

Claims-based authentication methods

Windows

Anonymous

Basic

Digest

Certificates

NTLM

Negotiate (Kerberos or NTLM)

Forms Based

LDAP

SQL Database or other databases

Custom or third party membership and role providers

SAML token-based authentication

Active directory federation services 2.0

Windows Live ID

Third-party identity providers

 189 views

25⟩ Explain architecture of MOSS?

Architecture of MOSS:

Office Sharepoint Server: This layer manages excel services, infopath forms services, project server, enterprise search, policy, single sign on, business data catalogs.

Asp.Net Forms: This layer lies beneath Office Sharepoint Server layer. It is the layer responsible for Asp.Net based sites.

Windows Sharepoint Services: This is a collection of windows services which is used by sharepoint to connect to the database and can be used for development purposes.

Development tools: On the left is the collection of various development paradigms that can be used to perform development and create various webparts, or read and get information from WSS using Visual studio.

 204 views

27⟩ Which one is Better a UserControl or a WebPart?

Comparison of UserControl and WebPart

Advantages of UserControl:

Developers are already familiar with user controls which reduce the learning curve.

UserControls can be used with other ASP.NET applications. Hence reusable.

Developing user controls using Visual studio is much faster than building it through code as in the case of WebParts.

Disadvantages of UserControl:

There is a performance overhead as usercontrol use a shim as a wrapper to work with Sharepoint.

Deployment is a bit messy.

Advantages of WebPart:

Everything is available and customizable, i.e. toolbar, behavior, content etc.

Better performance as there is no shim wrapper.

Provide a structured deployment mechanism.

Disadvantages of WebPart:

Developers are unfamiliar so learning curve is steeper.

They are strictly for Sharepoint and won’t work with other ASP.NET applications. Thus not reusable.

 199 views

28⟩ What is the role of AllowUnsafeUpdates?

AllowUnsafeUpdates allows updates on a GET request. It basically allows code to bypass security validation while making changes to Sharepoint objects which are not executed within a HTTP POST request.

 199 views

29⟩ What is the role of SPWeb.EnsureUser method?

SPWeb.EnsureUser method validates whether the specified login name belongs to a valid user of the website or not. If the login name does not exist then it adds the login name to the website.

Eg:

Dim instance As SPWeb

Dim loginName As String

Dim returnValue As SPUser

returnValue = instance.EnsureUser(loginName)

 215 views

30⟩ What is the difference between SPSite and SPWeb object?

Difference between SPSite and SPWeb object

SPSite

The SPSite object represents a collection of sites, i.e. Site Collection, a top level site and all its sub sites.

SPWeb

The SPWeb object represents an instance of a SharePoint Web, and the SPWeb object contains things like the actual content

 200 views

31⟩ What is the role of SPWebApplication object?

The SPWebApplication class consists of various methods and properties to perform various manipulations on web applications. i.e. Perform backups, add content databases, add site collections, set alert settings, change the web.config file etc. The class simply represents the IIS load balanced web application that is installed on the server farm.

 207 views

32⟩ How to return SharePoint List items using SharePoint web services?

Create a reference to the SharePoint Lists.asmx web service by appending “/_vti_bin/Lists.asmx” to the end of a site name. One can use this url to add a service reference in Visual studio there onwards. This will query the WSDL for the Lists.asmx service.

Next step is to configure the security to be able to call the service methods. You can do this by altering the bindingConfiguration to indicate the transport uses NTLM authentication, which is the default.

We can then iterate through all the lists.

e.g:

ServiceReference1.ListsSoapClient proxy = new ServiceReference1.ListsSoapClient();

proxy.ClientCredentials.Windows.ClientCredential = new NetworkCredential();

XmlNode node = proxy.GetListCollection();

XPathNavigator nav = node.CreateNavigator();

XPathNodeIterator iter = nav.SelectDescendants("List", "http://schemas.microsoft.com/sharepoint/soap/", false);

while (iter.MoveNext())

{

string title = iter.Current.GetAttribute("Title", string.Empty);

string id = iter.Current.GetAttribute("ID", string.Empty);

Messagebox.Show ("title:" + title + “ and id:” + id);

}

writer.Flush();

 207 views

33⟩ What is CAML?

CAML: - Collaborative Application Markup Language.

It is an XML based language and provides data constructs used to build up the SharePoint fields and is also used for table definition. CAML is used to build or customize SharePoint based sites and construct a CAML query in a WebPart to retrieve values from a SharePoint List.

 209 views

34⟩ Explain impersonation, and when would you use impersonation?

Impersonation is the concept of providing functionality in the context of a different identity, for example letting a user access the system with anonymous access. You would use impersonation in order to access resources on behalf of the user with a different account, that normally, that would provide just the very basic rights to access the system.

 208 views

36⟩ Explain ClassResources? How to reference and deploy resources with an ASP.NET 2.0 WebPart?

ClassResources are defined in the SharePoint solution file. It is a helpful directory to use in order to deploy custom images. In ASP.NET 2.0, objects (images) are referenced by embedding them as resources within an assembly. ClassResources allows us to eliminate recompiles to change small interface adjustments or alterations to external JavaScript files. Just saving the files can work.

 221 views

37⟩ Explain SharePoint Solution File? How it differ from WebPart .cab files in legacy development? What does SharePoint Solution File contain?

A SharePoint solution file is compressed file that contains custom components. It is suffixed with a .wsp extension that aids in deployment.

Differences between the .cab and the SharePoint solution files are:

Solution files allow easy deployment to all Web Front End's.

Solution files are highly manageable from the interface.

Solution files can provide Code Access Security to avoid GAC deployments.

A solution file contains: aspx files, DLLs, resource files, definition files.

 228 views

38⟩ Explain page layouts of MOSS?

Page layout defines the look and feel of a Web page. Content for the page is stored in fields on the page. When you view or edit a page, the content is displayed in the field controls.

The types of fields on a page are determined by the content type for the page. Each content type contains columns. When you create a content type, you add column templates to the content type for each field. Column templates determine the default field control that is associated with the columns as well as the kind of content the field can contain, such as a single line of text, a hyperlink, or a picture.

Types of page layout columns:

Scheduling Start Date: displays the date and time when the page is visible on a site.

Scheduling End Date: It contains the date and time in which the page is no longer visible on a site.

Contact: contains the name of the person or group who created the page.

Contact E-mail Address: Page Content: contains the name of the page layout associated with each instance of a page. contains the e-mail address of the person who created the page.

Contact Name: contains the name of the person who created the page.

Contact Picture: contains the picture of the person you can contact about the page.

Page Content: contains the name of the page layout associated with each instance of a page.

 201 views

39⟩ What is .ddf file?

A .ddf file: Data Directive File. It contains the metadata like the source files and their destination locations. The .ddf file is passed as a parameter to the MAKECAB utility to orchestrate construction of the SharePoint solution file.

 218 views