iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Can anyone help?
InterSoft TDN private consultation said I should post here to try to get an answer.
Here is what has happend so far.
Date Sunday, November 08, 2009 - 5:19 PM
I am trying to get the WebFlyPostBackManager Tutorial RetrievingSimpleTypesUsingWebService.aspx to work inside my application.
I have the WebServiceSamples.asmx working because I can browse to it and invoike HellowWorld.
However when I try to run it using the WebFlyPostBackManager, the get the following error when the page loads.
The remote server returned an error: (503) Server Unavailable.
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.Net.WebException: The remote server returned an error: (503) Server Unavailable.
After discussing this issue with the developer, It seems you need to set the AutoLoadMetaData to false for the FlyPostBackManager in FormAuthenthication project. The MetaDataCollection must be done manually. Attached is the sample that the developer provided to simulate the issue.
I remove the bin folder to reduce the size of the attachment.
Username is user@intersoftpt.com and password is !nt3rsoft
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
[WebException: The remote server returned an error: (503) Server Unavailable.]System.Net.HttpWebRequest.GetResponse() 5314029System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) 69System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) 3929371System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) 54System.Xml.XmlTextReaderImpl.OpenStream(Uri uri) 34System.Xml.XmlTextReaderImpl.DtdParserProxy_PushExternalSubset(String systemId, String publicId) 408System.Xml.DtdParserProxy.System.Xml.IDtdParserAdapter.PushExternalSubset(String systemId, String publicId) 16System.Xml.DtdParser.ParseExternalSubset() 21System.Xml.DtdParser.ParseInDocumentDtd(Boolean saveInternalSubset) 4016925System.Xml.DtdParser.Parse(Boolean saveInternalSubset) 54System.Xml.DtdParserProxy.Parse(Boolean saveInternalSubset) 31
System.Xml.XmlTextReaderImpl.ParseDoctypeDecl() 254System.Xml.XmlTextReaderImpl.ParseDocumentContent() 451System.Xml.XmlTextReaderImpl.Read() 151System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) 58System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) 20System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) 129System.Xml.XmlDocument.Load(XmlReader reader) 108System.Xml.XmlDocument.LoadXml(String xml) 113
ISNet.WebUI.WebDesktop.WebFlyPostBackListener.(String pageName) 236
ISNet.WebUI.WebDesktop.WebFlyPostBackListener.() 47ISNet.WebUI.WebDesktop.WebFlyPostBackListener.() 96ISNet.WebUI.WebDesktop.WebFlyPostBackListener.() 61ISNet.WebUI.WebDesktop.WebFlyPostBackManager.() 263ISNet.WebUI.WebDesktop.WebFlyPostBackManager.CheckConstrains() 45ISNet.WebUI.ISNetControl.(Object ?, EventArgs ?) 662
System.Web.UI.Control.OnPreRender(EventArgs e) 8682870System.Web.UI.Control.PreRenderRecursiveInternal() 80System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 842 Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082
From: technical@intersoftpt.com Sent: Monday, November 09, 2009 3:17 AM Subject: Re: WebFlyPostBackManager: The remote server returned an error: (503) Server Unavailable. [IS-2A21AA4A-1E51-4034-9757-9E0DEC782898]
Hi Doug,
The walkthrough is used to create the SimpleTypeWS.aspx sample that we have provided as a WebFlyPostBackManager. In our environment, the sample runs without any issue.Perhaps you could compare the SimpleTypeWS.aspx and the page you created using the walkthrough to see if you miss any setting / property.
We also provide a public forum, http://www.intersoftpt.com/Community, where you could also ask other users / support staff about your issue. You could also search if other users has encounter similar issue.
Date Monday, November 09, 2009 - 7:33 AM
Hi,
I did not create the page, I copied RetrievingSimpleTypesUsingWebService.aspx from C:\Program Files\Intersoft Solutions\Intersoft WebUI Studio 2009 R1\Tutorials\cs\WebDesktop\WebFlyPostBackManager. I did not miss any setting / property because I did not change anything.
I also copied the C:\Program Files\Intersoft Solutions\Intersoft WebUI Studio 2009 R1\Samples\For ASP.NET\ISNet.WebUI.Samples\cs\WebDesktop\WebFlyPostBackManager\SimpleTypeWS.aspx and got the same 503 results. Of course I took out the MasterPage for this one.
Here is the IIS Log
2009-11-09 11:42:55 W3SVC1 DELLP530-W2K3 127.0.0.1 GET /NewCoServices/WebFlyPostBackManager/WebServiceSamples.asmx wsdl 80 - 127.0.0.1 HTTP/1.1 - - - localhost 302 0 0 619 122 152009-11-09 11:42:55 W3SVC1 DELLP530-W2K3 127.0.0.1 GET /NewCoServices/login.aspx ReturnUrl=/NewCoServices/WebFlyPostBackManager/WebServiceSamples.asmx?wsdl 80 - 127.0.0.1 HTTP/1.1 - - - localhost 200 0 0 69318 142 02009-11-09 11:42:56 W3SVC1 DELLP530-W2K3 127.0.0.1 GET /NewCoServices/WebFlyPostBackManager/RetrievingSimpleTypesUsingWebService.aspx - 80 - 127.0.0.1 HTTP/1.1 Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) ASP.NET_SessionId=2bmnyu45rft44e2x1nc3dx45; .ASPXAUTH=B6C77828C8BE2AC91C05D7BC6CE0F0CCA852707071984BB662A13A262DAD1CB9F998D1686CCC8398A1EBCFE971D6C98F617D916026C7195D2B007230AF7592204BF6635182454C3000D777884DBDC00A - localhost 500 0 0 8140 959 1371
It looks the GET for the .asmx is getting challenged by Forms Authentication because I see the Login.aspx page with a ReturnUrl of the .asmx page.
3. How do I get the .asmx GET, presumably issued by the WebFlyPostBackManager, to pass Forms Authentication?
Here is what was in the Application Event ViewerEvent code: 3005 Event message: An unhandled exception has occurred. Event time: 11/9/2009 6:42:56 AM Event time (UTC): 11/9/2009 11:42:56 AM Event ID: 3ec08191a20045c7bbda8cc231d410d2 Event sequence: 10 Event occurrence: 3 Event detail code: 0 Application information: Application domain: /LM/w3svc/1/root/NewCoServices-2-129022402694280243 Trust level: Full Application Virtual Path: /NewCoServices Application Path: h:\inetpub\wwwroot\NewCoServices\ Machine name: DELLP530-W2K3 Process information: Process ID: 208812 Process name: w3wp.exe Account name: DELLP530-W2K3\ASPNETNewCo Exception information: Exception type: WebException Exception message: The remote server returned an error: (503) Server Unavailable. Request information: Request URL: http://localhost/NewCoServices/WebFlyPostBackManager/RetrievingSimpleTypesUsingWebService.aspx Request path: /NewCoServices/WebFlyPostBackManager/RetrievingSimpleTypesUsingWebService.aspx User host address: 127.0.0.1 User: DBadinTXDJK Is authenticated: True Authentication Type: Forms Thread account name: DELLP530-W2K3\ASPNETNewCo Thread information: Thread ID: 8 Thread account name: DELLP530-W2K3\ASPNETNewCo Is impersonating: False Stack trace: at System.Net.HttpWebRequest.GetResponse()at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials)at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials)at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)at System.Xml.XmlTextReaderImpl.OpenStream(Uri uri)at System.Xml.XmlTextReaderImpl.DtdParserProxy_PushExternalSubset(String systemId, String publicId)at System.Xml.XmlTextReaderImpl.DtdParserProxy.System.Xml.IDtdParserAdapter.PushExternalSubset(String systemId, String publicId)at System.Xml.DtdParser.ParseExternalSubset()at System.Xml.DtdParser.ParseInDocumentDtd(Boolean saveInternalSubset)at System.Xml.DtdParser.Parse(Boolean saveInternalSubset)at System.Xml.XmlTextReaderImpl.DtdParserProxy.Parse(Boolean saveInternalSubset)at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()at System.Xml.XmlTextReaderImpl.ParseDocumentContent()at System.Xml.XmlTextReaderImpl.Read()at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)at System.Xml.XmlDocument.Load(XmlReader reader)at System.Xml.XmlDocument.LoadXml(String xml)at ISNet.WebUI.WebDesktop.WebFlyPostBackListener.(String pageName)at ISNet.WebUI.WebDesktop.WebFlyPostBackListener.()at ISNet.WebUI.WebDesktop.WebFlyPostBackListener.()at ISNet.WebUI.WebDesktop.WebFlyPostBackListener.()at ISNet.WebUI.WebDesktop.WebFlyPostBackManager.()at ISNet.WebUI.WebDesktop.WebFlyPostBackManager.CheckConstrains()at ISNet.WebUI.ISNetControl.(Object ?, EventArgs ?)at System.Web.UI.Control.OnPreRender(EventArgs e)at System.Web.UI.Control.PreRenderRecursiveInternal()at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details: For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
From: technical@intersoftpt.com Sent: Tuesday, November 10, 2009 4:23 AM Subject: Re: WebFlyPostBackManager: The remote server returned an error: (503) Server Unavailable. [IS-2A21AA4A-1E51-4034-9757-9E0DEC782898]
...
3. We could not replicate the 505 server error in our environment. If you suspect the issue is related to the forms authenthication and WebService, perhaps you could try the method describe in this article to allow the WebService to pass the authenthication, http://www.bloo.us/pages/web-services-forms-authentication/
Date Tuesday, November 10, 2009 - 7:12 AM
Hi Gordon,
I am not having a 505 server error. It is a 503. No wonder you can not reproduce it.
1. Interesting article, http://www.bloo.us/pages/web-services-forms-authentication/, but how the heck am I suppose to add a cookie the WebFlyPostBackManager Web Service Call? I don't even have the source code.
Doug
Sorry about all the posts. This forum does not like certain characters.
1. I noticed something interesting in the IIS Log
When InterSoft calls the .asmx, the cs-uri-query is wsdl.
- Is additional configuration needed for wsdl?
When Telerik calls the .asmx, the cs-uri-query is empty (-).
2. Also, the strange part is why is this called when the Intersoft Page Loads and doesn't wait for the Client-Side WebFlyPostBackManager Method call.
#Fields: date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken 2009-11-10 22:10:59 W3SVC1 DELLP530-W2K3 127.0.0.1 POST /NewCoServices/_Test/Telerik/RadComboBox/PartsList.asmx/PartsListGet - 80 - 127.0.0.1 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+Trident/4.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.30;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.5.21022;+InfoPath.2;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) ASP.NET_SessionId=jbhatfqq2fmijb45wyvvwk2f;+.ASPXAUTH=4EC3962C18C2994310491B7C8479B087FF997CC4E27F903094E6949C3F47EFE1F11D8725CC67466758FF5880A015819A57759401A21FBEC7BE7915E8AC21E7A9B741033814908C3AAB1600E025D23A93 http://localhost/NewCoServices/_Test/Telerik/RadComboBox/ComboBoxTelerik.aspx localhost 200 0 0 2171 881 0 2009-11-10 22:15:19 W3SVC1 DELLP530-W2K3 127.0.0.1 GET /NewCoServices/_Test/InterSoft/WebFlyPostBackManager/WebServiceSamples.asmx wsdl 80 - 127.0.0.1 HTTP/1.1 - - - localhost 302 0 0 663 138 0 2009-11-10 22:15:21 W3SVC1 DELLP530-W2K3 127.0.0.1 GET /NewCoServices/login.aspx ReturnUrl=/NewCoServices/_Test/InterSoft/WebFlyPostBackManager/WebServiceSamples.asmx?wsdl 80 - 127.0.0.1 HTTP/1.1 - - - localhost 200 0 0 70098 162 2104
That worked.
I would be nice if a future release had this capability available through a property.
I have created a feature request so this functionality will be simpler in the future revision of WebDesktop.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname