Category Archives: Windows Server

Install SharePoint 2013 Public Beta on Windows Server 2012 RC – Part VI – Configuring SharePoint 2013 on Windows Server 2012 RC

Last week we finished the installation of SharePoint 2013. For us to test the new version off SharePoint we still have to do some configuration.

The first thing we will do is creating a couple of service accounts that we will use to create Service Application and Web Applications.

Open Active Directory Users or Computer by doing the following:

  1. Go to the Start Menu by using the Windows button or by going to the low left corner with your mouse.
  2. With the Start Menu open select “Active Directory Users and Computers”.

Open the Users OU and use your other mouse button to add a new user. When you have the “New Object – User” window open create the following user.

First name Last name User Logon name User logon name
SharePoint Application Pool svc_spapppool svc_spapppool
SharePoint Services svc_spservices svc_spservices
SharePoint Search svc_spsearch svc_spsearch
SharePoint Content Access spcontentaccess spcontentaccess

 

Make sure you select the options, for all of the accounts:

  • User cannot change password.
  • Password never expires.

For us to create a new site we will also have to register a url within the DNS (You can also do this within your host file).  To alter the DNS configuration do the following:

  1. Go to the Start Menu by using the Windows button or by going to the low left corner with your mouse.
  2. With the Start Menu open select “DNS”.

Select the forward lookup zone of your domain and add a new A Host record. For this machine I chose the following domain: sp2013.dev.local.

SharePoint-2013---DNS-Entry

For us to access this URL this machine we will also have to disable the LoopBackCheck, this is because Windows Server 2012 also had the same security enabled as Windows Server 2008 R2. To disable the LoopBackCheck check this blog post:

http://msftplayground.com/2009/04/access-denied-while-crawling-sites/

Now that we have done these configurations we can start with the last configuration steps off SharePoint. First off we will create some managed accounts:

Create Managed Accounts

To create managed accounts follow the following steps:

  1. Open “Central Administration”
  2. Go to the Security section.
  3. Select “Configure Managed Accounts”  under “General Security”.
  4. Then add managed accounts for all the accounts we created in the AD besides the spcontentaccess account.

SharePoint-2013---Managed-Accounts

With the managed accounts in place it is time to create our web application.

Create Web Application

To create a new web application follow these steps:

  1. With “Central Administration” opened go to the “Application Management” section.
  2. Select “Manage web applications”.
  3. On the toolbar select “New”  within the toolbar.
  4. Create the web application with the following information.
Setting Value
IIS Web Site Create a new IIS web site.
Name: SharePont – SP2013
Port:80
Host Header: sp2013.dev.local
Path: Keep the default value
Security Configuration Allow Anonymous:false
Use Secure Sockets Layer(SSL): false
Claims Authentication Type Integrated Windows Authentication: NTLM
Sign In Page Url Default Sign In Page
Public Url URL: http://sp2013.dev.local:80
Zone: Default
Application Pool Create new application pool:
Name: SharePoint Web Application
Configurable: DEV\sp_spapppool
Database Name and Authentication Database Server: SQL2012_SP
Database Name: WSS_Content_2013
Windows Authentication
Service Application Connections Default

 

Press ‘Ok’ to create the web application.

SharePoint-2013---New-Web-Applciation---Waiting

When the web application is created we will define some managed paths to create site collections.

Define Managed Paths

  1. With “Central Administration” opened go to the “Application Management” section.
  2. Select “Manage web applications”.
  3. Select the web application for which you want to define the managed paths.
  4. On the toolbar select “Managed Paths” within the toolbar.
  5. In the Define Managed Paths window add the following Managed Paths:
Path Type
personal Explicit
hub Explicit
content Explicit

 

With the Managed Paths in place it is time to create a few site collections.

Create Site Collections

First off we will create a MySite host site collection. To start creating site collections follow these steps:

  1. With “Central Administration” opened go to the “Application Management” section.
  2. Select “Create Site Collections”
  3. Make the site collection with the following information:
Setting Value
Web Application Make sure the right web application is selected
Title and Description Title: SP2013 MySite
Description: MySite Host
Web Site Address Url: http://sp2013.dev.local/personal
Template Selection Enterprise – My Site Host
Site Collection Administrators Choose the users you want to administrator the site collection. For this machine we will use dev\spadmin

 

Creating a site collection with these settings will create a my site host. We will also create a Team site and a Hub site.

Settings for the Hub site

Setting Value
Web Application Make sure the right web application is selected
Title and Description Title: SP2013 Hub
Description: Hub Host
Web Site Address Url: http://sp2013.dev.local/hub
Template Selection Enterprise – My Site Host
Site Collection Administrators Choose the users you want to administrator the site collection. For this machine we will use dev\spadmin

 

Settings for the Team site

Setting Value
Web Application Make sure the right web application is selected
Title and Description Title: SP2013
Description: Team site
Web Site Address Url: http://sp2013.dev.local/
Template Selection Enterprise – My Site Host
Site Collection Administrators Choose the users you want to administrator the site collection. For this machine we will use dev\spadmin

 

With the site collections in place we can start creating the several Service Applications.

Create User Profile Service  Application

To create a User Profile Service Application follow the following steps:

  1. With “Central Administration” opened go to the “Application Management” section.
  2. Select “Manage Service Applications”.
  3. On the toolbar select “New”  and select “User Profile Service Application”
  4. Create the Application with the following settings.
