i want to create site collection through programmatically. i used below code but iam getting error as "object reference not set to instance of an object"
SPSite site =
SPWebApplication oweb = site.WebApplication;
SPSiteCollection sitecol = oweb.Sites;
"welcome to site collection", 1033,
"User Display name",
iam getting an error at sitecol.add line the error is "Object reference not set to an instance of an object". please suggest me in order to remove the error.
please suggest me if is there any other way to create site collection through programmatically.
thanks in advance..
View Complete Post