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

Notification

Icon
Error

Failing to Register
bmenot
#1 Posted : Thursday, August 21, 2008 3:17:14 AM(UTC)
Groups: Member
Joined: 8/12/2008(UTC)
Posts: 6

Hi there,

After installing UltiDev Cassini Explorer and Web Server for 2.0, I then try to register my application by issuing the following command after installation:

"$PROGRAMFILES$\UltiDev\Cassini Web Server for ASP.NET 2.0\UltiDevCassinWebServer2.exe" /register "$TARGETDIR$\Release" 2827AA82-0AA2-4621-D13A-821020394705 Default.aspx 8080 /ignore

This always returns with the error code "-11" when running through the installer.

However, after the installation is complete, if I run the exact same command in the command line, it seems to register but still doesn't really work.

The second issue I have is everytime I open up the Cassini Server Explorer, it just blanks out saying page not found. Sometimes it also shuts the service down...

Any reason for this? Corrupt metabase? I have uninstalled/reinstalled and basically tried everything. And this is a fresh installation of windows...

Thanks!
Ultidev Team
#2 Posted : Thursday, August 21, 2008 4:33:38 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!

Although these issues don't sound familiar, we'll try to help you troubleshooting them.

1. Exit code -11 looks strange because in all paths of execution Cassini in command line mode returns either 0 or 1. Is it possible that the installer you are using can't find the EXE? Can you see command line window when UltiDev Cassini is launched?

2. Please take a look at the Event Log (Application), which is accessible from Start -> Control Panel -> Administrative Tools. Please check to see if there are error or warning entries related to UltiDev Cassini there. When UltiDev Cassini or an application it hosts crashes, it usually leaves useful clues in the Event Log.

Please let us know what you found.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
bmenot
#3 Posted : Thursday, August 21, 2008 5:50:05 AM(UTC)
Groups: Member
Joined: 8/12/2008(UTC)
Posts: 6

Hello,

When I uninstall my application, I trigger Cassini to unregister. From the error messages that I can see it doesn't look like it is freeing the port up:

Exception in Cassini Web application (8080, "Release")
Exception:
System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted.

Cassini Explorer used to crash too. I re-registered with a different GUID and then it began to work again. I uninstalled, unregistered Web app and reinstalled to get the above error message all over again.

Does Cassini free up the port upon unregistering the web app? I am installing/uninstalling using the same GUID and a fixed port.

Thanks much!
Ultidev Team
#4 Posted : Thursday, August 21, 2008 6:58:09 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!

Cassini does attempt to close the socket and free the port when unloading an application, but that does not guarantee that the port will actually be freed. You should see a Warning entry in the Event Log when an application is unloaded but its port is not released. In the upgrade scenario your application may fail to start (with an error entry in the Event Log) if Cassini can't start listening on the port. We usually see this issue on slower machines. When you are installing an application on a static port, your installer has to be sure the port is free. We provide the functionality in the Cassini Configuration API. If you can't use .NET programming in your installer, you could write your own code that will attempt binding the socket at port 8080. If it's not free, you could wait a little bit to ensure it's not a socket that is tied up by unsuccessful release of the port, and then if it does not free up, you would either fail the installation, or offer listening on another port.

Please let us know if this helps.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest (5)
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.