Setting Value
Name User Profile Service Application
Application Pool Create new application pool:
Application pool name:
SharePoint Service Application Pool
Configurable: DEV\svc_spservices
Synchronization Database Database Server: SQL2012_SP
Database Name: Sync_DB
Profile Database Database Server: SQL2012_SP
Database Name: Profile_DB
Social Tagging Database Database Server: SQL2012_SP
Database Name: Social_DB
Profile Synchronization Instance DEV_BETA
My Site Host Url http://sp2013.dev.local/personal
My Site Managed Paths /content
Site Naming Format User name

 

Create Managed Metadata service Application

The following service application we will be creating is the Managed Metadata Service Application.

Follow these steps:

  1. With “Central Administration” opened go to the “Application Management” section.
  2. Select “Manage Service Applications”.
  3. On the toolbar select “New” and select “Managed Metadata service application”
  4. Create the Application with the following settings.
Setting Value
Name Managed Metadata Service
Database Database Server: SQL2012_SP
Database Name: SharePoint_Managed_Metadata
Application Pool Use existing application pool:
Application pool name:
SharePoint Service Application Pool
Content Type Hub http://sp2013.dev.local/hub
Select, Report Syndication import errors from site collections using this service application.

 

Create App Management Service Application

Next up is a new service application called “App Management Service Application”. This service application will give you the ability to manage the new App solutions that are build into SharePoint 2013.

Follow these steps to create this service application:

  1. With “Central Administration” opened go to the “Application Management” section.
  2. Select “Manage Service Applications”.
  3. On the toolbar select “New” and select “App Management Service”
  4. Create the Application with the following settings.
Setting Value
Name App Management Service Application
Database Database Server: SQL2012_SP
Database Name: App_Managed_DB
Application Pool Use existing application pool:
Application pool name:
SharePoint Service Application Pool
Create App Management Service Application Proxy Select, create App Management Service Application Proxy and add it to the default proxy group.

 

Create Business Data Connectivity Service Application

A service application that was also in SharePoint 2010 is the BDC Application.

Follow these steps to create it:

  1. With “Central Administration” opened go to the “Application Management” section.
  2. Select “Manage Service Applications”.
  3. On the toolbar select “New” and select “Business Data Connectivity Service Application”
  4. Create the Application with the following settings.
Setting Value
Name Business Data Connectivity Service Application
Database Database Server: SQL2012_SP
Database Name: BDC_Service_DB
Application Pool Use existing application pool:
Application pool name:
SharePoint Service Application Pool

 

When I was creating this service application I received multiple errors. Even when I retried to create at went wrong with the same errors. When I checked the application everything looked fine and seem to be working correctly.

Create Machine Translation Service Application

Another new Service Application is the Machine Translation Service Application. This application give you the option to translate all kind off documents. The texts that are in the documents will be translated by the online Bing translation services.

To create this application use the following steps:

  1. With “Central Administration” opened go to the “Application Management” section.
  2. Select “Manage Service Applications”.
  3. On the toolbar select “New” and select “Machine Translation Service Application”
  4. Create the Application with the following settings.
Setting Value
Name Machine Translation Service Application
Application Pool Use existing application pool:
Application pool name:
SharePoint Service Application Pool
Partition mode Don’t select this option.
Add to default proxy list Select this option to add it to the default proxy list.
Database Database Server: SQL2012_SP
Database Name: Machine_Translation_Service_DB

 

Create Search Service Application

The Search Service Application is the next service application we will create. There changed a couple off small things to the search service application but creating is still the same.

Follow these steps:

  1. With “Central Administration” opened go to the “Application Management” section.
  2. Select “Manage Service Applications”.
  3. On the toolbar select “New” and select “Search Service Application”
  4. Create the Application with the following settings.
Setting Value
Name Search Service Application
Search Service Account DEV\svc_spsearch
Application Pool for Search Admin Web Service Create New Application Pool.
Application pool name:
SharePoint – Admin Search Service.
Configurable: DEV\svc_spsearch
Application Pool for Search Query & Site Settings Web Service Create New Application Pool.
Application pool name:
SharePoint – Query and Site Settings Pool.
Configurable: DEV\svc_spsearch

 

Create Secure Store Service

We will also create a Secure Store Service for when we would like to test connections to other systems like CRM.

Follow these steps to create the application:

  1. With “Central Administration” opened go to the “Application Management” section.
  2. Select “Manage Service Applications”.
  3. On the toolbar select “New” and select “Secure Store Service Application”
  4. Create the Application with the following settings.
Setting Value
Name Secure Store Service Application
Database Database Server: SQL2012_SP
Database Name: Secure_Store_Service_DB
Application Pool Use existing application pool:
Application pool name:
SharePoint Service Application Pool
Enable audit Enable the audit log and set the days until purge to 30.

 

Create Work Management Service

The work management service is the last service application we will create trough the UI. This is also one off the new service applications. The work management service application will give users the ability to edit and change there tasks on one single place within the SharePoint farm. This service will take care of changing values on other places and aggregating the tasks. One off the great things it is also possible to synchronize exchange tasks!!!

To create the Work Management Service follow these steps:

  1. With “Central Administration” opened go to the “Application Management” section.
  2. Select “Manage Service Applications”.
  3. On the toolbar select “New” and select “Work management Service Application”
  4. Create the Application with the following settings.
