SharePoint 2010 web.config file changes

I took a look at the new SharePoint 2010 web.config file, and here are the changes I have found so far:

New sections include:

  • 3 new SharePoint sections:
  • WorkflowServices – new SharePoint based section
  • OutputCacheProfiles – basic asp.net section
  • ObjectCache – basic asp.net section
  • New Workflow section
  • authorizedRuleTypes

New sections groups:

  • "system.web.extensions" – this drives the AJAX funtionality
  • "microsoft.sharepoint.client" – this drives the WCF client proxies for service applications
  • "ReportingServices" – for Reporting service integration
  • "Bpm" – Performance Point section

 Safe controls added:

  • Too many to list here, but all are newer 14.0.0.0 assemblies for SharePoint 14

 A flurry of merge actions (for understanding a merge action check this other blog entry)

 For IIS 6.0 system.web section:

  • No HttpHandlers are configured.
  • CustomErrors is Off
  • No HttpModules are configued

Several new assemblies are complied:

  • System.Web.Extensions
  • Microsoft.Web.CommandUI
  • Microsoft.SharePoint.Search
  • Microsoft.Office.Access.Server.UI
  • Microsoft.SharePoint.Publishing

 New ExpressionBuilder added:

  • SatelliteResources

 New Build Provider added:

  • ".json"  

Controls section added by default now:

  • "asp" of System.Web.UI

 Default siteMap provider is now called "CurrentNavigation" (use to be CurrentNavSiteMapProvider).  Includes new providers:

  • ExtendedSearchXmlContentMapProvider
  • GlobalNavigation
  • CurrentNavigation
  • MySiteSubNavProvider

Removed the:

  • UsagePagesSiteMapProvider

New WebPart Transformers:

  • TransformableBIDataProviderToFilterValuesTransformer
  • TransformableBIDataProviderToWebPartParametersTransformer
  • TransformableBIDataProviderTransformer
  • TransformableFilterValuesToEntityInstancesTransformer

New Mobile Controls Section:

  • SPMobileHtmlDeviceAdapters
  • SPMobileChtmlDeviceAdapters
  • SPMobileXhtmlDeviceAdapters

SessionState is removed from the IIS 6.0 system.web section

FULL IIS 7.0 "system.webServer" section has been added

  • Modules removed
    • OutputCache
    • FormsAuthenciation
    • UrlAuthorization
    • WindowsAuthentication
    • RoleManager
    • Session 
  • Handlers removed
    • SPHttpHandler!!! – everything is done via the modules!

System.Workflow.ComponentModel.WorkflowCompiler

  • In SP2010, you cannot use a "While", "ConditionedActivityGroup" or a "Replicator" activity in SharePoint web applications.  They have set "Authorized" to "False"!!! – WHY?
  • Rather than all types in mscorlib, they have explicitly set it so you can only use
    • Guid
    • DateTime
    • Boolean
    • Double
    • String
    • Hashtable
    • ArrayList
    • DebuggableAttribute
    • ComplationRelaxationAttribute
    • RuntimeCompatibilityAttribute
    • Int32
    • TimeSpan
    • Generic Collections
  • New authorized types
    • SPItemKey
    • SPWorkflowUserContext
  • New assemblies
    • Microsoft.Office.Access.Server.Application
    • Microsoft.Office.Workflow.Actions

Four new location settings with a timeout of 3600ms:

  • _layouts/UploadEx.aspx
  • _layouts/ctdmsettings.aspx
  • _layouts/policyconfig.aspx
  • _layouts/metanavsettings.asxp

Two new location settings with webServices protocol clear:

  • _vti_bin/EwaInternalWebService.json
  • _vti_bin/DynamicGridContent.json

New location settings random:

  • _layouts/pptInsertPicture.aspx
  • _vti_bin/powerpointBroadcastHost.asmx
  • _vti_bin/powerpointBroadcastHost_1_0.asmx – what the heck is this for I wonder?
  • _vti_bin/present.asmx

Two new appSettings keys – why the hell these are here and not a config section is beyond me!

  • PptServer_Pipe
  • PptServer_BroadcastManager

Follow me on twitter!

SharePoint 2010 – Step by Step Install

NOTE:  This is an older version of the install.  If you want RTM steps, go here

From fresh hardware to full SharePoint 2010 dev install, everything you need is right here!  No Login required like some other sites!  Keep in mind these steps are NOT for production (you wouldn't run your site on beta software would you, even if you did, I hope you paid for it).  These steps will change at RTM.  Some things to note: 

1) install is using admin account (several of us just couldn't get ALL the features to work with separate service account in Beta)
2) we don't need loopback fix as all the sites are using specific ports instead of host headers.

Also, if you don't want to do a domain controller install, you could consider this route (http://bit.ly/4oAhpm), but my steps here may not work if you do.

Enjoy!
Chris

