Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

deploying sharepoint application

Status
Not open for further replies.

boldm28

Programmer
Joined
Jan 29, 2009
Messages
2
Hi

I am a newbie to sharepoint programming and I have used Visual studio 2008 to develop a simple application

below is the code

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Administration;
namespace SiteCreation
{
class Program
{
static void Main(string[] args)
{
SPSite site = new SPSite(“SPWebApplication webApplication = site.WebApplication;
webApplication.Sites.Add(“/sites/TestNewSite”,
“New Test Site”,
“This is a new site added programmatically”,
1033,
“STS#0”,
@”mypc\Administrator”,
“Administrator”,
“anon@anon.com”);
Console.WriteLine(“New site created.”);
Console.ReadLine();
}
}
}

No when i compile it .. it shows a new site created

now how do i create or deploy this site to a sharepoint server
 
Sorry i got what i was looking for

I have a Single Instance rather than a farm ..so that is a problem

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top