Setting Value
Name Work Management Service Application
Application Pool Use existing application pool:
Application pool name:
SharePoint Service Application Pool
Service Application Proxy Select create proxy for this service application.

 

This were all off the service application we will create trough the UI will will have to create the State Service Application with PowerShell.

Create State Service application with PowerShell

  1. Run the “SharePoint 2013 Management Shell” as Administrator.
  2. Type: “New-SPStateServiceApplication”
  3. Next enter the name for the service application “Name : State Service Application”

With all the Service applications in place we will perform a IISReset make sure that all settings are refreshed.

After the IISReset we can start the service by going to the following screen:

  1. Open “Central Administration”
  2. Select “Application Management”
  3. Then select “Manage services on server”

With the Services screen open start the following services:

  • App Management Service
  • Business Data Connectivity Service
  • Claims to Windows Token Service
  • Machine Translation Service
  • Managed Metadata Web Service
  • Request Management
  • Secure Store Service
  • User Profile Service
  • Work Management Service

When these services are started we will make the farm account (svc_spfarm) local administrator. This is because off the same problem with SharePoint 2010.

To make the svc_spfarm account local administrator do the following:

Open Active Directory Users or Computer by doing the following:

  1. Go to the Start Menu by using the Windows button or by going to the low left corner with your mouse.
  2. With the Start Menu open select “Active Directory Users and Computers”.
  3. With Active Directory Users and Computers open open the domain and select the Builtin OU.
  4. Within the Builtin OU find the administrators group and add the farm account to it.

Perform a reset off your VM to reset the security of the farm account. Then go back the “Manage services on server” and start the “User Profile Synchronization Service”.

When you will start this service you will have to connect it to a Service Application. Connect it to the User Profile Service application we created above.

With all these service applications and web applications in place you have a great environment to start testing SharePoint 2013. If you have any further question just leave a comment and I will get back to you!!

SharePoint-2013---SP2013-Site-Colleciton

Install SharePoint 2013 Public Beta on Windows Server 2012 RC – Part V – Installation of SharePoint 2013 on Windows Server 2012 RC

Now that the prerequisites are done it is time to start the installation of SharePoint 2013. First off we will have to some configuration changes.

The first thing we will do is creating a farm account to run Central Administration and the farm services.

Open Active Directory Users or Computer by doing the following:

  1. Go to the Start Menu by using the Windows button or by going to the low left corner with your mouse.
  2. With the Start Menu open select “Active Directory Users and Computers”.

Open the Users OU and use your other mouse button to add a new user. When you have the “New Object – User” window open create the following user.

First name Last name User Logon name User logon name
SharePoint Farm svc_spfarm svc_spfarm

Make sure you select the options:

  • User cannot change password.
  • Password never expires.

Next up is the configuration of a SQL Alias. We will create a SQL alias to be able to migrate the SQL Databases to another Virtual machine if we want.

  1. Go to the Start Menu by using the Windows button or by going to the low left corner with your mouse.
  2. With the Start Menu open use your other mouse button and select “All apps”.
  3. Open “Command Prompt” and type in cliconfg.
  4. Within SQL Server Client Network Utility go to the Alias tab and click add.
  5. Type in a Alias Name (SQL2012_SP) and fill in the server name of the server that host SQL in our case it will be the local machine.
  6. Also select the following Network library type : TCP/IP.
  7. Select “Ok”  to add the alias and select “Apply” and “Ok” to close the configuration wizard.

SharePoint-2013---Alias-Configuration

With these configuration steps done it is time to mount the image and start the setup of SharePoint 2013.

During the first step of the installation you will have to insert you product key. I received my product key to mail. Fill it in and press “Continue”.

SharePoint-2013---Product-key

Accept the license terms and select “Continue”  again.

SharePoint-2013---License-Terms

The next screen will give you the option to change the file location. For this machine we will leave it to default and start the installation.

SharePoint-2013---File-location   SharePoint-2013---Installation

When the installation is finished the “Run the Configuration Wizard” screen will open. Leave the check box checked and click “Close”.

SharePoint-2013---Run-Configuration-Wizard

The configuration wizard will be opened. On the welcome screen click “Next”.

SharePoint-2013---Configuration-Wizard   SharePoint-2013---Welcome-Warning

When you click next the same warning screen will appear as it did with SharePoint 2010 since this is a new installation we can ignore this message and click “Ok”. The next step gives you the option to connect to an existing farm or to create a new server farm. Since this is a new installation we will select “create a new server farm”.

SharePoint-2013---Configuration-Option

In the next step we will to specify the SharePoint SQL server and the name for the configuration database. We also need to specify the Database access account.

Fill in the following information:

Database server: SQL2012_SP (This is the alias we created)

Database name: SharePoint_Config

Username: dev\svc_spfarm

Password: *********

SharePoint-2013---Database-Settings

On the next step we need to specify the passphrase we want to use when we want to add another server to the farm. Use a a known password that you will remember and click next.

SharePoint-2013---Passphrase

The next step in the wizard will allow you to configure Central Administration. Use a port number u find handy and select NTLM authentication for this demo machine.

SharePoint-2013---Central-Administration  SharePoint-2013---Summary

A summery of the configuration will follow. Check all of the settings and click on “Next” to start the configuration.

