Hi Arkesh,

It seems like your SAML request is empty. The Identity Provider
implementation will only work when it receives a valid SAML Request.
Did you try visiting http://mail.google.com/a/<yourdomain.com> ?

This will generate a SAML Request and redirect to your IIS instance
once you set the SSO Sign-in URL and upload the public key
certificate.

SSO Sign-in URL:
http://localhost/GoogleAppsSso/prompt.aspx

You can find these instructions in the README file under 'Testing the
sample application' section.

-Anirudh

On Aug 30, 5:26 pm, Arkesh <[EMAIL PROTECTED]> wrote:
> Hi Everybody,
>  Could any one noticed that while runnig .NET (c# and asp) Sample for
> SSO (Single sign on) application generates exception as below.I am
> runnig this application over visual studio 2008.I take care all the
> issues while runnnig the application
> ====
> Server Error in '/' Application.
> Root element is missing.
> 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.Xml.XmlException: Root element is missing.
>
> Source Error:
>
> Line 51:
> Line 52:             XmlDocument doc = new XmlDocument();
> Line 53:             doc.LoadXml(result);
> Line 54:
> Line 55:             return doc;
>
> Source File: C:\projects\Google.Apps.SingleSignOn\src\SamlParser.cs
> Line: 53
>
> Stack Trace:
>
> [XmlException: Root element is missing.]
>    System.Xml.XmlTextReaderImpl.Throw(Exception e) +90
>    System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res) +109
>    System.Xml.XmlTextReaderImpl.ParseDocumentContent() +1954433
>    System.Xml.XmlTextReaderImpl.Read() +41
>    System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader,
> Boolean preserveWhitespace) +145
>    System.Xml.XmlDocument.Load(XmlReader reader) +96
>    System.Xml.XmlDocument.LoadXml(String xml) +197
>    Google.Apps.SingleSignOn.SamlParser.UnpackRequest(String
> packedText) in C:\projects\Google.Apps.SingleSignOn\src\SamlParser.cs:
> 53
>
> Google.Apps.SingleSignOn.Web.SingleSignOnDebug.SetupGoogleLoginForm(String
> userName) in C:\projects\Google.Apps.SingleSignOn\web
> \SingleSignOnDebug.aspx.cs:72
>    Google.Apps.SingleSignOn.Web.SingleSignOnDebug.Page_Load(Object
> sender, EventArgs e) in C:\projects\Google.Apps.SingleSignOn\web
> \SingleSignOnDebug.aspx.cs:54
>    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp,
> Object o, Object t, EventArgs e) +15
>    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object
> sender, EventArgs e) +33
>    System.Web.UI.Control.OnLoad(EventArgs e) +99
>    System.Web.UI.Control.LoadRecursive() +47
>    System.Web.UI.Page.ProcessRequestMain(Boolean
> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
> +1436
> ==============
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to