Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Ensure Web App is running
PierreXPT
#1 Posted : Tuesday, February 14, 2012 5:39:50 AM(UTC)
Groups: Member
Joined: 2/14/2012(UTC)
Posts: 4
Location: France

Hi,

I have a Winform .Net 2.0 application registring a Web Server Pro web application inside.
The registration work fine but how can i ensure that my web site is running ?
Is there a method i am missing ?

Regards.
Ultidev Team
#2 Posted : Tuesday, February 14, 2012 9:24:40 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi there!

There is no such method. Once application is registered, it takes from a few seconds (on fast systems) to a about a minute (on a slow VM) for an application to start. To wait for an application to start you may simply fire off WebRequest periodically until you get a response. In most cases, however, you won't need to do that, as applications start quite reliably.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
PierreXPT
#3 Posted : Wednesday, February 15, 2012 1:21:55 AM(UTC)
Groups: Member
Joined: 2/14/2012(UTC)
Posts: 4
Location: France

Thanks for your answer...
I think I hava to add a kind of timer or delay then to ensure the web app is running.

Regards.
Ultidev Team
#4 Posted : Wednesday, February 15, 2012 10:40:43 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi!

You may want to set a timer and use WebClient or WebRequest class to reach your application after it was registered. Upcoming build 15 will have a new method in ]UWS configuration API to easily retrieve application URL.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Guest
#5 Posted : Thursday, June 14, 2018 8:15:13 PM(UTC)
Groups:

Message was deleted by a Moderator.
Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.