SharePoint-2013---Configuration  SharePoint-2013---Configuration-Succesfull

When the configuration is finished the successful window will be shown. Click finish to close the wizard, automatically a explorer window will be opened that opens Central Administration. With a model dialog asking if you want to help improve SharePoint. Select “Yes, I am willing to participate” and click “Ok”.

When the model dialog is closed you will get the option to start the configuration wizard to configure the farm. Select the option “No, I will configure everything myself”.

SharePoint-2013---Configuration-Wizard-Central-Admin

The Central Administration home screen will be opened.

SharePoint-2013---Central-Admin

In the next post we will start the configuration of the different SharePoint 2013 Services.

Install SharePoint 2013 Public Beta on Windows Server 2012 RC – Part IV – Installation of the Prerequisites on Windows Server 2012 RC

With the new version of SharePoint in Public Beta (links). It is time to start with the installation of the prerequisites.

When you do not already have the image of the SharePoint 2013 Public Beta download it. The link for the download can be found in my previous post.

This post will point to the installation of the prerequisites for SharePoint 2013. The prerequisites that we will install is a bit more than the prerequisites that are on the image off the SharePoint 2013 Preview.

Because the machine will be a dev/test machine we will do a lot of research on it so we will also install the following:

First off we will create a new Admin user called SharePoint Administrator. With this user we will perform the SharePoint installation but we will also use this user to login on the Beta machine.

Open Active Directory Users or Computer by doing the following:

  1. Go to the Start Menu by using the Windows button or by going to the low left corner with your mouse.
  2. With the Start Menu open select “Active Directory Users and Computers”.

Open the Users OU and use your other mouse button to add a new user. When you have the “New Object – User” window open create the following user.

First name Last name User Logon name User logon name
SharePoint Administrator spadmin spadmin

 

Make sure you select the options:

  • User cannot change password.
  • Password never expires.

With this user in place search for the domain administrators group and add the current user to that group.

Now logoff the current user and login in with the SharePoint Administrator account to install the prerequisites.

Download ILSPY from the ILSPY website and place the zip file on your virtual machine. Extract the file and place it in a easy location. For easy use I have placed a shortcut on my desktop.

ILSPY

Next up is the Microsoft Office Professional Plus 2013 Preview. If you have downloaded the image add it to the virtual machine. If you do not have the image just skip this step.

The first step of the Installation is the acceptance off the license terms. Accept the terms and click continue.

office-2013-license-terms

The setup will continue with a step that is know when you have ever installed Office for know we will select “Customize”  because I want to check what it will be installing.

office-2013---installtion-type

In the customize installation window you can see all the component the install will install on you machine. Notice that Microsoft Lync is a new one. Looks like it is now integrated in the Office Suite Glimlach.

Make sure you do not install the Visio Viewer, this because we will also install the complete version. Select “Install Now”  to start the installation.

office-2013-installation

When the installation is done start the installation off the full version of Visio. The Visio installation will also start with the license term screen. Accept the license again and click “Continue” to Continue. This time we will just click “Install Now” to Install Visio.

visio-2013-installatio

Next up is the preview release of SharePoint designer double click the exe file to start the installation. This will also start with the “License Terms” screen. Accept the license and click “Continue”. On this installation we will also use the “Install Now” option. With the installation ready it is time to place the documentation on the machine.

SharePoint-Designer-2013-Installation-Ready

Place the TechNet documentation file (CHM) on your desktop and start the Installation of the Client Components SDK. Don’t forget to “Unblock” the chm file on your desktop or else you will not be able to read the file.

unblock-chm

With that all in place we will install the prerequisites of SharePoint. Mount the image on the server to start the installation. The installation will have a splash screen like the one in SharePoint 2010.

sharepoint-2013-splash

Select “Install Software Prerequisites” to start the installation of the Prerequisites.

This will start another installer that will install and configure the following components:

  • Microsoft .NET Framework 4.5
  • Windows Management Framework 3.0 (CTP2)
  • Application Server Role, Web Server (IIS) Role
  • Microsoft SQL Server 2008 R2 SP1 Native Client
  • Microsoft Sync Framework Runtime v1.0 SP1 (x64)
  • Windows Server AppFabric
  • Microsoft Identity Extensions
  • Microsoft Information Protection and Control Client
  • Microsoft WCF Data Services 5.0
  • Cumulative Update Package 1 for Microsoft AppFabric 1.1 for Windows Server (KB2671763)

prerequisites

Click next to start the installation off these component. I myself are quite happy to see that SharePoint 2013 requires .Net Framework 4.5 Glimlach

SharePoint-2013---Prerequisites---License-Terms

Accept the license terms and click next to continue. This will start the installation of the prerequisites.

SharePoint-2013---Prerequisites---Install

With the installation off the prerequisites done it is time to install SharePoint 2013. We will discuss the installation off SharePoint 2013 in the following post.

Holiday & SharePoint 2013 Public Beta

Due to my holiday in Argelès-sur-Mer in the South of France on which I enjoyed  a week with no Computer and no Internet. Believe it or not !!!!

During that week Microsoft had the nerve to release the SharePoint 2013 Public Beta. I can’t wait to get back in the office on Monday and start with the installation of the Public Beta to finish up the series of blog posts I have started on the Installation of SharePoint 2013 Public Beta on the Windows Server 2012 RC (The first one can be found here).

