Updates from March, 2011 Toggle Comment Threads | Keyboard Shortcuts

  • Ali BaderEddin 8:10 pm on March 29, 2011 Permalink | Reply
    Tags: event receivers   

    Using Event Receivers in SharePoint Foundation 2010 


    I have been working with Nick Gattuccio on authoring a two-part MSDN article about using event receivers in SharePoint 2010. The first part provides a thorough explanation of what events are and how they can be developed and deployed in SharePoint. The second part provides practical examples using Visual Studio 2010.

    Title: Using Event Receivers in SharePoint Foundation 2010 (Part 1 of 2)
    URLhttp://msdn.microsoft.com/en-us/library/gg749858.aspx

    Title: Using Event Receivers in SharePoint Foundation 2010 (Part 2 of 2)
    URLhttp://msdn.microsoft.com/en-us/library/gg981880.aspx

    Let me know how useful this is to you.

     
    • Google 2:13 am on September 21, 2014 Permalink | Reply

      Thanks for the auspicious writeup. It in fact used to be a amusement account it.
      Look advanced to more introduced agreeable from you! By the way,
      how could we keep in touch?

  • Ali BaderEddin 6:39 pm on October 8, 2010 Permalink | Reply
    Tags:   

    SharePoint 2010 site just got shared! 


    http://sharepoint.microsoft.com is built on top of SharePoint!

    Found via SharePoint Detector.

     
  • Ali BaderEddin 6:36 pm on October 8, 2010 Permalink | Reply
    Tags: chrome, email, extension, Facebook, linkedin, , stumbleupon, twitter, wordpress   

    SharePoint Detector – Chrome Extension 


    Ever wondered whether a site is built on top of SharePoint? Now, there is an easy way to find out. Install the “SharePoint Detector” Chrome extension located at https://chrome.google.com/extensions/detail/iglddabgpnbmcpdnmcbhhmggipakapck?hl=en, and you will get the SharePoint icon displayed in Chrome’s address bar every time you browse to a SharePoint site. You can then click on the SharePoint icon and choose to share the site by email, on your WordPress blog, LinkedIn, Twitter, Facebook and\or StumbleUpon.

    For example, here is what happens when you browse to http://www.wssdemo.com.

    If you decide to share on Twitter, you will get the following popup.

    You can edit it as you like then post to your Twitter account. Same goes for all the other different methods of sharing..

    Enjoy sharing SharePoint!

     
    • vijay patel 11:45 am on October 23, 2012 Permalink | Reply

      http://www.bvsd.org is a sharepoint website. yet the detector does not work on it.

    • Ali BaderEddin 12:37 pm on October 23, 2012 Permalink | Reply

      The extension relies on metadata found by default on a SharePoint page. If that is removed, the extension won’t detect that this is a SharePoint page. Of course, the extension can be updated to look for something else in case that metadata is missing…

  • Ali BaderEddin 11:49 pm on September 18, 2010 Permalink | Reply
    Tags: Get-SPWebApplication, , Microsoft.SharePoint.PowerShell, Mount-SPContentDatabase, New-SPContentDatabase   

    Content DB Attach using PowerShell 


    In this post, I’ll talk about how to attach\mount a SharePoint content database to a SharePoint web application after it has been restored\attached to the SQL server. See my previous post for details on how to restore a database using PowerShell.

    SharePoint provides a cmdlet to do the content db attach. This cmdlet is called Mount-SPContentDatabase. I will create a script block wrapper for this cmdlet and show how to call it remotely. The script block below adds the SharePoint PowerShell snapin if it’s not already added, selects a web application in the farm, then calls the Mount-SPContentDatabase to do the content db attach.

    [ScriptBlock] $global:AttachSPContentDB =
    {
        param([string] $dbName, [string] $dbServer)
    
        try
        {
            # Load the Sharepoint Cmdlets
            Write-Host "Loading SharePoint PowerShell Snapin"
            $spSnapin = Get-PSSnapin | where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}
            if($spSnapin -eq $null)
            {
                Add-PSSnapin Microsoft.SharePoint.PowerShell
                Write-Host -ForegroundColor "Green" -Object "SharePoint PowerShell Snapin loaded"
            }
            else
            {
                Write-Host -ForegroundColor "Gray" -Object "SharePoint PowerShell Snapin already loaded"
            }
    
            # Get  web applciation url
            Write-Host "Selecting a web application in the farm"
            $webAppUrl = (Get-SPWebApplication | select -Index 0).Url
    
            # Mount the database at the specified SQL server to the web application
            Write-Host "Mounting database '$dbName' at SQL server '$dbServer' to web application '$webAppUrl'"
            $newDB = Mount-SPContentDatabase $dbName -DatabaseServer $dbServer -WebApplication $webAppUrl -AssignNewDatabaseId
            Write-Host -ForegroundColor "Green" -Object "Database mounted successfully with ID: " + ($newDB.Id)
    
            # Return content DB Id
            return $newDB.Id.ToString()
        }
        catch [Exception]
        {
            Write-Host -ForegroundColor "Red" -Object $_.Exception
    
            return $null
        }
    }

    To call this script block, pass the name of the Sql server and the name of the content database. Make sure that the content database is already restored\attached to the SQL server.

    .$AttachSPContentDB "ContentDBName" "SqlServerName"

    To call the script block on a remote SharePoint WFE, you can simply run

    Invoke-Command -ComputerName "WFEName" -ScriptBlock { .$AttachSPContentDB "ContentDBName" "SqlServerName" }

    Note that the New-SPContentDatabase cmdlet has the same effect as Mount-SPContentDatabase. The only difference is that New-SPContentDatabase creates a new SQL database if there is no database with the same name already available on the SQL server.

     
    • warszawa 10:11 pm on September 11, 2014 Permalink | Reply

      Βardzo lubіęodcienie!

    • comprar galletas decoradas 1:05 pm on September 12, 2014 Permalink | Reply

      Ponemos la masa sobre papel de horno y la estiramos con el rodillo
      hasta tener un grosor de 4 mm. Con un cortapastas de seis cm de
      diámetro vamos haciendo las galletas.

  • Ali BaderEddin 11:08 pm on June 8, 2010 Permalink | Reply
    Tags: AllowWindowsClientInstall, optimizeCompilations, SharePoint Designer, SharePointFoundation, standalone, windows 7   

    SharePoint Foundation 2010 on Windows 7 


    This MSDN article describes in detail how to install SharePoint Foundation 2010 for development purposes on Windows Vista, Windows 7 and Windows Server 2008. The purpose of this post is to focus on the SharePoint installation on Window 7 only and clear out all the details for the other operating systems.

    1. Download SharePoint Foundation 2010 x64 for free. Note that there is no x86 version of SharePoint Server, so don’t bother setting it up if you have a 32-bit machine.
    2. Create a new folder “C:\SharePointFiles” and copy “SharePointFoundation.exe” to it.
    3. Start command prompt, change directory to C:\SharePointFiles and run the following command to extract the “SharePointFoundation.exe” to C:\SharePointFiles
      SharePointFoundation.exe /extract:C:\SharePointFiles
    4. Open C:\SharePointFiles\files\Setup\config.xml, add a new <Setting> tag under the <Configuration> element, then save the file. Make sure you copy the below element as is since all of the text in the configuration file is case-sensitive.
      <Setting Id=”AllowWindowsClientInstall” Value=”True”/>
    5. Install the following Prerequisites:
    6. Enable the required windows features by running this batch file: http://cid-e38f9fc6490b29d9.skydrive.live.com/self.aspx/Public/Scripts/EnableSPWinFeatures.bat
    7. Restart your computer to complete the changes that you made to Windows Features.
    8. Install SharePoint 2010
      • Run Setup.exe under C:\SharePointFiles
      • Select standalone (Windows 7 can’t be used for production deployments of SharePoint 2010 and it’s recommended that you use Standalone only)
      • After the installation is complete, you will be prompted to start the SharePoint Products and Technologies Configuration Wizard.
        InstallSP
    9. After a SharePoint solution (.wsp file) is deployed, it recycles the application pool. To improve the initial page load times, set the optimizeCompilations property of the <compilation> tag in your web.config file (C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.config) to true.
      <compilation optimizeCompilations=”true”>

    SharePoint Designer 2010 is also free and can help you better design your SharePoint site(s). You can download it here.

     
    • Ravi 10:09 pm on August 1, 2010 Permalink | Reply

      Hello Sir,
      I want to develop an application in .net, that will read XML file. and will convert that code into any language such as C, C#, Java. But I am not getting How to start..
      Thank You.

    • Bas 12:51 am on September 13, 2010 Permalink | Reply

      Hey, I am trying to install spf 2010 on my Windows 7 machine. Works for me till step 4. I changed the config.xml file on location C:\SharePointFiles\Files\Setup\config.xml to:

      *Without linebreaks ofcourse.

      When I run the Setup I get the following Setup error:
      This product requires Windows Server 2008 Service Pack 2 or above.

      Do you have any idea what is going wrong?

      Thank you!

    • Bas 12:53 am on September 13, 2010 Permalink | Reply

      Can I show my code?

    • Bas 12:54 am on September 13, 2010 Permalink | Reply

      Probably not..

    • Ali BaderEddin 2:34 pm on September 13, 2010 Permalink | Reply

      What exactly are you blocked on in step 4?

    • Alessandro 7:32 pm on December 21, 2010 Permalink | Reply

      Hi guys,

      I’ll use Sharepoint in my company (~20 users) to act like a ECM, just for document repository, some permission roles, etc.

      I have a Quad-core PC with 4 GB RAM and Win7 64-bits installed. JIRA applications are already installed on this machine.

      Can I also install the Sharepoint Foundation 2010 for production in this machine, just for 20 users??? My question is, will I have performance issues???

      Thank you.

    • Ali BaderEddin 1:23 pm on December 23, 2010 Permalink | Reply

      Alessandro, I don’t have an answer to your question. That depends on how much traffic the 20 users put on the site.

      I would recommend having 8GB RAM on that machine given that there will be multiple IIS, SQL server, SharePoint timer service and User Code service processes running on that machine. Add to that the JIRA applications that you have, which I have no clue how much memory they’d consume.

    • Pachy 3:36 pm on January 19, 2011 Permalink | Reply

      I did all the steps but i got a blank page…what should I do??

    • Peter Cooper 7:39 am on January 25, 2011 Permalink | Reply

      Thanks for this. Was really useful and worked fine for me. You need to watch out if you copy-and-paste the XML line because the quote marks appear as ascii #148.

    • Doug Fisher 3:05 am on April 13, 2011 Permalink | Reply

      Hi

      I have followed the above procedure but hit two snags:

      1 The batch file returns an error about an incorrect format
      2 Running Setup.exe gives an error regards the config.xml file. It says it is not valid. I have copied as instructed, so what is this about?

      My W7 is installed on VM Workstation 7

      Any help is greatly appreciated

      • Sharique Khan 10:33 pm on July 12, 2011 Permalink | Reply

        Hi,

        I was also facing the problem with the config file. The issue is in this blog in the opening quote for attribute is ” instead of “. So if you do a direct copy paste you will encounter the problem of xml invalid.

    • mayuri 8:29 am on September 28, 2011 Permalink | Reply

      Thank you very much for this post. I was successfully in setting up sp foundation on windows 7.

    • Michael J Murton 6:04 am on April 19, 2012 Permalink | Reply

      Hi, I am running into the same config.xml invalid error when I try to run setup.exe for SharePoint Foundation 2010. Is there a valid xml file that I can copy and paste? Any help would be appreciated. tx Mike

    • maiomar86 10:56 pm on September 11, 2012 Permalink | Reply

    • Scott 2:13 pm on December 13, 2012 Permalink | Reply

      Great article. The only problem I had was within editing the element, it didn’t like your quotes. I deleted them and added them back and worked as described. Thank you for doing this.

    • John 6:02 pm on June 5, 2013 Permalink | Reply

      I had to remove and readd the double quotes (4) and use initial caps on Id and Value. Then setup.exe was able to run without erroring on the config file.

    • escorts leeds 2:15 pm on July 14, 2014 Permalink | Reply

      I do not even know how I ehded up here, but I thought this post was great.
      I don’t know wwho you are but certainly you are going to a famous blogger if you aren’t already ;)
      Cheers!

    • online electronic learning 9:58 pm on August 15, 2014 Permalink | Reply

      Why visitors still make use of too read news papers when in this technological world everything is presented on web?

    • Justine 3:11 am on August 26, 2014 Permalink | Reply

      This excellent website definitelyy has all of the information and facts I
      wanted concerning this subject and didn’t know who to ask.

    • Lelia 6:18 pm on October 2, 2014 Permalink | Reply

      I hadn’t practiced this part with my dad because he had forgotten to teach me.
      There is also the love and hate relationship with users
      and Microsoft. Open the Help and Support from the Start menu and click Options and Settings.

    • wat remover 1:53 pm on October 4, 2014 Permalink | Reply

      Office validation process Authentication in Windows Help, Microsoft proposed:
      “Microsoft for the purchase of a counterfeit Windows software provides complimentary Windows software. Adding registry elements to specific features of your application is again possible using the Filter Keys by Feature check-box. Speed is determined by so many different factors out of your control that I would not obsess over this aspect if I were you.

    • buy a domain 3:33 am on November 16, 2014 Permalink | Reply

      I delight in, lead to I discovered just what I used to be looking for.
      You have ended my four day lengthy hunt! God Bless you man. Have
      a great day. Bye

    • Emilio 8:01 am on November 29, 2014 Permalink | Reply

      and beyond, that home windows was wave-formed, which eventually developed
      into much more of a flag, because of shadowing along with
      other effects. Thankfully, this tablet actually has some
      innovative new features that people will likely want to get their hands
      on, and it should sell extremely fast. The tracking server tried
      to take action against, or users of the Bit – Torrent internetszolg.

c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel
Follow

Get every new post delivered to your Inbox.