A member of the Microsoft.SharePoint namespace, SPSite represents a collection of sites in a Web application, including a top-level Web site and all its subsites. Each SPSite object, or site collection, is represented within an SPSiteCollection object that consists of the collection of all site ...

learn more… | top users | synonyms

0
votes
1answer
179 views

Error creating SPSite using powershell

I am trying to create a web application "http://Intranet" and a site collection "http://Intranet" on SharePoint 2013 foundation farm. Here is my code $sp = New-SPAuthenticationProvider $web = ...
0
votes
1answer
324 views

SPSite - exception Microsoft.SharePoint.SPSecurity.GetRolesForUser

I am trying to open site(FBA enabled with custommembership & customroleprovider) through module/httpmodule. It is throwing error System.NullReferenceException: Object reference not set to ...
2
votes
0answers
456 views

SPSite.Usage.Storage And SPSite.StorageManagementInformation Are Returning Different Values

When every I use SPSite.Usage.Storage and I use SPSite.StorageManagementInformation with to retrieve all the documents for the Site Collection then I sum the sizes of all the documents then I get a ...
0
votes
0answers
14 views

Cannot connect to my SPSite

I'm facing a strange issue. I have a console application project and added assembly Microsoft.SharePoint from C:\Program Files\Common Files\Microsoft Shared\Web Server ...
0
votes
0answers
19 views

search mutliple sites get-SPsite

I have a site mysite which also has other site collections which are not shown if you just do Get-SPSite is there anyway to search multiple site using Get-SPSite I know this doesn't work but for ...
0
votes
0answers
70 views

SPSite.RootWeb.WebTemplate throws UnauthorizedAccessException

I'm trying to make some unit tests for a SharePoint Application. First I make an instance of an SPSite (using the string requestUrl constructor) then I fake my SPContext with the method described here ...
0
votes
0answers
37 views

Displaying Sharepoint objects in PropertyGrid - low performance

At first i didn't know where I should ask this question since it's about Windows Forms and SharePoint but after a bit of searching I decided this is a good place. I would like to know if there's a ...
0
votes
0answers
95 views

Sites in SPContentDatabase returns null reference

I am trying to get the list of sites in a site collection. I have used SPContentDatabase to access the database of the site collection but some of the sites are returned as null although they are ...