If you want to download the Public Beta follow these links:

Download SharePoint 2013 Foundation:
http://www.microsoft.com/en-us/download/details.aspx?id=30345

SharePoint Server 2013:
http://technet.microsoft.com/en-US/evalcenter/hh973397.aspx?wt.mc_id=TEC_121_1_33

Other SharePoint 2013 content including:

  • Microsoft Office Web Apps Server Preview
  • SharePoint Designer 2013
  • Duet™ Enterprise for Microsoft SharePoint 2013 and SAP
  • Language packs
  • Architecture documents
  • Lab guides

http://www.microsoft.com/en-us/download/search.aspx?q=SharePoint%202013&p=1&r=40&t=32

Install SharePoint 2013 Public Beta on Windows Server 2012 RC – Part III – Installation of SQL Server 2012 on Windows Server 2012 RC

With the new version of SharePoint almost in Public Beta (I have hopes it will be this month) it is time to show how you can install it on the Release Candidate of Windows Server 2012.

Since the new version of SharePoint isn’t there yet this series of blog post will continue with the Installation of SQL Server 2012 on Windows Serve 2012 RC. After this post the following post will follow:

  • Part IV – Installation of the Prerequisites on Windows Server 2012 RC
  • Part V – Installation of SharePoint 2013 on Windows Server 2012 RC
  • Part VI – Configuring SharePoint 2013 on Windows Server 2012 RC

So let us begin with booting up the Virtual Machine we got this far and add the ISO of SQL Server 2012 to the machine.

When continuing from the previous blog post the “Server Manager” will be opened. Close the Server Manager and open “Active Directory Users and Computers” to create the service accounts we need for the installation of SQL Server:

To open Active Directory Users or Computer do the following:

  1. Go to the Start Menu by using the Windows button or by going to the low left corner with your mouse.
  2. With the Start Menu open select “Active Directory Users and Computers”.

Open the Users OU and use your other mouse button to add users:

new-users

When you have the “New Object – User” window open create the following users:

First name Last name User Logon name User logon name
SQL DB Engine svc_sqldbengine svc_sqldbengine
SQL Reporting svc_sqlreporting svc_sqlreporting
SQL Agent svc_sqlagent svc_sqlagent

 

Make sure you select the options:

  • User cannot change password.
  • Password never expires.

This will make sure the password of the accounts will not be reset or be disabled.

new-user

When the accounts are created it is time to start the installation of SQL server. Run the Setup wizard that’s on the SQL Server 2012 CD / DVD.

When you run the setup the SQL Server Installation Center will open. Press the Installation option on the left and then select “New SQL Server stand-alone installation or add feature to an existing installation”.

SQL-Installation-Center        SQL-Installation-Center---Installation

The installation setup will start with running a few startup rules. When you have passed all of the rules click Ok to continue with the installation.

Setup-Support-Rule

A new window will open and ask for your product key. If your product key hasn’t been filled in yet fill it in and continue by clicking next. On the next step accept the license terms and click next again.

Pre-Setup-Wizard-step-Product-key

The wizard will now start installing the required files for the installation and will start up another wizard. This wizard will automatically check the conditions of the server.

Setup-Support-Rules

Most of the the the wizard will give two warnings:

  1. Computer domain controller: You can ignore this warning because we will use this pc as a development pc. For production servers never install SQL on a domain controller this is for security reasons.
  2. Windows Firewall: This warning states that the Firewall is blocking SQL server. Because the machine will be a one machine farm we can ignore this warning. When you are creating a farm with multiple pc’s you will have to open the SQL server port. By default this is: 1433.

Because we can ignore the warnings we will click next and proceed to the next step. The next step will give us the option to select the installation type. You will have three options:

  1. SQL Server Feature Installation: This option will give you the possibility to install specific features of SQL Server.
  2. SQL Server PowerPivot for SharePoint: This option will give you the possibility to install PowerPivot for SharePoint.
  3. All Features with Defaults.

Setup-Type

We will select the first option: “SQL Server Feature Installation” because we want to install SQL server and select the features we want. We do not want to install everything because this can downgrade the performance of our virtual machine.

In the next step we can select the features we want to install. We will select the following features:

  • Database Engine Services.
    • SQL Server Replication
    • Full-Text and Semantic Extractions for Search
    • Data Quality Services
  • Management Tools – Basic
    • Management Tools – Complete

At the moment we will not install “Reporting Services Add-in for SharePoint Products” because we do not have a instance running of SharePoint server. Click next to continue with the installation.

SQL-Server-Feature-Selection

The wizard will perform a couple of checks based on the features you have selected. If you pass all of the Rules click next to continue to the Instance Configuration. On the instance configuration screen you have the option to change the name of the SQL Server Instance. We will keep the default settings and click “next”  to continue.

Instance-Configuration

The Disk Space Requirements Step will show you if you have enough hard drive space to install SQL server if you pass this step click next to continue. This will bring us to the “Server Configuration” step. In this step we will have to fill in the accounts and passwords for the services.

Disk-Space-Requirements   Server-Configuration

Fill in the accounts that we have created in the first step:

Service Account Name
SQL Server Agent svc_sqlagent
SQL Server Database Engine svc_sqldbengine

 

