RSS

Category Archives: Development

Cannot connect to the SharePoint site: . Make sure that the Site URL is valid, that the SharePoint site is running on the local computer, and that the current user has the necessary permissions to access the site.


Cause:
You may experience this issue on a development machine when trying to create a SharePoint project using Visual Studio 2010.

From the File menu the developer selected New->Project and then selected ‘Empty sharepoint project’ (SharePoint 2010) and then typed in the url into the dialog box that appeared and then hit the Validate button. Upon clicking the button, the following error message was shown:

Cannot connect to the SharePoint site: http://server:123/. Make sure that the Site URL is valid, that the SharePoint site is running on the local computer, and that the current user has the necessary permissions to access the site.

Solution:

  1. Open up SQL Manager and navigate to Security –> Logins
  2. Select the user that you’re using to create the VS project.if the user is not there, add the user.
  3. Under Server Roles for the user tick as sysadmin

 

 
2 Comments

Posted by on November 2, 2011 in Development, Error, Sharepoint Server 2010

 

Tags: ,

Internet presence scenario (Office SharePoint Server 2007)


If you are planning to implement an internet edition of MOSS 2007 ….here is an exclusive article i found on Microsoft site about Office SharePoint Server 2007 Internet presence scenario. here is the link

http://technet.microsoft.com/en-us/library/cc950780.aspx

 
Leave a comment

Posted by on March 30, 2009 in Development, Internet

 

Tags:

Understanding Field Controls and Web Parts in SharePoint Server 2007 Publishing Sites


A smart topic to learn the details of Microsoft Office SharePoint Server 2007 field controls and Web Parts and how they differ, and best practices for when to use each type of control.

Author: Andrew Connell, Andrew Connell Inc. (Microsoft MVP)

MSDN link: http://msdn.microsoft.com/en-us/library/dd571480.aspx

Contents

Download the code samples that accompany this article: Windows SharePoint Services 3.0 Content Editor Web Part Link Fixup and Prohibit Content Editor Web Part.

 
Leave a comment

Posted by on March 22, 2009 in Development, Webpart

 

Flash Webpart Source Code


Note: Use this code @ your own risk.

using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.ComponentModel;
namespace FlashWebPart {
   public class FlashWebPart : WebPart {

         private int flashWidth;
         private int flashHeight;
         private string flashUrl;

         [Personalizable(PersonalizationScope.Shared),
         WebBrowsable(true),
         WebDisplayName(“Width”),
         WebDescription(“Width of the flash”),
         Category(“Configuration”)]
         public int FlashWidth
         {
               get { return flashWidth; }
               set { flashWidth = value; }
         }

        
         [Personalizable(PersonalizationScope.Shared),
         WebBrowsable(true),
         WebDisplayName(“Height”),
         WebDescription(“Height of the flash”),
         Category(“Configuration”)]
         public int FlashHeight
         {
               get { return flashHeight; }
               set { flashHeight = value; }
         }

        
         [Personalizable(PersonalizationScope.Shared),
         WebBrowsable(true),
         WebDisplayName(“URL”),
         WebDescription(“Url of the flash file”),
         Category(“Configuration”)]
         public string FlashUrl
         {
               get { return flashUrl; }
               set { flashUrl = value; }
         }

         protected override void Render(HtmlTextWriter writer)
            {
                  if (!String.IsNullOrEmpty(FlashUrl))
                  {
                        string outHTML = “<OBJECT classid=\”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\” ” + “codebase=\”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,12,36\” ” + “WIDTH=” + flashWidth + ” HEIGHT=” + flashHeight + “> ” + “<PARAM NAME=movie VALUE=\”” + flashUrl + “\”> ” + “<PARAM NAME=WMODE VALUE=\”Transparent\”>” + “<PARAM NAME=quality VALUE=high> ” + “<EMBED src=\”” + flashUrl + “\” quality=high wmode=\”transparent\” WIDTH=\”” + flashWidth + “\” HEIGHT=\”” + flashHeight + “\” TYPE=\”application/x-shockwave-flash\” PLUGINSPAGE=\”http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\”></EMBED> ” + “</OBJECT>”;
                        writer.Write(outHTML);
                  }
                  else
                  {
                        writer.Write(“Modify Webpart to add content URL”);
                  }
            }
   }
}

 
Leave a comment

Posted by on March 22, 2009 in Development, Webpart

 

Tags: ,