Server Error in '/UREC' Application.

An XML comment cannot contain '--', and '-' cannot be the last character. Line 3, position 34.

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: An XML comment cannot contain '--', and '-' cannot be the last character. Line 3, position 34.

Source Error:


Line 129:
Line 130:        uGateway = new R25WS_Gateway();
Line 131:        oWSStatus = uGateway.Login(sUserName, sPassword, R25WS_Gateway.PsswdEncoding.Plain);
Line 132:        uGateway = null;
Line 133:

Source File: w:\web\websites\cub\applications_virtualdirs\scheduling\urec\App_Code\AD_WS_Bridge.cs    Line: 131

Stack Trace:


[XmlException: An XML comment cannot contain '--', and '-' cannot be the last character. Line 3, position 34.]
   System.Xml.XmlTextReaderImpl.Throw(Exception e) +73
   System.Xml.XmlTextReaderImpl.Throw(String res, String arg) +121
   System.Xml.XmlTextReaderImpl.ParseCDataOrComment(XmlNodeType type, Int32& outStartPos, Int32& outEndPos) +5367849
   System.Xml.XmlTextReaderImpl.ParseCDataOrComment(XmlNodeType type) +78
   System.Xml.XmlTextReaderImpl.ParseComment() +28
   System.Xml.XmlTextReaderImpl.ParseElementContent() +206
   System.Xml.XmlTextReaderImpl.Read() +45
   System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) +57
   System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) +21
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +133
   System.Xml.XmlDocument.Load(XmlReader reader) +109
   System.Xml.XmlDocument.Load(Stream inStream) +136
   R25WebServices.R25WS_Utilities.RetrieveXMLFromStream(Stream strmXMLStream) in F:\Source Control\Scheduling\VS2010\R25WebServices\R25WS_Utilities.cs:225
   R25WebServices.R25WS_Utilities.SendRequest(String sWSSessionID, String sPage, String sMethod, String sPostXML, Hashtable oParamlist) in F:\Source Control\Scheduling\VS2010\R25WebServices\R25WS_Utilities.cs:186
   R25WebServices.R25WS_Gateway.Login(String sUsername, String sPassword, PsswdEncoding ePassEncoding) in F:\Source Control\Scheduling\VS2010\R25WebServices\R25WS_Gateway.cs:35
   AD_WS_Bridge.LoginR25User() in w:\web\websites\cub\applications_virtualdirs\scheduling\urec\App_Code\AD_WS_Bridge.cs:131
   Calendar.CheckSpaceAvailability(Int32 intSpaceID, String strStartDate) in w:\web\websites\cub\applications_virtualdirs\scheduling\urec\Calendar.aspx.cs:56
   Calendar.Page_Load(Object sender, EventArgs e) in w:\web\websites\cub\applications_virtualdirs\scheduling\urec\Calendar.aspx.cs:26
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0