When you proceed you will have the option to select the authentication mode off SQL Server and were the data files are saved. For now we will leave it to the default settings and we will only fill in the SQL Server Administrators. I always fill in the BUILTIN\Administrators group but because were are installing it on a domain controller it cannot find this group that’s why we will just add the current user.

Database-Engine-Configuration

Now that we have configured these last steps we are almost finished with the installation. The next step can be ignored and you can simple click next. The wizard will again check a few rules, when you pass these rules click next to go to the confirmation screen.

Error-Reporting   Installation-Configuration-Rules

In the confirmation window check every setting and click “Install”  to start the installation.

SQL-Server-2012-Installation  Installation-Complete

When the installation is complete you can close the wizard. You can then op SQL Server management studio by following these steps:

  1. Go to the Start Menu by using the Windows button or by going to the low left corner with your mouse.
  2. With the Start Menu open select “SQL Server Management Studio”.

SQL-Server-Management-Studio

With SQL Server installed we can start the Installation of SharePoint 2013. We will start this fourth part of the blog series when the SharePoint 2013 Public Beta is released.

Do not start Server Manager automatically at Logon – Windows Server 2012

After the installation of the new Windows Server version (Windows Server 2012 RC) it was annoying for me that the “Server Manager” started every time when I logged in to the machine.

In Windows Server 2008 R2 you could disable the auto start option from the home screen.Server-Manager---Manage-Menu I started searching for the option but couldn’t find it. After half an hour  I found the solution:

  1. Open the “Server Manager”.
  2. Select “Manage” on the top bar.
  3. Select “Server Manager Properties” from the drop down menu.
  4. Select the option “Do not start Server Manager automatically at logon”.

Server-Manager---Disable-automatically-logon

Install SharePoint 2013 Public Beta on Windows Server 2012 RC – Part II – Installation of Active Directory and DNS Services on Windows Server 2012 RC

6With the new version of SharePoint almost in Public Beta (I have hopes it will be this month) it is time to show how you can install it on the new Release Candidate of Windows Server 2012.

Since the new version of SharePoint isn’t there yet this series of blog post will continue with Installation of Active Directory and DNS Services on Windows Serve 2012 RC. After this post the following post will follow:

  • Part III – Installation of SQL Server 2012 on Windows Server 2012 RC
  • Part IV – Installation of the Prerequisites on Windows Server 2012 RC
  • Part V – Installation of SharePoint 2013 on Windows Server 2012 RC
  • Part VI – Configuring SharePoint 2013 on Windows Server 2012 RC

So let us begin with the activation of the Active Directory role on Windows Server 2012 RC. So start up your Virtual Machine and log in to Windows Server 2012.

When continuing from the previous blog post the “Server Manager” will be opened. If it does not open it.

ServerManagerStart

Since we did not rename the machine in the previous post we will start by renaming the server. Select “Local Server”  within the server manager and click on your existing “Computer Name”. This will open  an new window.

Server-Manager-Change-Hostname

In the new window click on the “Change”  button to change the computer name. Another window will open that gives you the option to fill in your computer name. For my virtual machine I choose “DEV_BETA”.

Server-Manager-Change-Hostname-2

With the new name filled in click on “OK” to close the window. You will then get a warning message that you must restart your computer  to apply the changes. Click “OK”  again.

Restart-after-Hostname-change

When you virtual machine is restarted open the server manager and select “Local Server”. We will now add a static IP address to the server for the DNS. Click on “IPv4 address assigned” next to “ Ethernet” to open the “Network Connections” screen. On the network connections screen select the internal network card with your second mouse button and open the properties.

For this demo environment we will disable the IPv6 option and alter the IP address of the IPv4 option.

Set-Local-IP-Adress

It does not matter to which address you change your local IP address. Close all off the windows and return to the Server Manager.

On the right top side of the “Server Manager”  you will see an option called “Manage”  click on this option and then select “Add Roles and Features”.

Server-Manager-Add-Role

The “Add Roles and Features Wizard” will start up with the Splash screen on which you can select “Next”.

Add-Role-Splash-Screen

In the next step you will be offered the choice to select the type off installation you want to perform. This different types give you the option to install on a running machine, virtual machine or on a offline virtual hard disk. Since we will be installing it on the local machine select the option “Role-based or feature-based installation” and click “Next”.

Add-Role-Installation-Type

Another new step in the wizard is the Server Selection step. This step offers you the option to select a Running machine of Virtual Hard disk to install on. We will just select our current server from the server pool and continue with the wizard.

Add-Role-Server-Selection

The next step finally offers us the possibility to select the roles we want to install. Select the “Active Directory Domain Services” role and the “DNS Server”  role. They will both give us a warning informing that they need to install required features.

Add-Role-Active-Directory-Selected   Add-Role-DNS-Selected

On both the warning messages click “Add Features” and continue to the “Features” step.

At the moment we do not have to have any features so we will just click “Next”.

Add-Role-Features

After the features step we will get two steps informing us about the Active Directory Domain Services and the DNS Server. On both steps click “Next” to proceed to the installation.

Add-Role-Ad-Services  Add-Role-DNS-Services

On the “Confirmation” screen click “Install” to start the installation. Wait till installation is finished to close the “Add Roles and Features Wizard”.

Add-Role-Installation-Finished