Follow me on twitter!

  1. Start
    Hyper-V Manager on a 64bit server
  2. Click
    “Action->New->Virtual Machine”
  3. For
    Name, type “sharepoint2010”
  4. Click
    “Next”
  5. For
    memory, type “6144”
  6. Click
    “Next”
  7. Select
    a local connection, click “Next”
    1. NOTE: 
      you will need internet access
  8. Select
    a location, ensure that the size is set to at least 127GB
  9. Click
    “Next”
  10. Click
    “Next”
  11. Click
    “Finish”
  12. Right
    click the virtual machine in Hyper-V, select “Settings”
  13. For
    the IDE Controller 1, specify the “Windows Server 2008” iso
    1. Click
      “Browse”
    2. Select
      the iso
    3. Click
      “Open”
  14. Click
    “Ok”
  15. Start
    the Virtual Machine
  16. Install
    Windows Server 2008
    1. Click
      “Next”
    2. Click
      “Install Now”
    3. Select
      “Windows Server 2008 Enterprise (Full Installation)”
    4. Click
      “Next”
    5. Click
      “I accept the license terms”
    6. Click
      “Next”
    7. Click
      “Custom (advanced”)
    8. Click
      “Next”, windows will install
    9. Click
      “Ok”
    10. For
      password, type “Pa$$w0rd”
    11. Type
      “Enter”
    12. Click
      “Ok”
  17. From Hyper-V
    Console, install “Integration Services”
    1. Click
      “Action->Insert Integration Services Setup Disk”
    2. Click
      “Install Hyper-V Integration Services” in the autoplay
    3. Click
      “Ok” to upgrade/install
    4. Click
      “Yes” to restart
  18. Login
    to the server as administrator
  19. Click
    “Start->All Programs->Windows Update”
  20. Click
    “Turn on now”
  21. Click
    “Install now” to install latest windows update software
  22. In the
    “Server Manager” window that opens:
    1. Click
      “Configure Remote Desktop”
    2. Click
      “Allow connections from computers running any version…”
    3. Click
      “OK”
    4. Click
      “OK”
    5. Click
      “Configure IE ESC”
    6. Click
      “Off” for both administrators and users
    7. Click
      “OK”
    8. Click
      “Go to Windows Firewall”
    9. Click
      “Windows Firewall properties”
    10. For
      domain, private, public, set the firewall status to “Off”
    11. Click
      “OK”
    12. Click
      “Add Features”
    13. Click
      “SMTP server”
    14. Click
      “Add Required Role Services”
    15. Click
      “Next”
    16. Click
      “Next”
    17. Click
      “Install”
    18. Click
      “Close”
  23. Run
    Windows Update, get all critical updates
    1. Click
      “Install Updates”, install all updates
    2. Click
      “Restart Now”
  24. Install
    Microsoft Update
  25. Run
    Microsoft update, install any updates
    1. Click
      “Restart Now”
  26. Install
    Server 2008 Service Pack 2 (if it didn’t get installed from Microsoft
    Update)
    1. Restart
      after install
  27. Click
    “Start”
  28. Right
    click “Computer”, select “Properties”
  29. Under
    computer name, click “Change settings”
  30. For
    description, type “sharepoint2010”
  31. Click
    “Change”
  32. Set
    the computer name to “sharepoint2010”
  33. Click
    “Ok”
  34. Restart
    the virtual machine
  35. Run Windows
    Update, get all critical updates
    1. Click
      “Install Updates”, install all updates
    2. Click
      “Restart Now”
  36. At this point, keep your image as a
    Windows Server 2008 base image! 
    1. Copy the base image sharepoint2010
      vhd, rename to server2008sp2base and put in a safe place!
  37. Open a
    command prompt, run dcpromo, setup a domain called “contoso.corp”
    1. Click
      “Next”
    2. Click
      “Next”
    3. Select
      “Create a new domain…”
    4. Click
      “Next”
    5. Enter
      contoso.corp, click “Next”
    6. Select
      “Windows Server 2008”, click “Next”
    7. Click
      “Next”
    8. Click
      “Yes, the computer will use…”
    9. Click
      “Yes”
    10. Click
      “Next”
    11. For
      password, type “Pa$$w0rd”
    12. Click
      “Next”
    13. Click
      “Next”, active directory will setup itself up
  38. Restart
    the machine after AD is finished
  39. At this point, keep your image as a
    Windows Server 2008 base image! 
    1. Copy the base image sharepoint2010
      vhd, rename to server2008sp2_AD and put in a safe place!
  40. Create
    the following domain users, set their password to “Pa$$w0rd” and that they
    can’t change the password and the password doesn’t expire.  
    1. Click
      “Start->Administrative Tools->Active Directory Users and Computers”
    2. Expand
      contoso.corp
    3. Select
      “Users”, right click and select “New->User”
    4. For
      name and user logon, type sp_system
    5. Click
      “Next”
    6. For
      Password, type “Pa$$w0rd”
    7. Uncheck
      “User must change…”
    8. Check
      “User cannot change password”
    9. Check
      “Password never expires”
    10. Click
      “Next”
    11. Click
      “Finish”
  1. Install
    SQL Server 2008 SP1 – If you don’t have slipstreamed sp1, install the
    setup files for SP1, then install sql 2008, then the full SP1 (but you may
    need the new Installer which is in the SQL 2008 base install/non-sp1).
    1. Insert
      the Server 2008 iso (with SP1)
    2. Click
      “installation”
    3. Click
      “New SQL Server standalone…”
    4. On “Setup
      Support Roles”, click “Ok”
    5. On “Setup
      Support Files”, click “Install”
    6. Click
      “Next”
    7. On
      product key, click “Next”
    8. Click
      “I accept the license terms”
    9. Click
      “Next”
    10. Check
      the following:

                                                             
i.     
Database Engine

                                                           
ii.     
SQL Server Replication

                                                         
iii.     
Full-Text Search

                                                         
iv.     
Analysis Services

                                                           
v.     
Reporting Services

                                                         
vi.     
Business Intelligence Development Studio

                                                       
vii.     
Client Tools Connectivity

                                                     
viii.     
Integration Services

                                                         
ix.     
Client Tools Backward Compatibility

                                                           
x.     
Management Tools – Basic

                                                         
xi.     
Management Tools – Complete

                                                       
xii.     
Microsoft Sync Framework

    1. Click
      “Next”
    2. Click
      “Next”
    3. On
      “Disk Space”, click “Next”
    4. For
      all accounts, type “contosoadministrator” and “Pa$$w0rd” for password
    5. Click
      “Next”
    6. Click
      “Mixed Mode” authentication radio button
    7. For
      password, type “Pa$$w0rd”
    8. Click
      “Add Current User”
    9. Click
      “Next”
    10. Click
      “Add Current User”
    11. Click
      “Next”
    12. On
      report Services, click “Install, but do not configure…” radio button
    13. Click
      “Next”
    14. Click
      “Next”
    15. Click
      “Next”
    16. Click
      “Install”
    17. Click
      “Next”
    18.  Click “Close”
  1. Install
    the 2008 SP1 CU2
    1. http://support.microsoft.com/kb/970315
    2. Open SQL Management Studio, make sure
      your version is 10.00.2714 or later!
  2. Open
    SQL Server Management Studio, this is for the initial setup process to run
  3. Open the SQL configuration manager
    Click “Start->All programs->Microsoft SQL Server 2008->Configuration Tools->Sql Server Configuration manager
    1. Expand “SQL Server Network Configuration->Protocols for MSSQLSERVER”
    2. Enable:
      1. Named Pipes
      2. TCP/IP
    3. Restart the sql service
  4. Install/attach
    the demo databases (Northwind, pubs, adventureworks2000,
    adventureworksDW).  These can be
    downloaded or installed from the instructor dvd.
    1. Northwind
      and Pubs (http://www.microsoft.com/downloads/details.aspx?FamilyID=06616212-0356-46A0-8DA2-EEBC53A68034&displaylang=en)

                                                             
i.     
Run Sql2000SampleDb.msi

                                                           
ii.     
Open c:sql server 2000 sample databasesinstnwnd.sql

                                                         
iii.     
Run on sharepoint2007

                                                         
iv.     
Open c:sql server 2000 sample databasesinstpubs.sql

                                                           
v.     
Run on sharepoint2007

                                                         
vi.     
Delete the c:sql server 2000 sample databases
directory

    1. AdventureWorks
      2000 (http://www.microsoft.com/downloads/details.aspx?familyid=487c9c23-2356-436e-94a8-2bfb66f0abdc&displaylang=en)

                                                             
i.     
Run AdventureWorks2000.exe

                                                           
ii.     
Click, no at the .net 1.0/1.1 framework install

                                                         
iii.     
Open Sql Server management studio

                                                         
iv.     
Connect to sharepoint 2007

                                                           
v.     
Right click databases, select attach

                                                         
vi.     
Click Add, Browse to c:program filesmicrosoft sql
servermssqldataadventureworks2000_data.mdf

                                                       
vii.     
Click Ok

    1. AdventureWorksDW
      (http://codeplex.com/SqlServerSamples)

                                                             
i.     
Find and download, run AdventureWorksDBScripts.msi

                                                           
ii.     
Open c:program filesmicrosoft sql
server100 oolsSamplesadventureworks data warehouseinstawdb.sql

                                                         
iii.     
Run on sharepoint2007 (make sure you don’t get any
errors, if you do fix them – likely need to copy the .csv files to a directory)

                                                         
iv.     
Open c:program filesmicrosoft sql
server100 oolsSamplesadventureworks OLTPinstawdb.sql

                                                           
v.     
Run on sharepoint2007 (make sure you don’t get any
errors, if you do fix them – likely need to copy the .csv files and rename the
.mdf and .ldf to install the database)

  1. Run Windows
    Update, get all critical updates
    1. Click
      on all available updates
    2. Click
      “Ok”
    3. Click
      “Install Updates”
    4. Click
      “Restart Now”
  2. At this point, keep your image as a
    base image! 
    1. Copy the base image sharepoint2010 vhd,
      rename to server2008sp2_sql2008sp1_cu and put in a safe place!
  3. Install
    “Office 2010”
    1. Click
      “I accept the terms…” check box
    2. Click
      “Continue”
    3. Click
      “Install Now”
    4. Click
      “Close”
    5. Open
      “Word 2010”
    6. Click
      “Use recommended settings”
    7. Click
      “Ok”
  4. Open
    Office Word 2010 to setup the initial settings
  5. Install
    “Visio 2010”
    1. Enter
      your product key
    2. Click
      “Continue”
    3. Click
      “I accept the terms…” check box
    4. Click
      “Continue”
    5. Click
      “Install Now”
    6. Click
      “Close”
  6. Install
    “Microsoft SharePoint Designer 2010”
    1. Click
      “I accept the terms…” check box
    2. Click
      “Continue”
    3. Click
      “Install Now”
    4. Click
      “Close”
  7. Install
    “Visual Studio 2010”
    1. Insert
      the iso into the image
    2. Click
      “Install Visual Studio 2010”
    3. Click
      “Next”
    4. Click
      “I have read and accept…”
    5. Click
      “Next”
    6. Click
      “Full”
    7. Click
      “Install”
    8. When/if
      prompted, restart, the install will start up again when rebooted
    9. When/if
      prompted, restart, the install will start up again when rebooted
    10. Click
      “Finish”, close the intaller
  8. Open “Visual
    Studio 2010”, select c# development settings
    1. Turn
      off customer improvement program
    2. Close
      Visual Studio 2010
  9. Install
    “FireFox” browser
    1. Download
      from http://www.firefox.com
  10. Install
    “Google Chrome” browser
    1. Download
      from http://www.google.com/chrome
  11. Install
    “Apple Safari” browser
    1. Download
      from http://www.apple.com/safari/
  12. Install
    “Enterprise Library 4.1”
    1. http://www.microsoft.com/downloads/details.aspx?FamilyId=1643758B-2986-47F7-B529-3E41584B6CE5&displaylang=en
    2. Click
      “I accept the terms…”
    3. Click
      “Next”
    4. Click
      “Next”
    5. Click
      “Next”
    6. Click
      “Install”
    7. Click
      “Launch” to install the source and working copy files
    8. Click
      “Finish”
  13. Apply WCF
    patch
    1. Download
      and install (http://support.microsoft.com/kb/971831)
  14. At this point, keep your image as a
    base image!
    1. Copy the base image sharepoint2010
      vhd, rename to server2008sp2_sql2008sp1_cu_vs2010 and put in a safe
      place!
  15. Install
    “SharePoint 2010” Prereqs
    1. NOTE: (BE SURE YOU ARE LOGGED IN AS
      CONTOSOADMINISTATOR)
    2. Insert
      the DVD/start the install
    3. Click
      “Install Prerequisites”

                                                             
i.     
NOTE: this
step will require internet access!

    1. Click
      “Next”
    2. Click
      “I accept the terms…”
    3. Click
      “Next”

                                                             
i.     
All pre-reqs will be downloaded and installed (this
could take 45 minutes)

                                                           
ii.     
Even on Server 2008, your setup may download SP2 for
Server 2008 and install, if it does, a reboot will be required.  After reboot, continue the install via the
prompts

                                                         
iii.     
Install will continue by installing application server
role and the other prereqs

  1. Install
    “SharePoint 2010” product
    1. Click
      “Install SharePoint Server”
    2. Enter
      your trial product key

                                                             
i.     
PKXTJ-DCM9D-6MM3V-G86P8-MJ8CY

    1. Click
      “Continue”
    2. Click
      “I accept…”
    3. Click
      “Server Farm”
    4. Select
      “Complete…”
    5. Click
      “Install Now”
    6. Click
      “Close”  (uncheck the run
      configuration wizard)

  1. Ensure proper permissions are
    setup (these steps will fix the CryptographicException error):

    1. Right click on the
      folder ('%CommonProgramFiles%Microsoft SharedWeb Server Extensions14),
      select “Properties”
    2. Select “Security” tab
    3. Click “Edit”
    4. Click “Add”
    5. For the user type
      “Network Service”
    6. Click “OK”
    7. Grant the user Full
      Control
    8. Click “OK”
    9. Click “OK”
  1. At this point, keep your image as a
    base image! 
    1. Copy the base image sharepoint2010
      vhd, rename to server2008sp2_sql2008sp1_cu_vs2010_NoConfigure and put in
      a safe place!
  2. Run
    SharePoint Configuration Wizard
    1. Click
      “Start->All Programs->Microsoft SharePoint 2010
      products->SharePoint 2010 Products Configuration Wizard”
    2. Click
      “Next”
    3. In
      the popup, click “Yes”
    4. Select
      “Create a new server farm”
    5. Click
      “Next”
    6. For
      database server, type “SharePoint2010”
    7. For
      username, type “contosoadministrator”
    8. For
      password, type “Pa$$w0rd”
    9. Click
      “Next”
    10. For
      passphrase, type “Pa$$w0rd”
    11. Click
      “Next”
    12. Click
      “Next”,
    13. Click
      “Next”, SharePoint 2010 will Configure itself
    14. Click
      the radio button to participate in the feedback program, we gotta make SharePoint
      better right?!?
    15. Click
      “Walk me through the settings using this Wizard” radio button
    16. Click
      “Next”
    17. Click
      “Use existing managed account”
    18. Click
      “Next”, all your services will be created, this will take a few minutes
    19. Click
      “Skip”
    20. Click
      “Finish”
  3. Add a
    farm administrator
    1. Click
      “Security”
    2. Click
      “manage farm administrators group”
    3. Click
      “New->Add Users”
    4. Type
      contososp_system
    5. Click
      “Ok”
  4. Open
    the SharePoint Central Administration site and setup Diagnostic Logging
    1. Click
      “Monitoring”
    2. Under
      “Reporting”, click “Configure usage and health data collection”
    3. Ensure
      that “Enable usage data collection” is clicked
    4. Ensure
      that “Enable health data collection” is clicked
    5. Click
      “Ok”
  5. Open
    the SharePoint Central Administration site and setup Outgoing Email
    1. Click
      “System Settings”
    2. Click
      “Configure out-going email Settings”
    3. For
      outbound smtp, type “sharepoint2010”
    4. For
      from address, type “sharepoint@contoso.corp”
    5. For
      reply address, type sharepoint@contoso.corp
    6. Click
      “Ok”
  6. Start
    the “SharePoint Web Services” application pool
    1. Open
      IIS Manager
    2. Ensure
      that the “SharePoint Web Service” application pool is started
  7. Start
    services on a server
    1. Open
      “Central Administration”
    2. Click
      “System Settings”
    3. Click
      “Manage services on server”
    4. Start
      all services, except for “Lotus Notes Connector”

                                                             
i.     
NOTE: Install “Document Conversions Load balancer”
before you start the launcher service, select “servername” when setting up the
launcher service.

                                                           
ii.     
For Foundation Search, use the following settings:

1.      For
Username type, “contosoadministrator”

2.      For
password, type “Pa$$w0rd

3.      For
content access account type “contosoadminsitrator”

4.      For
password, type “Pa$$w0rd”

5.      Click
“Start”

                                                         
iii.     
For “User Profile Synchronization Service”

1.      Click
“Start”

2.      Select
the only “User Profile Service Application”

3.      Click
“OK”

4.      Wait
for the status of the job to change to “Started”

  1. Ensure
    Windows Services have started
    1. Open
      the Services Applet
    2. Ensure
      these two service eventually start

                                                             
i.     
ForeFront Identity Manager Service

                                                           
ii.     
ForeFront Identity manager Synchronization Service

  1. Run an
    IISRESET
  2. Configure
    the User Profile service
    1. Click
      “Application Management”
    2. Click
      “Manage service applications”
    3. Click
      “User Profile Service Application”
    4. Click
      “Manage” in the Ribbon
    5. Click
      “Configure Synchronization Connections”
    6. Click
      “Create new connection”
    7. For
      connection name, type “Contoso.corp”
    8. For
      forest name, type “contoso.corp”
    9. For
      account name, type “contosoadministrator”
    10. For
      password, type “Pa$$w0rd”
    11. Click
      “Populate Containers”

                                                             
i.     
NOTE:  if you get
an error, change the browser settings to IE7.0

    1. Expand
      “Contoso”
    2. Select
      “Users”
    3. Click
      “Ok”
  1. Install
    “Office Web Applications”
    1. Type
      your key
    2. Click
      “I accept the terms…”
    3. Click
      “Continue”
    4. Click
      “Install Now”
    5. Click
      “Close”, leave the checkbox checked
    6. Click
      “Next”
    7. Click
      “Yes”
    8. Click
      “Next”
    9. Click
      “Next”
    10. Click
      “Finish”
  2. Create
    Office Web Applications service applications
    1. Open
      Central Administration
    2. Click
      “Application management”
    3. Click
      “Manage service applications”
    4. Click
      “New->PowerPoint Service Application”
    5. For
      name, type “PowerPoint Service”
    6. For
      pool name, type “PPTPool”
    7. Click
      “OK”
    8. Click
      New->Word Viewing Service”
    9. For
      name, type “Word Viewing Service”
    10. For
      application pool type “WordViewingPool”
    11. Click
      “OK”
    12. On
      the service applications page, click “PowerPoint Service Application”
    13. Click
      “new site collection”
    14. For
      title, type “PPT Broadcast”
    15. For
      the url, in the dropdown select “sites”
    16. For
      the url textbox, type “PPTBroadcast”
    17. For
      template, click “Enterprise”, select “PowerPoint Broadcast Site”
    18. For
      site collection admin, type “administrator”
    19. Click
      “OK”
    20. Click
      “System Settings”
    21. Click
      “Manage services on server”
    22. Click
      “Start” for:

                                                             
i.     
PowerPoint Service

                                                           
ii.     
Word Viewing Service

  1. Open
    SharePoint PowerShell, run the following commands:
    1. Click
      Start->Programs->Microsoft SharePoint 2010 Products->SharePoint
      2010 Mangaement Shell
    2. Run the
      following commands:


$acl = Get-Acl HKLM:SystemCurrentControlSetControlComputerName

$person =
[System.Security.Principal.NTAccount]"Users"

$access =
[System.Security.AccessControl.RegistryRights]::FullControl

$inheritance =
[System.Security.AccessControl.InheritanceFlags]"ContainerInherit,
ObjectInherit"

$propagation =
[System.Security.AccessControl.PropagationFlags]::None

$type =
[System.Security.AccessControl.AccessControlType]::Allow

$rule = New-Object System.Security.AccessControl.RegistryAccessRule($person,
$access, $inheritance, $propagation, $type)

$acl.AddAccessRule($rule)

Set-Acl
HKLM:SystemCurrentControlSetControlComputerName $acl

 

 

$e = Get-SPServiceApplication | where
{$_.TypeName.Equals("Word Viewing Service Application")}

$e.WordServerIsSandboxed = $false

$e.WordServerIsSandboxed

 

$p = Get-SPServiceApplication | where
{$_.TypeName.Equals("PowerPoint Service Application")}

$p.EnableSandboxedViewing = $false

$p.EnableSandboxedEditing = $false

 

 

  1. Open
    c:windowssystem32inetsrvconfigapplicationHost.config file. Add the
    line below in the end of the dynamicTypes:


<add mimeType="application/zip" enabled="false" />

 

a.      
Run IISRESET

  1. Download
    and install the Data Service 1.5 CTP
    1. http://www.microsoft.com/downloads/details.aspx?FamilyID=a71060eb-454e-4475-81a6-e9552b1034fc&displaylang=en#filelist
  2. Download
    and install Fiddler
    1. www.fiddler2.com

80.  Install
Desktop Experience

a.      
Open the “Server Manager”

b.     
Click “Add Feature”

c.      
Check the following:

                                                             
i.     
Desktop experience

d.     
Click “Next”

e.      
Click “Install”

81.  Download
and install Microsoft SilverLight

82.  Download
and install Microsoft Identity Framework

a.      
http://msdn.microsoft.com/en-us/evalcenter/dd440951.aspx

83.  Download
and install Microsoft Identity Framework SDK

    1. http://www.microsoft.com/downloads/details.aspx?familyid=C148B2DF-C7AF-46BB-9162-2C9422208504&displaylang=en
  1. Create the “Team Site”
    1. Click “Application
      Management”
    2. Click “Manage Web
      Applications”
    3. In the Ribbon, click
      “New”
    4. Ensure that ”Classic
      Mode Authentication” is enabled
    5. For Port, type “100”
    6. Under Application
      Pool, Select Create new Application Pool
    7. For Name, type
      “SharePoint – ALL”
    8. For security account,
      select “contosoadministrator”
    9. For the database name,
      change to “wss_content_100”
    10. Click “Ok”, your web
      application is being created:

                                                             
i.     
NOTE: In
Production, you should always type a meaningful name for your content
databases!

    1. Click the “Create Site
      Collection” Link
    2. For Title, type “My
      Team Site”
    3. For Template, Under
      Collaboration select Team Site
    4. For Primary Site
      Collection administrator, type “Administrator”
    5. Click “Ok”
  1. Create the “Portal Site”
    1. Click “Application
      Management”
    2. Click “Manage Web
      Applications”
    3. In the Ribbon, click
      “New”
    4. Ensure that ”Classic
      Mode Authentication” is enabled
    5. For Port, type “112”
    6. Under Application
      Pool, Select “Use Existing Application Pool”
    7. For Name, type
      “SharePoint – ALL”
    8. For the database name,
      change to “wss_content_112”
    9. Click “Ok”, your web
      application is being created:
    10. Click the “Create Site
      Collection” Link
    11. For Title, type “My
      Portal Site”
    12. For Template, Under “Publishing”
      select “Publishing Site”
    13. For Primary Site
      Collection administrator, type “Administrator”
    14. Click “Ok”
  2. Make
    the quicklaunch bar horizontal and add the following items to quicklaunch
    (you can do this by navigating to the respective program icon in the start
    menu, right click, Add To Quick Launch)
    1. SharePoint
      Designer 2010
    2. Visio
      2010
    3. Visual
      Studio 2010
    4. SQL
      Server Management Studio
    5. Visual
      Studio Command Prompt

                                                             
i.     
Available under start->Microsoft Visual Studio
2010->Visual Studio Tools->Visual Studio Command Prompt

    1. A
      Shortcut to the 14 hive
    2. Enterprise library
      console
    3. Services
      Applet

                                                             
i.     
Available under Start->Administrative
Tools->Services

    1. IIS
      Manager

                                                             
i.     
Available under Start->Administrative
Tools->Internet Information Services (IIS) Manager

    1. SharePoint
      Central Administration Console

                                                             
i.     
Available under Start->Programs->Microsoft
SharePoint 2010 Products->SharePoint 2010 Central Administration

    1. SharePoint
      2010 management Shell

                                                             
i.     
Available under Start->Programs->Microsoft
SharePoint 2010 Products->SharePoint 2010 Management Shell

  1. Add C:Program
    FilesCommon FilesMicrosoft Sharedweb server extensions14BIN to the
    Path variable
    1. Right
      click My Computer, select “Properties”
    2. Click
      “Advanced system settings”
    3. Click
      “Environment variables”
    4. Under
      system variables section, click path, click Edit
    5. Go
      to the end of the string append, “;C:Program FilesCommon
      FilesMicrosoft Sharedweb server extensions14BIN”
  2. Uninstall
    bad programs
    1. Click
      Start->Control Panel
    2. Click
      “Programs and features”
    3. Uninstall
      “Visual Studio 2010 Beta 2 Tools for SQL Server Compact ENU”
    4. Uninstall
      “Microsoft SQL Server Compact *”
    5. Restart
      the machine
    6. Install
      SQL Server CE x86
    7. Install
      SQL Server CE x64
    8. Install
      SQL Server CE Server Tools x64
    9. Reboot
      your machine

My FAST Search Install step by step is here

FAST Search for SharePoint – Step by Step Install

By popular demand, here is the FAST Search step by step install steps!  If you like it, add me to twitter http://twitter.com/givenscj

Enjoy!
Chris

Task 1 – Setup FAST Search Center         

  1. Open SharePoint Central
    Administration
  2. Click “Application
    Management”
  3. Click “Create Site
    Collection”
  4. Select the web application
    called “SharePoint –115”
  5. For site name, type “FAST
    Search”
  6. For url, type FAST
  7. For template, select
    “Enterprise->FAST Search Center”
  8. For site collection admin,
    type “Administrator”
  9. Click “Create”

Task 2 – Install FAST
Search

  1. Run the following command to
    extract the files (beta installer doesn’t work quite right)
    • D:Lab
      Work<labno> en_fast_search_server_sharepoint_2010_beta_x64_x16-29476
      /extract:c: emp
  2. Run “C: empPrerequistieInstaller”
  3. The splash screen will open:

  1. Click “Next”
  2. The prereqs for FAST Search
    will be installed

  1. Click “Finish”
  2. Run “fsserver”
    • This will create a new
      directory called “C:FASTSearch”
  3. Click “Start”, right click
    “Computer”, select “Properties”
  4. Click “Advanced System
    Settings”
  5. Click “Environment Variables”
  6. Add the following to your
    path variable
    • “C:FASTSearchinstallerscripts”
  7. Run the SharePoint 2010
    Management Shell
  8. Run the following:
    • Psconfig.ps1 –action i
      –roleName single –userName contosoadministrator –localMachineName <FQDNservername>
      -databaseConnectionString <dbservername> –databaseName FASTSearch
  9. Enter the password,
    “Pa$$w0rd”
  10. For self signed password,
    type “Pa$$w0rd”
  11. Reboot the computer
  12. Run the following command:
    • ConfigureSharePointAuthorization
      –installedMode Advanced

Task 3 – Start
Services

  1. Open the services applet,
    ensure the following are started:
    • All “FAST*”
    • Forefront*
    • SharePoint Server
      Search 14
    • SharePoint Foundation
      Search V4

Task 4 – Setup FAST
Search Query Service

  1. Open SharePoint Central
    Administration
  2. Click “Application Management”
  3. Click “Manage service
    applications”
  4. Click “New->Search
    Service”
  5. For name, type “FAST Search
    Query”
  6. For the type, select “FAST
    Search Query”
  7. For the application pool for
    admin server, type “FASTSearchAdminPool”
  8. For the application pool for
    search query and site settings”, type “FASTSearchQueryPool”
  9. For Query Service Location,
    type “https://sharepoint2010.contoso.corp:13286”
  10. For Administration Service
    Location, type “net.tcp://sharepoint2010.contoso.corp:13256”
  11. For Resource Store Location,
    type “http://sharepoint2010.contoso.corp:13255”
    • NOTE: these port
      numbers are in the “C:FASTSearchInstall_Info.txt” file – minus the
      actual protocol data unfortunately
  12. For account, type
    “contosoadministrator”
  13. Click “Ok”
  14. Click “Application
    Management”
  15. Click “Manage service
    applications”
  16. Click “New->Search
    Service”
  17. For name, type “FAST Search
    Connector”
  18. For type, select “FAST Search
    Connector”
  19. For application pool, type
    “FASTConnectorPool”
  20. For content distributor, type
    “sp2010.contoso.com:13329”
  21. For the content collection,
    type “sp”
    • NOTE:  the content collection “sp” is the
      default one created by the install and configuration steps
  22. Click “OK”

Task 5 – Setup
Certificate

  1. Open a SharePoint 2010
    Management Console
  2. Run the following commands
    (be sure to replace the two bolded items with your server and application
    name): 


$currentdir = pwd
$sharepointSTSCertFilename = Join-Path -Path $currentdir -ChildPath 'MOSS_STS.cer'
$fastsearchqrserver = 'fs14qrserver.mydomain.com'
$fastSSAName = 'FASTSearchServiceApplication'
 
$stsCert = (Get-SPSecurityTokenService).LocalLoginProvider.SigningCertificate
$stsCert.Export("cert") | Set-Content -encoding byte $sharepointSTSCertFilename
 
$queryServiceLocationValue = "http://" + $fastsearchqrserver + ":13287"
Set-SPEnterpriseSearchExtendedQueryProperty -SearchApplication $fastSSAName -Identity "FASTSearchQueryServiceLocation" -Value $queryServiceLocationValue
Set-SPEnterpriseSearchExtendedQueryProperty -SearchApplication $fastSSAName -Identity "FASTSearchQueryServiceWinAuth" -Value false
Get-SPEnterpriseSearchExtendedQueryProperty -SearchApplication $fastSSAName
IISReset


Open a FAST Search Management
Console

  1. Run the following commands
    (be sure to replace the path to the certificate):


$sharepointSTSCertFilename = 'FULLPATH_TO_MOSS_STS.cer'
 
# Import SharePoint Security Token Service Certificate
$trustedPeopleCertStore = new-object System.Security.Cryptography.X509Certificates.X509Store('TrustedPeople', [System.Security.Cryptography.X509Certificates.StoreLocation]::LocalMachine)
$trustedPeopleCertStore.Open([System.Security.Cryptography.X509Certificates.OpenFlags]::ReadWrite)
$sharepointSTSCert = new-object System.Security.Cryptography.X509Certificates.X509Certificate2
$sharepointSTSCert.Import($sharepointSTSCertFilename)
$trustedPeopleCertStore.Add($sharepointSTSCert)
$trustedPeopleCertStore.Close()
 
# Configure FAST Search Server to trust SharePoint Security Token Service certificate
Set-FASTSearchQRProxyMOSSConfiguration -STSThumbprint $sharepointSTSCert.Thumbprint -RestartServices true

  1. Open the C:FASTSearchinQRProxyService.exe.config
  2. Uncomment the following line
    that starts with:

<!--<binding
name="HTTP_CLAIMS_INSECURE">...

  1. Enable HTTPS searching by
    running the following commands

#HTTPs – EXPORT CERT

$currentdir = pwd
$sharepointSTSCertFilename = Join-Path -Path $currentdir -ChildPath 'MOSS_STS.cer'
$fastsearchqrserver = 'sharepoint2010.contoso.corp'
$fastSSAName = 'FAST Search Query'
$sharepointServicesCertFilename = Join-Path -Path $currentdir -ChildPath 'MOSS_SERVICES.pfx'
$sharepointServicesCertPassphrase = $host.ui.PromptForCredential("Need Credentials", "Please enter a passphrase for the SharePoint Services Cert", "CERT_PASSPHRASE", "")
$tempStringValue = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($sharepointServicesCertPassphrase.Password)
$plainTextPassPhrase = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($tempStringValue)
$stsCert = (Get-SPSecurityTokenService).LocalLoginProvider.SigningCertificate
$stsCert.Export("cert") | Set-Content -encoding byte $sharepointSTSCertFilename
$sharePointCertStore = new-object System.Security.Cryptography.X509Certificates.X509Store('SharePoint', [System.Security.Cryptography.X509Certificates.StoreLocation]::LocalMachine)
$sharePointCertStore.Open([System.Security.Cryptography.X509Certificates.OpenFlags]::ReadOnly)
$servicesCert = $sharePointCertStore.Certificates.Find([System.Security.Cryptography.X509Certificates.X509FindType]::FindBySubjectName,'SharePoint Services', $false)
$servicesCert.Export("pfx", $plainTextPassPhrase) | Set-Content -encoding byte $sharepointServicesCertFilename
$servicesCert2 = new-object System.Security.Cryptography.X509Certificates.X509Certificate2
$servicesCert2.Import($sharepointServicesCertFilename, $plainTextPassPhrase, [System.Security.Cryptography.X509Certificates.X509KeyStorageFlags]::DefaultKeySet)
$trustedPeopleCertStore = new-object System.Security.Cryptography.X509Certificates.X509Store('TrustedPeople', [System.Security.Cryptography.X509Certificates.StoreLocation]::LocalMachine)
$trustedPeopleCertStore.Open([System.Security.Cryptography.X509Certificates.OpenFlags]::ReadWrite)
$trustedPeopleCertStore.Add($servicesCert2)
$trustedPeopleCertStore.Close()
 
$queryServiceLocationValue = "https://" + $fastsearchqrserver + ":13286"
Set-SPEnterpriseSearchExtendedQueryProperty -SearchApplication $fastSSAName -Identity "FASTSearchQueryServiceLocation" -Value $queryServiceLocationValue
Set-SPEnterpriseSearchExtendedQueryProperty -SearchApplication $fastSSAName -Identity "FASTSearchQueryServiceWinAuth" -Value false
Get-SPEnterpriseSearchExtendedQueryProperty -SearchApplication $fastSSAName
IISReset

#HTTPS – IMPORT CERT

$sharepointSTSCertFilename = 'c:usersadministratorMOSS_STS.cer'
$sharepointServicesCertFilename = 'c:usersadministratorMOSS_SERVICES.pfx'
$sharepointServicesCertPassphrase = $host.ui.PromptForCredential("Need Credentials", "Please enter the passphrase for the SharePoint Services Cert", "CERT_PASSPHRASE", "")
$tempStringValue = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($sharepointServicesCertPassphrase.Password)
$plainTextPassPhrase = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($tempStringValue)

# Import SharePoint Security Token Service Certificate
Add-PSSnapin Microsoft.FASTSearch.Powershell
$trustedPeopleCertStore = new-object System.Security.Cryptography.X509Certificates.X509Store('TrustedPeople', [System.Security.Cryptography.X509Certificates.StoreLocation]::LocalMachine)
$trustedPeopleCertStore.Open([System.Security.Cryptography.X509Certificates.OpenFlags]::ReadWrite)
$sharepointSTSCert = new-object System.Security.Cryptography.X509Certificates.X509Certificate2
$sharepointSTSCert.Import($sharepointSTSCertFilename)
$trustedPeopleCertStore.Add($sharepointSTSCert)

# Import SharePoint Security Token Service Certificate
$trustedPeopleCertStore = new-object System.Security.Cryptography.X509Certificates.X509Store('TrustedPeople', [System.Security.Cryptography.X509Certificates.StoreLocation]::LocalMachine)
$trustedPeopleCertStore.Open([System.Security.Cryptography.X509Certificates.OpenFlags]::ReadWrite)
$sharepointSTSCert = new-object System.Security.Cryptography.X509Certificates.X509Certificate2
$sharepointSTSCert.Import($sharepointSTSCertFilename)
$trustedPeopleCertStore.Add($sharepointSTSCert)
$trustedPeopleCertStore.Close()
 
# Import SharePoint Services Certificate
$sharepointServicesCert = new-object System.Security.Cryptography.X509Certificates.X509Certificate2
$sharepointServicesCert.Import($sharepointServicesCertFilename, $plainTextPassPhrase, [System.Security.Cryptography.X509Certificates.X509KeyStorageFlags]::DefaultKeySet)
$personalCertStore = new-object System.Security.Cryptography.X509Certificates.X509Store('My', [System.Security.Cryptography.X509Certificates.StoreLocation]::LocalMachine)
$personalCertStore.Open([System.Security.Cryptography.X509Certificates.OpenFlags]::ReadWrite)
$personalCertStore.Add($sharepointServicesCert)
$personalCertStore.Close()
$rootCertStore = new-object System.Security.Cryptography.X509Certificates.X509Store('Root', [System.Security.Cryptography.X509Certificates.StoreLocation]::LocalMachine)
$rootCertStore.Open([System.Security.Cryptography.X509Certificates.OpenFlags]::ReadWrite)
$rootCertStore.Add($sharepointServicesCert)
$rootCertStore.Close()
 
# Configure FAST Search to trust SharePoint Security Token Service Certificate
Set-FASTSearchQRProxyMOSSConfiguration -STSThumbprint $sharepointSTSCert.Thumbprint -RestartServices true
$sharepointServicesCertThumbprint = $sharepointServicesCert.Thumbprint
netsh http add sslcert ipport=0.0.0.0:13286 certhash=$sharepointServicesCertThumbprint 'appid={a5455c78-6489-4e13-b395-47fbdee0e7e6}'

Task 6 – Re-index content

  1. Open SharePoint Central
    Administration
  2. Click “Application
    Management”
  3. Click “Manage service
    applications”
  4. Click “FAST Connector”
  5. Click “Content Sources”
  6. Click “New Content Source”
  7. For name, “SharePoint Sites”
  8. For start address, type http://servername:100
  9. Check the “Start full crawl
    of this content source”
  10. Click “OK”
  11. Wait for the crawl to finish

 Task 7 – Test FAST
Search

  1. Open the http://servername:115
    site
  2. Type in and run a query

 

SharePoint 2010 REST-like Services – Getting them to work!

Given that it is only beta, I still have to give SharePoint 2010 some leaway yet, until RTM comes out, who knows if
these things will be the same or not. 

Anyone that has programmed Facebook API, knows they have one of the most intense and best documented REST-ful
service layers on the planet!  I have many applications that use their API and the OpenID login IP-STS.  If you were to
look at Facebook and their implementation, you would know it is the BEST way to implement REST services.  I give them
full credit for the revolution that has started!

Given that, let's look at SharePoint 2010 and its REST-like services.  Here's my issues:

  1. Performance sucks
    1. Implementation should have been with HttpHandler vs "Accept" header in the HTTP request with the requested
      format you want returned.  This adds 23 bytes to every request, oh and wait, it gets better, for some reason you
      need a "if-match" header too, another 15 bytes.  Facebook simply does this in the request URL listdata.atom or
      listdata.xml – wow, how easy is that?
    2. My favorite tweet about this REST Implementation: "Oh my god, they killed REST, you bastards!"
  2. Documentation so far is poor
    1. Take for instance the "POST" for adding a new item, the documentation is wrong, it says to do this:

POST /_vti_bin/ListData.svc/Employees HTTP/1.1
Accept: application/atom+xml
Content-Type: application/atom+xml
Host: www.contoso.com
Content-Length: ###
Expect: 100-continue
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<entry xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
xmlns="http://www.w3.org/2005/Atom">
<category scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" term="Microsoft.SharePoint.Linq.EmployeesItem" />
<title />
<author>
<name />
</author>
<updated>2009-04-30T02:15:21.1353156Z</updated>
<id />
<link href="http://www.contoso.com/_vti_bin/ListData.svc/Projects(2)"
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Projects"
type="application/atom+xml;type=feed" />
<link href="http://www.contoso.com/_vti_bin/ListData.svc/Projects(3)"
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Projects"
type="application/atom+xml;type=feed" />
<content type="application/xml">
<m:properties>
<d:Created m:type="Edm.DateTime" m:null="true" />
<d:FullName>James Earl Jones</d:FullName>
<d:HireDate m:type="Edm.DateTime">1987-04-29T19:15:14.7861156-07:00</d:HireDate>
<d:ID m:type="Edm.Int32">0</d:ID>
<d:Modified m:type="Edm.DateTime" m:null="true" />
<d:Path m:null="true" />
<d:Salary m:type="Edm.Double">195000</d:Salary>
<d:Version m:null="true" />
<d:Owshiddenversion m:type="Edm.Int32" m:null="true" />
</m:properties>
</content>
</entry>

The error is in the "category" element, you are not using "Linq", you should be using "DataService".

Changing the term attribute will fix your issues:

<category scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
term="Microsoft.SharePoint.Linq.EmployeesItem" />

TO:

<category scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
term="Microsoft.SharePoint.DataService.EmployeesItem" />

You should also wrap your WebRequest calls in an try/catch handling a WebException.
You can then interrogate the ResponseStream and see what error you are actually getting back and
fix any other issues you might run into!

As always, Enjoy!
Chris

Follow me on twitter!

Office & BCS

This is a great job by Fabian Williams on tracking down the "bcssync.exe" "dllNotFoundException".  Works like a charm!  Good job Fabian!

http://bit.ly/5acgH9

The only thing I would add is that you should try to reinstall the .NET 3.5 SP1 if you can't get past the bcssync.exe error.

Chris

Follow me on twitter!

FAST Search Installer – Getting it to work!

So it won't install eh?  Run this command to extract the files, then just run the files.  Seems the installer wrapper is messed up:

  • en_fast_search_server_sharepoint_2010_beta_x64_x16-29476
    /extract:c: emp

This will extract the files to the temp directory, then you do the following:

  • Run PrerequisiteInstaller
  • Run fsserver

After running fsserver, you will have a new directory on your server called c:FASTSearch, you will need to do the following:

  • Add "C:FASTSearchinstallerscripts" to your path
  • Open SharePoint 2010 Management console
  • Run the following:
    • Psconfig.ps1 –action i –roleName single –userName contosoadministrator –localMachineName <servername> -databaseConnectionString “<dbservername>” –databaseName FASTSearch

As Emeril would say "BAM", you got FAST Search INSTALLED!  Woohoo!

HINTS:

  • If you uninstall FAST Search using "psconfig -action u", you will lose a file called "C:Program FilesCommon FilesMicrosoft SharedULS14ULSControllerService.exe" 
  • The fix for this is to uninstall the ULS components, then reinstall them again.  The file will return and you can reinstall/config FAST Search

Enjoy,
Chris

SharePoint 2010 – Wait, its not working! HELP!

Ok, the two most important things for you to check if something is NOT working in SharePoint 2010

  • Check IIS Application Pool called "SharePoint Web Services" IS RUNNING, and make sure its not runinng as "Local System" but something that has some *UMMPHF* to it!
  • Check Timer Service – this thing seems to shut itself down and doesn't restart!  Make sure it is running or NOTHING will happen in your system

That will solve ALOT of your problems!

Chris

Follow me on twitter!

Sandboxed Solutions – SharePoint 2010

So you have probably heard about this new "Sandboxed" solution "feature" of SharePoint 2010.  Sounds cools right?  Well, let's just wait till your developers get ahold of it and start to screw with your users in production!

So reservations I have include:

  • Point system is too high (300 points/day).  Really?  For each unhandled exception I get 1/50th of a point.  That means it would take  15,000 unhandled exceptions!  

Let me put that into perspective for you.

  • What if you create an event receiver that has an unhandled exception on PURPOSE?
  • Deploy that event receiver to your site for a specific list (let's say only the most important one on the site)
  • Well, your end users will have the joy of trying to add/update an item 15,000 times while getting a nasty modal error popup before you hit 300 points and it is disabled
  • Oh, did I mention they would need to do that every morning?

Sounds fun right? No….

  • How about the fact that the resource points aren't updated but every 15 minutes?  Hmmm, guess that means I can do as many bad things as I want in 15 minutes and go over 300 points!
  • Oh, wait what if the Timer service is NOT running?  No points will be updated…doh!

Not too sure about this whole Sandboxed Solution thang…how about you?

CJG

Follow me on twitter!

State Service Application – SharePoint 2010

 So, you decided not to use the Configuration Wizard to setup your Service Applications like I did eh?  So you probably got as far as I did…one item you can't create from the menu is the "State Service Application".

So how do you create it manually?  Well you could try the PowerShell commands in some order like this (dont do this by the way):

new-SPStateServiceApplication
new-SPStateServiceDatabase
new-SPStateServiceApplicationProxy

This of course will create everything, but for some reason the state service application doesn't see the database.  I'm not a 10 of 10 on PowerShell just yet and b/c I'm currently too lazy to open up Visual Studio and reverse engineer the Object Model, I decided to figure out how to get it to work in some other way!

Turns out, the solution lies in the Configuration Wizard for the farm on the Central Administration site.  Just delete the State Service Application, then run the wizard.  It will give you the options for anything that doesn't exist, that would include our lovely state service application.  It will then build the appropriate connections and ta-da!  it all just magically works.   I'm still not totally satisfied that my PowerShell commands didn't work, but hey, beta right?

One other step, you have to turn on the "In Proc" asp.net session state in the IIS 7.0 Manager for each web application.

Chris

Follow me on twitter!