Hi there!
The question is absolutely legitimate and educating.
Basically the issue is how to programmatically determine the port of your applicaiton after your have registred it, so you could assemble the URL pointing to your specific page. There are two ways of doing that.
One, for .NET applications only, is to use Cassini API implemented in the CassiniConfiguration.dll that can be found in the Cassini application folder. The method is
Metabase.FindApplication(Guid appID). It returns
ApplicationEntry structure that has
Port field in it.
Second way, suitable for any programming language, is to call Cassini configuration web service at
http://localhost:7756/CassiniConfigurationService.asmx. It has GetApplicationUrl(Guid appID) and GetApplicationPort(Guid appID) methods, which return the complete application URL, and application port number respectively, for a given application ID.
Best regards,
UltiDev Team.
Please donate at
http://www.ultidev.com/products/Donate.aspx to help us improve our products.