Now that the roles are installed we still need to configure active directory. With the wizard closed you will be back at the “Server Manager”. The Server Manager now haves a few more menu options on the left side of the screen. Select “AD DS” to start with the configuration of AD.

Server-Manager-AD-RS

At the top of the screen you will see a yellow status bar stating that you have to configure Active Directory. At the end of the status bar click more to open the details.

ADRS-Promoted-Domain

The message that you will find states that you will have to perform the post-deployment configuration. You can start this configuration by selecting the action on the same row called: “Promote this server to a domain”.

With this action clicked the “Active Directory Domain Services Configuration Wizard” will start in which we will configure the domain.

AD-RS-add-Forest

The first step offers the option to join a existing forest or to create a new forest. Since this is the first server we will have to create a new forest and insert a root domain name for our domain. Lets call it dev.local.

Domain-Controller-Options

In the next step we will have to choose a domain functional level and forest function level. We will set this option to Windows Server 2012 Release Candidate. We set this to the new version because it will give us the newest advanced features within the domain.

Fill in the password you would like to use for the Directory Restore Mode to proceed to the next step. This step gives the option to set up DNS delegation. Since we will not use this option leave it to default and click “Next”.

AD-RS-DNS-Settings

Depending on the root domain name you chose three steps back the wizard will try to generate a NetBIOS name. Check if the name is correct. In my installation it generated the NetBIOS name “DEV” which is correct for me. If the name isn’t correct, you can change it.

AD-RS-NetBios

Next up is setting the location where Active Directory will save his files. It will save files for:

  • The Active Directory Database
  • The Active Directory Log Files
  • The Active Directory SYSVOL (The SYSVOL folder is a public folder that will contain the public system files for the domain).

For now we can leave these locations to the default and continue to the review step.

AD-RS-File-Settings

On the review step check the filled in information. If everything is correct click “Next” to start the configuration of your Domain services.

AD-RS-Review

Before the configuration of the domain services starts it will run a prerequisites step. Check if there aren’t any significant warnings / errors and if there are not any continue by clicking “Install”.

AD-RS-Warning-and-Errors

After the installation the server will restart and you will have to login to the Domain. You can do this by using the same administrator password as before. But you will now be a Domain Administrator.

Login-to-Domain

To alter the Active Directory Users or Computer do the following:

  1. Go to the Start Menu by using the Windows button or by going to the low left corner with your mouse.
  2. With the Start Menu open select “Active Directory Users and Computers”.

or

  1. Open the Server Manager
  2. Select “Tools” on the Tap bar.
  3. Select “Active Directory Users and Computers” from the “Tools” menu.

Active-Directory-User-and-Computer---Windows-Server-2012

To alter the DNS configuration do the following:

  1. Go to the Start Menu by using the Windows button or by going to the low left corner with your mouse.
  2. With the Start Menu open select “DNS”.

or

  1. Open the Server Manager
  2. Select “Tools” on the Tap bar.
  3. Select “DNS” from the “Tools” menu.

DNS---Windows-Server-2012

This was the second post in a series of 6 posts. In the next post I will show you how to install SQL Server 2012 on Windows Server 2012 RC.

Install SharePoint 2013 Public Beta on Windows Server 2012 RC – Part I – Installation of Windows Server 2012 RC

With the new version of SharePoint almost in Public Beta (I have hopes it will be this month) it is time to show you how you can install it on the new Release Candidate of Windows Server 2012.

Since the new version of SharePoint isn’t there yet this series of blog post will begin with installing Windows Server 2012 RC on a Virtual Machine. After this post the following post will follow:

  • Part II – Installation of Active Directory and DNS Services on Windows Server 2012 RC
  • Part III – Installation of SQL Server 2012 on Windows Server 2012 RC
  • Part IV – Installation of the Prerequisites on Windows Server 2012 RC
  • Part V – Installation of SharePoint 2013 on Windows Server 2012 RC
  • Part VI – Configuring SharePoint 2013 on Windows Server 2012 RC

So let us begin with the installation of Windows Server 2012 RC. First off make sure you have a ISO available of Windows Server 2012 RC. If you don not have the image already download it from the Microsoft site:

http://www.microsoft.com/en-us/server-cloud/windows-server/2012-default.aspx

When you have downloaded the image you can create a new virtual machine and assign a appropriate amount of memory. I have created my VM with 6 GB of memory.

VM-Settings

Attach the image file to the virtual machine and then boot it. It will automatically boot the installation wizard of Windows Server 2012 with the language selection screen.

language-selection-screen

With the right language selected click ‘Next’  to proceed to the next step. The next step is easiest step of the installation. You only have to press the button “Install now”.

Install-now-step

When “Install now” is pressed the installation medium will load the actual setup files. In the mean time it will show you a dark blue screen with the waiting mouse cursor and the text “Setup is Starting”.

Setup-is-Starting

When all the files are loaded it is time to begin the actual setup of Windows. Basically the complete setup really look like the installation of Windows Server 2008 R2 so I think you can guess what is coming next.

Operating-System-Selection

Yep…. It is the Operating System selection screen. The only version available at the moment is the Windows Server 2012 Release Candidate Datacenter edition. You still have to take a good look because the installation disc also has the Server Core Installation. Choose the “ Server with a GUI” option and click next. Accept the license and again click next to go to the installation type screen.

Installation-Type

