Hi!
Thank you for using UltiDev Cassini and for your positive feedback!
Windows firewall should not be a problem because when UltiDev Cassini gets installed, it creates Windows Firewall exceptions for itself. Other personal firewalls, however, are not supported.
If you still have to make sure that subsequent versions of your application are using the same port, then the bad news - current implementation of the Cassini Configuration API does not save previous application's port number on its own, but we are going to change this in the future version.
The good news - there is a possible workaround, although it will require a little bit of programming on your part. To keep the same port between installations of the version 1.0 ad 2.0 of your application you could do this:
- In version 1.0 implement Commit custom installer step (using Installer class) to retrieve and store (for example, in the Registry) the port number your application was assigned. To retrieve your application port number you would use
Metabase.Load() method to get the instance of the Metabase object, and then call
FindApplication() method, to get access to the
ApplicationEntry structure defining your application registration parameters, one of which is the
port number. You could save port number value in the Registry or some place else for the version 2.0 of your application to pick it up.
- Version 2.0 of your application then would have to implement Install custom step, where it would retrieve the port number from the Registry, or wherever it was stored by the version 1.0, and then use
Metabase.IsPortFree() and
Metabase.RegisterApplication() methods to register the application manually with the same port number it had before.
Next version of Cassini Web Server will have Cassini Configuration API saving port number of uninstalled applications for subsequent use during the installation, so you would not have to go through the trouble.
Please let us know if this information has helped.
Best regards,
UltiDev Team.
Please donate at
http://www.ultidev.com/products/Donate.aspx to help us improve our products.