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

Notification

Icon
Error

Cassini on XP crashes - perhaps port conflict
anthonyplanet
#1 Posted : Monday, August 17, 2009 10:48:54 PM(UTC)
Groups: Member
Joined: 8/17/2009(UTC)
Posts: 2

Hi all, i would really appreciate some comments on the following issue.

I'm running Win XP home edition using cassini as my dev platform.

Quite frequently ie every 20minutes. I am unable to access my

local site "http://localhost:2384/"

or cassini explorer "http://localhost:7756/"

The "ultiDevCassiniWebServer2a.exe" is running tho quite high memory usage ie 139,892

Am i correct is suspecting that another service is using that port. I've installed "TcpView" to try and work out whats going on but can't seem to work it out.

Any comments very welcome

thanks
Anthony
Ultidev Team
#2 Posted : Tuesday, August 18, 2009 4:07:47 PM(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, Anthony.

If you are able to reach your app once in a while, then no other app is using the port. To find our what happens we would have to know what exactly happens when you are unable to reach the server: does it time out, do you get "server refused the connection". Also, do you have clients on other machines hitting the server? The reason we are asking is because XP Home allows very limited number of incoming connections. As for the memory usage, we tested Cassini very extensively to ensure that it does not leak the memory. Whenever Cassini gets high memory usage, it was invariably some application, all of which are loaded into Cassini's process. Please note that if you registered your app with "keep it in memory" flag, it will cause your default page get hit every few minutes. Sometimes it causes lots of CPU usage and memory allocations, if the default page has lots of code. To see whether Cassini runs up memory, consider unregistering your app and let only Cassini service and Cassini Explorer run on their own, and see whether you get high memory usage too. Something to keep in mind is that Cassini does not force garbage collection, so it's up to .NET Framework to clean up memory. The only truly bad scenario is when memory usage goes only up. Also, please check Windows Event Log to see whether you see and errors related to UltiDev Cassini.

Please let us know if you get some more insights into high memory usage and possible reasons for service not responding.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
anthonyplanet
#3 Posted : Friday, September 18, 2009 11:02:18 AM(UTC)
Groups: Member
Joined: 8/17/2009(UTC)
Posts: 2

excellent, much appreciated.

I had another site running that had errors as i temporally changed my connection string. So once i fixed this it worked. So generally when you develop casinni do you recommend just using one site at a time. I noticed debugging today that "siteA" called the global asax for "siteb" . Not a big deal as i can just unregister "siteb" but was interesting .
Ultidev Team
#4 Posted : Friday, September 18, 2009 4:29:41 PM(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)
Hello, Anthony.

Cassini is designed to run multiple applications. The situation when global.asax from app-A is called by app-B is not normal and has never been reported. If you could let us know how to reliably reproduce the problem, we would appreciate it.

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 (2)
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.