Like the installation of Windows 7 and Windows Server 2008 R2 you have the option to upgrade your current Operation System. Since this is a complete new installation we choose for “Custom: Install Windows Only (Advanced)”.

In the next screen you will be asked to select the disk you would like to use for your installation. Select the right disk and click on “Next” .

Disk-Selection

After you selected the disk Windows will start installing the files to the specified disk.

Installation

When the installation is done the server will reboot and starts preparing Windows. Just like the old version you then will be asked to give in your Administrator password.

Administrator-Password

When you click the “Finish” the setup will finalize. After the finalization you will see the new ctrl+alt+delete screen.

ctrl-alt-delete-screen

Press ctrl+alt+delete and login to the server the desktop will be loaded and you are ready to start installing new windows component with the new Server Manager.

Windows-Server-Desktop

Like described at the top of the post this is the first post in a series of 6 posts. In the next post I will show you how to install the Active Directory component and the DNS component on Windows Server 2012 RC.

System.ServiceModel.FaultException: The server was unable to process the request due to an internal error.

For one of our clients we are working with a claims based web application. This web application has a custom membership provider that is registered at the web application, central administration and security token service level.

When we navigate to the site everything works perfectly but when we try to login with valid credentials we would receive an error like below:

Server Error in ‘/’ Application.



Runtime Error Description: An application error occurred on the server. The current custom error

The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ServiceModel.FaultException: The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:

[FaultException: The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.]
   Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.ReadResponse(Message response) +1161205
   Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst, RequestSecurityTokenResponse& rstr) +73
   Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst) +36
   Microsoft.SharePoint.SPSecurityContext.SecurityTokenForContext(Uri context, Boolean bearerToken, SecurityToken onBehalfOf, SecurityToken actAs, SecurityToken delegateTo) +26405809
   Microsoft.SharePoint.SPSecurityContext.SecurityTokenForFormsAuthentication(Uri context, String membershipProviderName, String roleProviderName, String username, String password) +26406316
   Microsoft.SharePoint.IdentityModel.Pages.FormsSignInPage.GetSecurityToken(Login formsSignInControl) +188
   Microsoft.SharePoint.IdentityModel.Pages.FormsSignInPage.AuthenticateEventHandler(Object sender, AuthenticateEventArgs formAuthenticateEvent) +123
   System.Web.UI.WebControls.Login.AttemptLogin() +152
   System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +124
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981


In our situation this error occurs within in the “Security Token Service Application”. The problem with this error message is that it isn’t the exact message of what is going wrong. To receive that error message that is occurring do the following:

  1. Open IIS and navigate to “SharePoint Web Services” under “Sites”. Click the node open and select “SecurityTokenServiceApplication” use your other mouse button to open the context menu and select “Explore”.

    image

  2. Windows explorer will open a new window. In this window you will see a web.config file. Open this file within a text editor and look for the following section:
<behaviors>
  <serviceBehaviors>
    <behavior name="SecurityTokenServiceBehavior">
      <!-- The serviceMetadata behavior allows one to enable metadata (endpoints, bindings, services) publishing.
           This configuration enables publishing of such data over HTTP GET.
           This does not include metadata about the STS itself such as Claim Types, Keys and other elements to establish a trust.
      -->
      <serviceMetadata httpGetEnabled="true" />
      <!-- Default WCF throttling limits are too low -->
      <serviceThrottling maxConcurrentCalls="65536" maxConcurrentSessions="65536" maxConcurrentInstances="65536" />         
    </behavior>
  </serviceBehaviors>
</behaviors>

In this section we will place a extra debug tag to include the errors that are occurring. The tag looks like this:

<serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="true" />

This tag needs to be placed in the behavior tag. After you place the tag in the section it will look like this:

<behaviors>
  <serviceBehaviors>
    <behavior name="SecurityTokenServiceBehavior">
      <!-- The serviceMetadata behavior allows one to enable metadata (endpoints, bindings, services) publishing.
           This configuration enables publishing of such data over HTTP GET.
           This does not include metadata about the STS itself such as Claim Types, Keys and other elements to establish a trust.
      -->
      <serviceMetadata httpGetEnabled="true" />
      <!-- Default WCF throttling limits are too low -->
      <serviceThrottling maxConcurrentCalls="65536" maxConcurrentSessions="65536" maxConcurrentInstances="65536" />
      <serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="true" />
    </behavior>
  </serviceBehaviors>
</behaviors>

After changing the “web.config” we received the correct message and we saw that we mistyped the role provider name.

Server Error in ‘/’ Application.


Cannot get Role Manager with name Empty. The role manager for this process was not properly configured. You must configure the role manager in the .config file for every SharePoint process.

Visual Studio cannot debug managed applications because a kernel debugger is enabled on the system.

I developed some awesome features for my SharePoint environment and to my Surprise they weren’t working that well.

So I thought lets attach it to the debugger and take a look what is going wrong. When I attached the debugger I got the following error message:

“Visual Studio cannot debug managed applications because a kernel debugger is enabled on the system.”

After a couple of hours investigating the problem I found a strange behavior on the start up of my development machine it was starting up in some kind of debug mode. To check if you machine is running in debug mode do the following:

  1. Start – Run – msconfig
  2. Select the boot tab and click on advanced options.
  3. If the debug check box is marked it is running in a debug mode.

image

Unmark the checkbox and you will be able to debug your code.