implementando asp.net a sharepoint server 2007

17/10/2007 - 21:58 por jmarrufo | Informe spam
Saludos,
estoy tratando de implementar una pagina ASP.net version 2.0 con codigo para
trabajar con objeto de sharepoint pero cuando trato de mostrarla me da el
siguiente error

This operation can be performed only on a computer that is joined to a
server farm by users who have permissions in SQL Server to read from the
configuration database. To connect this server to the server farm, use the
SharePoint Products and Technologies Configuration Wizard, located on the
Start menu in Administrative Tools

el codigo que esta en la paginas es

using Microsoft.CSharp;
using Microsoft.SharePoint.Library;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Administration;
using Microsoft.SharePoint.ApplicationPages;
using Microsoft.SharePoint.Deployment;

using Microsoft.SharePoint.WebControls;


public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

SPWebApplication webApp = SPWebApplication.Lookup(new
Uri("http://sharepointserve:80"));


SPSiteCollection siteCollections = webApp.Sites;

foreach (SPSite siteCollection in siteCollections)
{
SPWeb webSite = siteCollection.OpenWeb();
Response.Write (webSite.Title);
Response.Write (webSite.Url);

}


.
 

Preguntas similares