Sharepoint 2010 on Windows 2012R2 and claims based authentication

Hello,

We have installed a sharepoint 2010 SP2 CU dec 2014 on a Windows 2012R2 server.
The installation went without problems.
However, we want to use claims based authentication on a certain web app pool.
Therefore some configuration on IIS is required.

The first issue we ran into, is the web application pool uses ASP.NET 2.0, which is the default settings.
However, using this ASP.NET Version 2.0 the feature "Providers" and ".net users" are invisible.

When changing the .net version to 4.0, the features comes back again.
I can fill in the connection strings without problem.

The providers feature however, gives me the following errors:

There is a duplicate .... sections defined.

When googling on this error, it seems that on .net 4.0 these sections are already globbally defined in the machine.config, So i removed these entries in the machine.config

These are the lines that are "double"

<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" />
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />                                               

So after removing these lines, i can get into Providers feature in IIS.

but, when i click on "Add..." i get the following error:

---------------------------
Add Provider
---------------------------
There was an error while performing this operation.



Details:

This method cannot be called during the application's pre-start initialization phase.
---------------------------
OK   
---------------------------

I spent to much time already to solve this issue and i hope  that someone can give me some advice to address this issue.


  • Edited by 2Dman Friday, March 27, 2015 9:41 AM
March 26th, 2015 1:08pm

Did you backup your machine.config? You're going to want to restore it to a pre-changed state, as changing the machine.config isn't required to get this working. You may also want to run:

$wa = Get-SPWebApplication http://webAppUrl
$wa.ProvisionGlobally()

What this will do is 'reset' the web.config as well as IIS App Pool to their defaults, which means removing anything you've manually added for that Web Application.

Can you also post your STS web.config?

Free Windows Admin Tool Kit Click here and download it now
March 28th, 2015 12:39pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics