.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

How to all the Subsites and Site Collections under a top level site collection using client object m

Posted By:      Posted Date: September 06, 2010    Points: 0   Category :SharePoint
Hello Everyone, I need to know how to get all the subsites and the site collections under a top level site collection using client object model in SilverLight. When I use WebCollection webcoll= ctx.Web.Webs I'm getting the getting subites but i'm not getting the RootWeb and Othe SiteCollections created under the Top Level site collelction.

View Complete Post

More Related Resource Links

content Type at site collection level using feature.

I m planning to create a feature to install the content type and site colomun at site collection level. Now my doubt is? 1. what will happen when i de activate a feature with documents already there? 2. what will happen when i de activate a feature without documents? What are points i need to take care? 

Activating Publishing Infrastructure at the Site Collection level


My task is to my company's branding solution to two new sites. I can upload the solution but I cannot activate it. I can't activate it because SharePoint Publishing is turned off on the sites. When I attempt to turn on SharePoint Publishing, I get this error:

The feature being activated is a Site scoped feature which has a dependency on a Site Collection scoped feature which has not been activated. Please activate the following feature before trying again: SharePoint Server Publishing Infrastructure f6924d36-2fa8-4f0b-b16d-06b7250180fa
The Site scoped feature being activated has a dependency on hidden Site scoped feature 'FeatureDefinition/22a9ef51-737b-4ff2-9346-694633fe4416' (ID: '22a9ef51-737b-4ff2-9346-694633fe4416'). Hidden features cannot be auto-activated across scopes. There may be one or more visible Site scoped features that auto-activate the dependent hidden feature.

I can't seem to locate the Publishing Infrastructure feature. The Site Collection List provides information about each site collection but no access to their features. How do I turn on Publishing Infrastructure?

disable top level site collection


I saw some compaies when they created sharepoint web application, they do not create a top level site collection.  thety created site collections under managed path. For example, the sharepoint web app called http://MyCompanyNmae.com. users can not access http://MyCompanyNmae.com directly. Instead they have to access through






Why they disable the top level site collection? for what purpose?


Thanks in advance,  


Add a field to site columns using Client Object Model



I am having an issue when trying to add a field to the web.AvailableFields.  I am using web.AvailableFields.AddFieldAsXml(...)  but it seem that you need to associate the field with a list.  Is it not possible to add a field to the site collection columns using the client object model?

What I am doing is creating a content type and then adding fields to this content type, if the fields dont exist I what to create them but an having a problem doing so.



Start site workflow using silverlight client object model.



I created a sequensial site workflow using VS2010. Its working fine. I want to start it manually using silverlight client object model.

Can any one help me how it can be done?

permissions at the site collection level


I am the collection administrator of a site collection called "Teams" .  By default, when the collection was created, Teams Owners, Teams Members and Teams Visitors was created.  Do these permissions only apply to the site collection "home" page, or do they apply to any new sites added to the collection (unless inheritance is broken during the creation of those other sites in the collection)?


There are no mistakes; every result tells you something of value about what your are trying to accomplish.

Added Metadata (Taxonomy) to Document Type at Top Level Site Collection; How to break inheritance at


We're really loving the ease with which we can add site columns to content types, and have them propagate through all lower-level sites. This is awesome, especially when combined with taxonomy in the term store!

However, our Intranet is to feature a publishing site with subsites to house inter and intra-departmental, private working groups who develop material outside of the public Taxonomy term store and outside of traditional requirements for taxonomy data. This covers a specific area of navigation; the RED HIGHLIGHTED navigation and sub-navigation (not pictured) should all exist without the taxonomy column requirement required of all other sites and subsites.

Example: http://ctnation.citizenschools.net/DotNetNuke/images/WOW_Sample.jpg 

In building the site template for the Workspaces sites, I want to remove all requirements for all content types for the public-site-wide-taxonomy. However, when I edit the content types at the sub-site level, there seems to be no ability to break inheritance from the parent information, and thus, all content types require the taxonomy column (as defined at the root-site level). 

Given the need to remove the site column from all content types, libraries and lists in this Work

wss 3.0 site collection Installation Guide on client machine



does some one knows about a good installation guide to install a site that has been created with wss 3 on a client machine?

 i have tought about to back up the site, and then install wss 3 on the client's machine and then restore the site on the clients machine. is this the right way.

i also want to change the domein name of the site collection.

is there a good documentation that explain this step by step?


SharePoint 2010 site using FQDN and Silverlight Client object model issues


