Web.config error

Jul 9, 2011 at 1:59 AM

When trying to port the functionality over to my own site, I get the following error on the <serviceKeys> element in my web.config:

The element 'issuerTokenResolver' cannot contain child element 'serviceKeys' because the parent element's content model is empty.

 <service name="OAuth">
      <audienceUris>
        <add value="uri:wazmobiletoolkit" />
      </audienceUris>
      <securityTokenHandlers>
        <add type="Microsoft.Samples.DPE.OAuth.Tokens.SimpleWebTokenHandler, Microsoft.Samples.DPE.OAuth" />
      </securityTokenHandlers>
      <issuerTokenResolver type="Microsoft.Samples.DPE.OAuth.ProtectedResource.ConfigurationBasedIssuerTokenResolver, Microsoft.Samples.DPE.OAuth">
        <serviceKeys>
          <add serviceName="uri:wazmobiletoolkit" serviceKey="{key}" />
        </serviceKeys>
      </issuerTokenResolver>
      <issuerNameRegistry type="Microsoft.Samples.DPE.OAuth.ProtectedResource.SimpleWebTokenTrustedIssuersRegistry, Microsoft.Samples.DPE.OAuth">
        <trustedIssuers>
          <add issuerIdentifier="https://{my-namespace}.accesscontrol.windows.net/" name="WazMobileToolkit" />
        </trustedIssuers>
      </issuerNameRegistry>
    </service>

 

 

Jan 20, 2012 at 9:21 PM

Any solution to why this happened?

Jun 3, 2012 at 7:23 AM

johnshadowdog did you resolve this issue? I've exactly the same issue.

Richard.

Jan 8, 2013 at 5:52 AM

i too have the same problem persisting please anybody reply sooonn..........