RE: SourceID.NET --another Server Error in '/idp' Application

"Paulo Ruivo" <[email protected]> Wed, 16 Jul 2003 12:31:04 +0100
Newsgroups gmane.comp.sourceid.sso.devel
Message-ID <[email protected]>
I still have the same problem, after I added the lines.
In the begin of my machine.config I have this lines:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <!-- tell .NET Framework to ignore CLR sections -->
    <section name="runtime" type="System.Configuration.IgnoreSectionHandler,
System, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" allowLocation="false" />
    <section name="mscorlib"
type="System.Configuration.IgnoreSectionHandler, System, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false" />
    <section name="startup" type="System.Configuration.IgnoreSectionHandler,
System, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" allowLocation="false" />


  It may be because of the  System.Configuration.IgnoreSectionHandler, but
with what should I replace it?
Thanks
Paulo Ruivo



-----Original Message-----
From: [email protected] [mailto:[email protected]]On
Behalf Of David Waite
Sent: terça-feira, 15 de Julho de 2003 22:20
To: [email protected]
Subject: Re: [SourceID SSO-dev] SourceID.NET --another Server Error in
'/idp' Application


I added it toward the bottom, one line up from the end tag -
configuration based on XML is not the least error-prone thing :-)

The element should begin right below the document root. There shouldn't
be an existing mscorlib tag to modify or anything like that.

So my last lines of the configuration file are:

  <!-- added by SourceID.NET -->
  <mscorlib>
    <cryptographySettings>
      <cryptoNameMapping>
        <cryptoClasses>
          <cryptoClass
exc14n="Microsoft.Web.Services.Security.XmlDsigExcC14NTransform,
Microsoft.Web.Services" />
          <cryptoClass
exc14n.comments="Microsoft.Web.Services.Security.XmlDsigExcC14NWithCommentsT
ransform,
Microsoft.Web.Services" />
        </cryptoClasses>
        <nameEntry name="http://www.w3.org/2001/10/xml-exc-c14n#"
class="exc14n" />
        <nameEntry
name="http://www.w3.org/2001/10/xml-exc-c14n#WithComments"
class="exc14n.comments" />
      </cryptoNameMapping>
    </cryptographySettings>
  </mscorlib>
</configuration>

-David Waite

Paulo Ruivo wrote:

>I’m getting an error, when computing the signature of the response to the
>request of authentication. I think it’s related with what is written in the
>reame.txt that came with the code, about how to get exclusive
>canonicalization working.  In what place of the machine.config I must place
>the “codeâ€, inside the <configuration>,  or inside another element?
>
>The error message that I get is this:
>
>
>
>Server Error in '/liberty' Application.
>---------------------------------------------------------------------------
-
>----
>
>Could not create the XML transformation identified by the URI
>http://www.w3.org/2001/10/xml-exc-c14n#.
>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.Security.Cryptography.CryptographicException:
>Could not create the XML transformation identified by the URI
>http://www.w3.org/2001/10/xml-exc-c14n#.
>
>Source Error:
>
>
>Line 373:            sx.AddReference(reference);
>Line 374:
>Line 375:            sx.ComputeSignature();
>Line 376:
>Line 377:            if (assertion != null)
>
>
>Source File: d:\sso\sourceid\xmlutils.cs    Line: 375
>
>Stack Trace:
>
>
>[CryptographicException: Could not create the XML transformation identified
>by the URI http://www.w3.org/2001/10/xml-exc-c14n#.]
>   System.Security.Cryptography.Xml.SignedXml.ComputeSignature()
>   SourceId.XmlUtils.SignResponse(ResponseAbstractType response,
>AsymmetricAlgorithm key, XmlSerializer serializer) in
>d:\sso\sourceid\xmlutils.cs:375
>   SourceId.HttpHandlers.Authenticator.HandleAuthReturnToSP(HttpContext
>context, AuthnRequestType authn_req, ProviderDirectory dir,
SPDescriptorType
>sp) in D:\sso\SourceId\HttpHandlers\Authenticator.cs:470
>   SourceId.HttpHandlers.Authenticator.HandleAppAuthenticated(HttpContext
>context, AuthnRequestType authn_req, Object uid, ProviderDirectory dir,
>SPDescriptorType sp) in D:\sso\SourceId\HttpHandlers\Authenticator.cs:263
>   SourceId.HttpHandlers.Authenticator.Process(HttpContext context) in
>D:\sso\SourceId\HttpHandlers\Authenticator.cs:89
>   liberty.LogonPost.Page_Load(Object sender, EventArgs e) in
>c:\inetpub\wwwroot\liberty\LogonPost.aspx.cs:114
>   System.Web.UI.Control.OnLoad(EventArgs e)
>   System.Web.UI.Control.LoadRecursive()
>   System.Web.UI.Page.ProcessRequestMain()
>
>---------------------------------------------------------------------------
-
>----
>Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
>Version:1.1.4322.573
>
>Thanks,
>Paulo Ruivo
>
>_______________________________________________
>sso-dev mailing list
>[email protected]
>http://mail.sourceid.org/mailman/listinfo/sso-dev
>
>


_______________________________________________
sso-dev mailing list
[email protected]
http://mail.sourceid.org/mailman/listinfo/sso-dev