I have the following URL to a subsite : http://myServerName/subSiteName I know the URL to the subsite upfront.
So far I'm trying this, but it won't work.
using (SPSite spSite = new SPSite(this.siteURL))
{
using (SPWeb spWeb = spSite.OpenWeb(this.siteURL))
{
}
}
Any ideas why not? And what I'm doing wrong?
SPSite loads fine, but not SPWeb.