Error Instantiating DefaultClient [RESOLVED]

Jan 17, 2012 at 5:17 PM
Edited Jan 17, 2012 at 5:40 PM

This is my first attempt at accessing FIM 2010 via Web Services. My FIM Environment is setup and working correctly.

Whenever I try to instantiate DefaultClient object, I get an error. My FIM install has not been customized (as far as Web Services or the FIM config file goes).

The following error is generated at runtime:

Could not find default endpoint element that references contract 'Resource' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.

Would anyone happen to have some insight into this error?

_____________________________________________________

 

DefaultClient client = new DefaultClient();

 

Edit: Let me add that I am able to instantiate other methods of the FIM 2010 Client, though I did have to do a little bit of leg work to get it functioning. Ex:

 

ResourceFactoryClient resFactory = new ResourceFactoryClient();
resFactory.ClientCredentials.Windows.ClientCredential = credential;
resFactory.Open();

transferFactoryClient = new WsTransferFactoryClient(resFactory.Endpoint.Binding, resFactory.Endpoint.Address);
transferFactoryClient.ClientCredentials.Windows.ClientCredential = credential;

enumerationClient = new WsEnumerationClient(resFactory.Endpoint.Binding, resFactory.Endpoint.Address);
enumerationClient.ClientCredentials.Windows.ClientCredential = credential;

transferClient = new WsTransferClient(resFactory.Endpoint.Binding, resFactory.Endpoint.Address);
transferClient.ClientCredentials.Windows.ClientCredential = credential;

alternateClient = new AlternateClient(resFactory.Endpoint.Binding, resFactory.Endpoint.Address);
alternateClient.ClientCredentials.Windows.ClientCredential = credential;

MetadataExchangeClient imexClient = new MetadataExchangeClient();
imexClient.ClientCredentials.Windows.ClientCredential = credential;
imexClient.Open();

mexClient = new MexClient(imexClient.Endpoint.Binding, imexClient.Endpoint.Address);
mexClient.ClientCredentials.Windows.ClientCredential = credential;
schema = mexClient.Get();
resourceFactory = new RmResourceFactory(schema);
requestFactory = new RmRequestFactory(schema);

 

 

Thanks in advance,

Ethan

Jan 17, 2012 at 7:49 PM

Hi,

I've published a post about enabling MPR with C# using FIM Web Service.

It could be a good start: http://blogs.microsoft.co.il/blogs/patrick/archive/2011/11/17/fim-2010-web-service-how-to-enable-and-mpr-part-1.aspx

Patrick.

 

Coordinator
Jan 18, 2012 at 7:54 AM

Hi Ethan,

This is a configuration error. What's in your App.config or Web.config file? The important bits should be the binding / endpoint elements.

Cheers,
Paolo

 

Jan 18, 2012 at 1:13 PM

I suspected that might be the case but, as this is my first FIM Install, I have no way to confirm those suspicions, especially since every other part of FIM is working as designed.


My App.Config File:

<?xml version="1.0" encoding="utf-8"?><configuration>  <configSections>    <section name="resourceManagementClient" type="Microsoft.ResourceManagement.WebServices.Client.ResourceManagementClientSection, Microsoft.ResourceManagement" />    <section name="resourceManagementService" type="Microsoft.ResourceManagement.WebServices.ResourceManagementServiceSection, Microsoft.ResourceManagement.Service" />  </configSections>  <appSettings>    <add key="mailServer" value="https://ExchangeServer/ews/exchange.asmx" />    <add key="isExchange" value="1" />    <add key="sendAsAddress" value="FIMService@domain.local" />    <add key="synchronizationServerName" value="ServerName" />  </appSettings>  <system.serviceModel>    <services>      <service name="Microsoft.ResourceManagement.WebServices.ResourceManagementService">        <host>          <baseAddresses>            <add baseAddress="http://localhost:5725" />          </baseAddresses>        </host>      </service>      <service name="Microsoft.ResourceManagement.WebServices.SecurityTokenService">        <host>          <baseAddresses>            <add baseAddress="http://localhost:5726" />          </baseAddresses>        </host>      </service>    </services>  </system.serviceModel>  <resourceManagementClient resourceManagementServiceBaseAddress="ServerName" />  <resourceManagementService externalHostName="ServerName"  workflowManagerEndpointBaseAddress="ResourceManagementService/WorkflowManager"  dataReadTimeoutInSeconds="58"  dataWriteTimeoutInSeconds="58"  defaultKeySize="256"  defaultTokenLifetimeInMinutes="10"  hostActivationIntervalInMilliseconds="120000"  intranetRegistrationEndpointAddress="ResourceManagementService/SecurityTokenService/Registration"  metadataEndpointAddress="ResourceManagementService/MEX"  passwordResetEndpointAddress="ResourceManagementService/Alternate"  resourceEndpointAddress="ResourceManagementService/Resource"  resourceMailEndpointAddress="ResourceManagementService/ResourceMail"  resourceFactoryEndpointAddress="ResourceManagementService/ResourceFactory"  securityTokenServiceMetadataEndpointAddress="SecurityTokenService/MEX"  policyManagerIntervalInMilliseconds="5000"  receiveTimeoutInSeconds="300"  maxReceivedMessageSizeInBytes="10485760"  mailBatchSize="100"  servicePrincipalName="FIMService@domain.local"  synchronizationExportThrottle="Unlimited" />  <system.diagnostics>    <sources>      <!--
The trace source Microsoft.ResourceManagement has low-level exceptions from the code and is the best way to diagnose complex issues.
Change the switchValue from Error to Verbose to see more information.-->      <source name="Microsoft.ResourceManagement" switchValue="Error">        <listeners>          <add type="System.Diagnostics.DefaultTraceListener" name="Default">            <filter type="" />          </add>          <add name="ExceptionEventLogListener" initializeData="Microsoft.ResourceManagement" type="System.Diagnostics.EventLogTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, Callstack">            <filter type="" />          </add>          <!--Step 1: Uncomment out this line to write diagnostic information to a svclog file.-->          <!--     <add name="DiagnosticListener">      <filter type="" />     </add>-->        </listeners>      </source>    </sources>    <sharedListeners>      <!--Step 2: Uncomment out this listener to write diagnostic information to a svclog file.-->      <!--   <add initializeData="fimDiagnostics.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"    name="DiagnosticListener" traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack">    <filter type="" />   </add>-->    </sharedListeners>    <!--Step 3: Uncomment out this line to have svclog written out synchronously without buffering.     This would help not loosing traces immediately preceding service shutdown     and also will help ensuring the output is always well-formed at the possible expense.     of performance.-->    <!--<trace autoflush="true"/>-->  </system.diagnostics>  <runtime>    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">      <dependentAssembly>        <assemblyIdentity name="FunctionLibrary" publicKeyToken="31bf3856ad364e35" culture="neutral" />        <bindingRedirect oldVersion="4.0.0.0-4.65535.65535.65535" newVersion="4.0.3576.2" />      </dependentAssembly>      <dependentAssembly>        <assemblyIdentity name="Microsoft.IdentityManagement.Activities" publicKeyToken="31bf3856ad364e35" culture="neutral" />        <bindingRedirect oldVersion="4.0.0.0-4.65535.65535.65535" newVersion="4.0.3576.2" />      </dependentAssembly>      <dependentAssembly>        <assemblyIdentity name="Microsoft.ResourceManagement.Automation" publicKeyToken="31bf3856ad364e35" culture="neutral" />        <bindingRedirect oldVersion="4.0.0.0-4.65535.65535.65535" newVersion="4.0.3576.2" />      </dependentAssembly>      <dependentAssembly>        <assemblyIdentity name="Microsoft.ResourceManagement" publicKeyToken="31bf3856ad364e35" culture="neutral" />        <bindingRedirect oldVersion="4.0.0.0-4.65535.65535.65535" newVersion="4.0.3576.2" />      </dependentAssembly>      <dependentAssembly>        <assemblyIdentity name="Microsoft.IdentityManagement.WFExtensionInterfaces" publicKeyToken="31bf3856ad364e35" culture="neutral" />        <bindingRedirect oldVersion="4.0.0.0-4.65535.65535.65535" newVersion="4.0.3576.2" />      </dependentAssembly>    </assemblyBinding>  </runtime></configuration>

My Web.Config File:


<?xml version="1.0" encoding="UTF-8" standalone="yes"?><configuration>  <configSections>    <sectionGroup name="SharePoint">      <section name="SafeControls" type="Microsoft.SharePoint.ApplicationRuntime.SafeControlsConfigurationHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />      <section name="RuntimeFilter" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />      <section name="WebPartLimits" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />      <section name="WebPartCache" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />      <section name="WebPartWorkItem" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />      <section name="WebPartControls" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />      <section name="SafeMode" type="Microsoft.SharePoint.ApplicationRuntime.SafeModeConfigurationHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />      <section name="MergedActions" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />      <section name="PeoplePickerWildcards" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />    </sectionGroup>    <sectionGroup name="System.Workflow.ComponentModel.WorkflowCompiler" type="System.Workflow.ComponentModel.Compiler.WorkflowCompilerConfigurationSectionGroup, System.Workflow.ComponentModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">      <section name="authorizedTypes" type="System.Workflow.ComponentModel.Compiler.AuthorizedTypesSectionHandler, System.Workflow.ComponentModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />    </sectionGroup>    <section name="resourceManagementClient" type="Microsoft.ResourceManagement.WebServices.Client.ResourceManagementClientSection, Microsoft.ResourceManagement, Version=4.0.3576.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />          <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />        </sectionGroup>      </sectionGroup>    </sectionGroup>  </configSections>  <SharePoint>    <SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">      <PageParserPaths>      </PageParserPaths>    </SafeMode>    <WebPartLimits MaxZoneParts="50" PropertySize="1048576" />    <WebPartCache Storage="CacheObject" />    <WebPartControls DatasheetControlGuid="65BCBEE4-7728-41a0-97BE-14E1CAE36AAE" />    <SafeControls>      <SafeControl Assembly="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.WebControls" TypeName="*" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Assembly="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.HtmlControls" TypeName="*" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TypeName="*" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.WebControls" TypeName="SqlDataSource" Safe="False" AllowRemoteDesigner="False" />      <SafeControl Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.WebControls" TypeName="AccessDataSource" Safe="False" AllowRemoteDesigner="False" />      <SafeControl Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.WebControls" TypeName="XmlDataSource" Safe="False" AllowRemoteDesigner="False" />      <SafeControl Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI.WebControls" TypeName="ObjectDataSource" Safe="False" AllowRemoteDesigner="False" />      <SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint" TypeName="*" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WebPartPages" TypeName="*" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WebControls" TypeName="*" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.ApplicationPages" TypeName="*" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.SoapServer" TypeName="*" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Meetings" TypeName="*" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint" TypeName="*" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WebPartPages" TypeName="*" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WebControls" TypeName="*" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.ApplicationPages" TypeName="*" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.SoapServer" TypeName="*" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Meetings" TypeName="*" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Workflow" TypeName="*" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Assembly="Microsoft.SharePoint.Search, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Search.WebControls" TypeName="*" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Assembly="Microsoft.SharePoint.Search, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Search.Internal.WebControls" TypeName="*" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Src="~/_controltemplates/*" IncludeSubFolders="True" Safe="True" AllowRemoteDesigner="True" />      <SafeControl Assembly="Microsoft.IdentityManagement.WebUI.Controls, Version=4.0.3576.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="Microsoft.IdentityManagement.WebUI.Controls" TypeName="*" Safe="True" />      <SafeControl Assembly="Microsoft.IdentityManagement.PasswordResetPortal.Controls, Version=4.0.3576.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="Microsoft.IdentityManagement.PasswordResetPortal.Controls.dll" TypeName="*" Safe="True" />      <SafeControl Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" Namespace="System.Web.UI" TypeName="*" Safe="True" />    </SafeControls>    <PeoplePickerWildcards>      <clear />      <add key="AspNetSqlMembershipProvider" value="%" />    </PeoplePickerWildcards>  </SharePoint>  <system.web>    <securityPolicy>      <trustLevel name="WSS_Medium" policyFile="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\config\wss_mediumtrust.config" />      <trustLevel name="WSS_Minimal" policyFile="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\config\wss_minimaltrust.config" />    </securityPolicy>    <httpHandlers>      <remove verb="GET,HEAD,POST" path="*" />      <add verb="GET,HEAD,POST" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />      <add verb="OPTIONS,PROPFIND,PUT,LOCK,UNLOCK,MOVE,COPY,GETLIB,PROPPATCH,MKCOL,DELETE,(GETSOURCE),(HEADSOURCE),(POSTSOURCE)" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />      <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />    </httpHandlers>    <customErrors mode="On" />    <httpRuntime maxRequestLength="51200" />    <authentication mode="Windows" />    <identity impersonate="true" />    <authorization>      <allow users="*" />    </authorization>    <httpModules>      <clear />      <add name="ILMError" type="Microsoft.IdentityManagement.WebUI.Controls.ErrorHandlingModule, Microsoft.IdentityManagement.WebUI.Controls, Version=4.0.3576.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />      <add name="SPRequest" type="Microsoft.SharePoint.ApplicationRuntime.SPRequestModule, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />      <add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />      <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />      <add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" />      <add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />      <add name="RoleManager" type="System.Web.Security.RoleManagerModule" />      <!-- <add name="Session" type="System.Web.SessionState.SessionStateModule"/> -->      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />    </httpModules>    <globalization fileEncoding="utf-8" />    <compilation batch="false" debug="false">      <assemblies>        <add assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />        <add assembly="Microsoft.IdentityManagement.WebUI.Controls, Version=4.0.3576.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />        <add assembly="Microsoft.ResourceManagement, Version=4.0.3576.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />      </assemblies>      <expressionBuilders>        <remove expressionPrefix="Resources" />        <add expressionPrefix="Resources" type="Microsoft.SharePoint.SPResourceExpressionBuilder, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />        <add expressionPrefix="SPHtmlEncodedResources" type="Microsoft.SharePoint.SPHtmlEncodedResourceExpressionBuilder, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />        <add expressionPrefix="SPSimpleFormattingEncodedResources" type="Microsoft.SharePoint.SPSimpleFormattingEncodedResourceExpressionBuilder, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />      </expressionBuilders>    </compilation>    <pages enableSessionState="false" enableViewState="true" enableViewStateMac="true" validateRequest="false" pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" asyncTimeout="7">      <namespaces>        <remove namespace="System.Web.UI.WebControls.WebParts" />      </namespaces>      <tagMapping>        <add tagType="System.Web.UI.WebControls.SqlDataSource, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mappedTagType="Microsoft.SharePoint.WebControls.SPSqlDataSource, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />      </tagMapping>      <controls>        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />        <add tagPrefix="IdentityManagement" namespace="Microsoft.IdentityManagement.WebUI.Controls" assembly="Microsoft.IdentityManagement.WebUI.Controls, Version=4.0.3576.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />        <add tagPrefix="IdentityManagement" namespace="Microsoft.IdentityManagement.WebUI.Controls" assembly="Microsoft.IdentityManagement.WFExtensionInterfaces, Version=4.0.3576.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />        <add tagPrefix="PasswordReset" namespace="Microsoft.IdentityManagement.PasswordResetPortal.Controls" assembly="Microsoft.IdentityManagement.PasswordResetPortal.Controls, Version=4.0.3576.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />      </controls>    </pages>    <siteMap defaultProvider="SPSiteMapProvider" enabled="true">      <providers>        <add name="SPNavigationProvider" type="Microsoft.SharePoint.Navigation.SPNavigationProvider, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />        <add name="SPSiteMapProvider" type="Microsoft.SharePoint.Navigation.SPSiteMapProvider, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />        <add name="SPContentMapProvider" type="Microsoft.SharePoint.Navigation.SPContentMapProvider, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />        <add name="SPXmlContentMapProvider" siteMapFile="_app_bin/layouts.sitemap" type="Microsoft.SharePoint.Navigation.SPXmlContentMapProvider, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />        <add name="ILM2MapProvider" siteMapFile="~//_layouts//MSILM2//Microsoft.IdentityManagement.sitemap" description="Provider for navigation on Forefront Identity Manager" type="System.Web.XmlSiteMapProvider" />        <add name="ILM2PWRMapProvider" siteMapFile="~/_layouts/MSILM2/Microsoft.PasswordResetPotal.sitemap" description="Provider for navigation on FIM Password Reset portal" type="System.Web.XmlSiteMapProvider" />      </providers>    </siteMap>    <trust level="WSS_Minimal" originUrl="" />    <webParts>      <transformers>        <add name="TransformableFilterValuesToFilterValuesTransformer" type="Microsoft.SharePoint.WebPartPages.TransformableFilterValuesToFilterValuesTransformer, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />        <add name="TransformableFilterValuesToParametersTransformer" type="Microsoft.SharePoint.WebPartPages.TransformableFilterValuesToParametersTransformer, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />        <add name="TransformableFilterValuesToFieldTransformer" type="Microsoft.SharePoint.WebPartPages.TransformableFilterValuesToFieldTransformer, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />      </transformers>    </webParts>    <machineKey validationKey="2FAA9FDDCB6C8A8A07EE6533EB669EA751FAF78207B568EB" decryptionKey="2F74702FD52764FC56CC50206DD52DC5FC50661BE15BCF8D" validation="SHA1" />  </system.web>  <runtime>    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">      <dependentAssembly>        <assemblyIdentity name="Microsoft.SharePoint" publicKeyToken="71e9bce111e9429c" culture="neutral" />        <bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0" />      </dependentAssembly>      <dependentAssembly>        <assemblyIdentity name="Microsoft.SharePoint.Dsp" publicKeyToken="71e9bce111e9429c" culture="neutral" />        <bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0" />      </dependentAssembly>      <dependentAssembly>        <assemblyIdentity name="Microsoft.SharePoint.Dsp.OleDb" publicKeyToken="71e9bce111e9429c" culture="neutral" />        <bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0" />      </dependentAssembly>      <dependentAssembly>        <assemblyIdentity name="Microsoft.SharePoint.Dsp.SoapPT" publicKeyToken="71e9bce111e9429c" culture="neutral" />        <bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0" />      </dependentAssembly>      <dependentAssembly>        <assemblyIdentity name="Microsoft.SharePoint.Dsp.Sts" publicKeyToken="71e9bce111e9429c" culture="neutral" />        <bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0" />      </dependentAssembly>      <dependentAssembly>        <assemblyIdentity name="Microsoft.SharePoint.Dsp.XmlUrl" publicKeyToken="71e9bce111e9429c" culture="neutral" />        <bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0" />      </dependentAssembly>      <dependentAssembly>        <assemblyIdentity name="Microsoft.SharePoint.intl" publicKeyToken="71e9bce111e9429c" culture="neutral" />        <bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0" />      </dependentAssembly>      <dependentAssembly>        <assemblyIdentity name="Microsoft.SharePoint.Library" publicKeyToken="71e9bce111e9429c" culture="neutral" />        <bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0" />      </dependentAssembly>      <dependentAssembly>        <assemblyIdentity name="Microsoft.SharePoint.Security" publicKeyToken="71e9bce111e9429c" culture="neutral" />        <bindingRedirect oldVersion="11.0.0.0" newVersion="12.0.0.0" />      </dependentAssembly>      <probing privatePath="bin;_app_bin" />      <dependentAssembly>        <assemblyIdentity name="Microsoft.Identitymanagement.Activities" publicKeyToken="31bf3856ad364e35" culture="neutral" />        <bindingRedirect oldVersion="4.0.0.0-4.65535.65535.65535" newVersion="4.0.3576.2" />      </dependentAssembly>      <dependentAssembly>        <assemblyIdentity name="Microsoft.IdentityManagement.WFExtensionInterfaces" publicKeyToken="31bf3856ad364e35" culture="neutral" />        <bindingRedirect oldVersion="4.0.0.0-4.65535.65535.65535" newVersion="4.0.3576.2" />      </dependentAssembly>      <dependentAssembly>        <assemblyIdentity name="Microsoft.ResourceManagement" publicKeyToken="31bf3856ad364e35" culture="neutral" />        <bindingRedirect oldVersion="4.0.0.0-4.65535.65535.65535" newVersion="4.0.3576.2" />      </dependentAssembly>    </assemblyBinding>  </runtime>  <location path="_layouts/images">    <system.web>      <authorization>        <allow users="*" />      </authorization>    </system.web>  </location>  <location path="_layouts/mobile/mbllogin.aspx">    <system.web>      <authorization>        <allow users="*" />      </authorization>    </system.web>  </location>  <System.Workflow.ComponentModel.WorkflowCompiler>    <authorizedTypes>      <authorizedType Assembly="System.Workflow.Activities, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Workflow.*" TypeName="*" Authorized="True" />      <authorizedType Assembly="System.Workflow.ComponentModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Workflow.*" TypeName="*" Authorized="True" />      <authorizedType Assembly="System.Workflow.Runtime, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Workflow.Runtime" TypeName="CorrelationToken" Authorized="True" />      <authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System" TypeName="Guid" Authorized="True" />      <authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System" TypeName="DateTime" Authorized="True" />      <authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System" TypeName="Boolean" Authorized="True" />      <authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System" TypeName="Double" Authorized="True" />      <authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System" TypeName="String" Authorized="True" />      <authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System.Collections" TypeName="Hashtable" Authorized="True" />      <authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System.Collections" TypeName="ArrayList" Authorized="True" />      <authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System.Diagnostics" TypeName="DebuggableAttribute" Authorized="True" />      <authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System.Runtime.CompilerServices" TypeName="CompilationRelaxationsAttribute" Authorized="True" />      <authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System.Runtime.CompilerServices" TypeName="RuntimeCompatibilityAttribute" Authorized="True" />      <authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System" TypeName="Int32" Authorized="True" />      <authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System" TypeName="TimeSpan" Authorized="True" />      <authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System.Collections.ObjectModel" TypeName="Collection`1" Authorized="True" />      <authorizedType Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Workflow" TypeName="SPWorkflowActivationProperties" Authorized="True" />      <authorizedType Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Workflow" TypeName="SPWorkflowTaskProperties" Authorized="True" />      <authorizedType Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.Workflow" TypeName="SPWorkflowHistoryEventType" Authorized="True" />      <authorizedType Assembly="Microsoft.SharePoint.WorkflowActions, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.SharePoint.WorkflowActions" TypeName="*" Authorized="True" />    </authorizedTypes>  </System.Workflow.ComponentModel.WorkflowCompiler>  <appSettings>    <add key="PasswordPortalBrandingBarCenterText" value="" />    <add key="PasswordPortalBrandingBarLeftImageUrl" value="~/_layouts/images/MSILM2/logo.png" />    <add key="PasswordPortalBrandingBarRightImageUrl" value="~/_layouts/images/MSILM2/banner.png" />  </appSettings>  <resourceManagementClient resourceManagementServiceBaseAddress="http://ServerName:5725" timeoutInMilliseconds="60000" />  <system.webServer>    <httpProtocol>      <customHeaders>        <add name="X-UA-Compatible" value="IE=EmulateIE7" />        <add name="X-FRAME-Options" value="SameOrigin" />      </customHeaders>    </httpProtocol>    <validation validateIntegratedModeConfiguration="false" />    <modules>      <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />    </modules>    <handlers>      <remove name="WebServiceHandlerFactory-Integrated" />      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />    </handlers>  </system.webServer></configuration>

Sorry about the badly formatted XML Files. Whenever I try to put them in code blocks, I kept receiving an error and could not post my response.


Thanks,
Ethan

Coordinator
Jan 23, 2012 at 9:57 AM

Hi Ethan,

Sorry for the late answer, I've been busy...

It looks like you are completely missing the FIM configuration. Check the examples in the source code, in the app.config file you will find a <system.serviceModel>
section. Add that one to your web.config, changing what needs to be changed (mainly the name of the FIM machine).

Cheers,
Paolo

Jan 24, 2012 at 12:18 PM

That did it! Thanks so much for your help. I didn't even think about that.

Coordinator
Jan 24, 2012 at 12:35 PM

Glad it helped :)

Cheers,
Paolo