I am working a FQDN installation of SP2010 site and I am having touble connecting to it from Silverlight, when my Silverlight app is running outside that SP2010.
Just to include the note, that if I use the CLR client object model, from a Console Application, I am able to connect to the FQDN SP 2010 site, and get all data I need. Using the CLR and monitoring with fiddler there are two consequent requests made: first GET to http://my_sp2010_site_fqdn/_vti_bin/sites.asmx, then POST to http://my_sp2010_site_fqdn/_vti_bin/client.svc/ProcessQuery and Everything works fine.
However when it comes to the Silverlight Client I have troubles.
If I put my silverlight application in a web part inside my site, it works. If I put it on a regular site, outside SP - it does not work and following behavior is observed:

There is initial request sent to
but there is no consequent request to http://my_sp2010_site_fqdn/_vti_bin/client.svc
That second request does not even show up in fiddler.

private ListItemCollection _projects;


How to Get ListItems count in all the lists of a SharePoint site through Silverlight Client object m

Hi All, I need to get the count of the ListItems in all the lists in my sharepoint site. This is my coding

 How much ever i try I'm getting an exception " The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested."

External Data Option Not at Site Collection Level


Hello all,

It appears that I can only create an External Data field at the library level for a content type. Can anyone validate if this is true. Following a good practice of creating all content types and site columns at the Site Collection I used for my Content Type Hub allows me to create content types/columns only once and have them sent across to any libraries they have been added to.

In the current scenario, if I need to use a Content Type with External Data, in lets say, 12 other libraries, I have 12X the work!

Custom Timer Job provisioned at Site Collection level


Is it possible to have a custom timer job provisioned at the site collection level?  In writing my custom spjobdefinition, it looks like you can only create the timer job at the web application level:

    public KBRankingTimerJob(string jobName, SPWebApplication webApplication)
      : base(jobName, webApplication, null, SPJobLockType.ContentDatabase)
      this.Title = jobName;

My feature receiver is defined as a site collection feature, so I can activate it at a site collection level, but my timer job is being provisioned and running once for each content database within the web application (it seems).  I'd like the timer job defined for just one particular site collection (the one the feature receiver is activated at).  Is this possible?  Or am I stuck at the web app level?

If I am stuck at the web app level, how has anyone created a timer job to run against 1 particular list within a site?

Retrieving Data from a Multi-Authentication Site Using the Client Object Model and Web Services in S

Learn to add an additional header to your request when programmatically accessing a SharePoint site that uses multiple authentication providers.

Build an Easy Maintenance Intranet Site: Using Office Docs, File System Object, and OLE Structured S


If you've ever needed to build an easy-to-maintain intranet site, here's a solution based on Microsoft Office documents. Many sites require constant updating of their HTML, but the use of Word documents can simplify the process. This article details the construction of a human resources site that exploits the File System Object (FSO), OLE Structured Storage, and ActiveX capabilities of Word documents. This allows the HR staff to copy their revised or newly created Word files to the site, dynamically generate a list of links to their files, and free IS from the constant recoding of HR updates into new HTML pages.

Josef Finsel

MSDN Magazine March 2000

Top-Level Search Scope not showing in Sub-Site


I've got a site 'B' created under site 'A' in SharePoint. When I'm at Site A, I can search and find things that exist in both A&B. However, when I'm in B, the 'highest' search scope I can pick is 'B.' I'd like to be able to select one step higher so that I can search A&B from any page. Is this possible?

How to create a single entry page for site collections in MOSS 2007



I have  7 site collections containing a few hundred team collaboration sites. Some users are internal (intranet) but most are external (extranet). Extranet users are experiencing problems with losing links to their sites and forgetting which URLs to use. So I would like to create a single entry page that all users can enter after the logon process, which shows a list of sites they have permission to access, and other user-specific information. Perhaps relevant documents, tasks, recently modified documents etc.

I know this sounds like a 'My Site' but we want to use use a general welcome page instead. We use Windows authentication.
What is the best way of doing this and is it something that can be done in SharePoing Designer or does it need to be done in Visual Studio?

Many thanks in advance.

Site Collection Usage Summary: No Data Available


Usage analysis processing is enable for my farm in both Central Administration and in the SSP.

I've checked TImer Job Status and the three timer jobs responsible for doing the log analsis are all running.

I've also checked the log file locations and the log files are being generated.

Yet when I browse the "Site collection usage summary" report (SpUsageSite.aspx) I get the following:

No data is available for this report. Usage analysis might have been enabled only recently, or there might have been insufficient usage to result in any values for the report.

My farm is running 2007 Enterprise SP2 (

Can someone confirm if this issue was fixed with one of the CU's that were issues post-SP2?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend