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

Notification

Icon
Error

Is it possible to install both Web Server Pro and Cassini?
Chris.Sieben
#1 Posted : Wednesday, June 13, 2012 10:42:12 AM(UTC)
Groups: Member
Joined: 9/7/2010(UTC)
Posts: 14
Location: St. Cloud, MN

Was thanked: 2 time(s) in 2 post(s)
We have a customer who is using our web service hosted in Cassini. All is working A Ok. The customer has installed a different software package from another vendor that includes UWS. After the install (upgrade?), our web service is still registered in ultidev, is running, but is not working anymore.
I have not yet tested/adopted UWS for deployment with our web service. so I starting from zero. I am hoping to have both UWS and Cassini running so that both software packages can work. This could be the quickest way to a solution to the customer's problem.

Options
1. UWS and Cassini side by side.
2. UWS configuration changes would solve it?
3. Full on diagnosis testing under the gun.

I am not sure why our web service would not work, when all that changed is upgrade from Cassini to UWS.
Ultidev Team
#2 Posted : Wednesday, June 13, 2012 1:49:00 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, Chris.

Although it's impossible to run UWS and Cassini side-by-side, we should be able to figure out why the is not working under UWS.

UWS takes over Cassini by upgrading it: they both share same MSI upgrade code, so they can't co-exist, but UWS reads Cassini metabase (app config info) and loads and runs Cassini apps. UWS will load them into a host process that runs under Local System, .NET 2 Framework, and will run it as 64-bit, unless Cassini app was for .NET 1.1.

If your application runs as 64-bit on x64 systems, the app should have no problem.

The problem is probably something fairly simple, but we'd need to know a bit more about the nature of the failure. If you provide some details, we should be able to help.

Best Regards,
UltDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Chris.Sieben
#3 Posted : Wednesday, June 13, 2012 3:23:35 PM(UTC)
Groups: Member
Joined: 9/7/2010(UTC)
Posts: 14
Location: St. Cloud, MN

Was thanked: 2 time(s) in 2 post(s)
Thanks for the reply.
In the UltiDev Web Servr Explore, the web service shows up registered under the Legacy Cassini 2.0 Host Process. My web service requires .NET 2, and requires 32 bitness because of legacy COM components. I believe that means it can't run where it's currently registered because it is on a 64 bit machine. So what should I do?

If it were a 32 bit machine, the current registration could be used, correct?

Once we get past the registration, I have also run into another issue in my local testing (on a 32 bit machine). I will get to that in another post.
Ultidev Team
#4 Posted : Wednesday, June 13, 2012 9:21:29 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, Chris.

On 32-bit Windows we believe there would not be a problem - the application would happily hum along under UWS without users noticing. But on x64 systems (where in order to run an app under Cassini in 32-bit mode, a non-supported patched Cassini exe had to be used) you could instruct your users to switch the application into 32-bit mode by simply changing ASP.NET from 2.0 to 1.1 - see attached screenshot. This will still run it as ASP.NET 2.0, but will move it in 32-bit host process, as all .NET 1.1 applications were 32 bit only.

Alternatively, you could create a bat file or a simple program to register the application with UWS, using same AppID as with Cassini: when UWS finds two applications with same ID - one registered as Cassini and another as UWS app, UWS will run UWS-registered one and ignore Cassini-based.

Please let us know if this information was helpful.

Best regards,
UltiDev team.
Ultidev Team attached the following image(s):
Ultidev Team attached the following image(s): Making UltiDev Cassini app run as 32-bit under UWS.png
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Chris.Sieben
#5 Posted : Thursday, June 14, 2012 9:05:47 AM(UTC)
Groups: Member
Joined: 9/7/2010(UTC)
Posts: 14
Location: St. Cloud, MN

Was thanked: 2 time(s) in 2 post(s)
Thanks for the information, I didn't know that changing the .NET version forced it to be 32 bit.

Before seeing your post, I was able to get the web service running by creating a private host process.

Now that it is running with the correct bitness, I am now seeing an error message "Response is not well formed XML".
I have done some fiddling around and found that the when the web service throws SoapExceptions, the response message content is truncated at 512 characters. I'll attach a fiddler session.
File Attachment(s):
webservice soapexception.saz.zip (5kb) downloaded 95 time(s).
Ultidev Team
#6 Posted : Thursday, June 14, 2012 12:34:16 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)
Thank you, Chris.

We will try to reproduce the 512 limit problem tonight (EST) and will let you know what we found.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Chris.Sieben
#7 Posted : Thursday, June 14, 2012 2:15:51 PM(UTC)
Groups: Member
Joined: 9/7/2010(UTC)
Posts: 14
Location: St. Cloud, MN

Was thanked: 2 time(s) in 2 post(s)
here is a fiddler example from Cassini.
File Attachment(s):
webservice soapexception cassini.zip (13kb) downloaded 113 time(s).
Ultidev Team
#8 Posted : Thursday, June 14, 2012 7:11:45 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, Chris.

Fiddler output shows that under UWS response uses chunked encoding for that 500 response, and only one chunk is sent. In some situations UWS does switch to chunked encoding, but this should not be the case here. Our assumption is that you are not doing anything to chunk the response, like making it unbuffered, or anything like that? Our test web service was not generating chunked response.

Please try turning off response compression in UWS and see if that helps. In any case, this is pretty strange and looks like a bug. Could you please create a small test project with this problem reproducible on your system, and then send the project to us? You may also send us your current project, if it can be build w/o configuration.

Thank you,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Chris.Sieben
#9 Posted : Monday, June 18, 2012 1:17:19 PM(UTC)
Groups: Member
Joined: 9/7/2010(UTC)
Posts: 14
Location: St. Cloud, MN

Was thanked: 2 time(s) in 2 post(s)
I have done some further testing with some example code.
I thought it may be due to namespace attributes on the detail node. but further testing in the live code proved that removing the attributes did not help, response is still chunked.
File Attachment(s):
UWS ASP.NET App Redistribution Example.zip (122kb) downloaded 79 time(s).
1 user thanked Chris.Sieben for this useful post.
Ultidev Team on 6/18/2012(UTC)
Ultidev Team
#10 Posted : Monday, June 18, 2012 5:29:50 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)
Chris,

BufferResponse = false attribute on the web method is what turns on chunking. The behavior under UWS differs from IIS, which means we are likely to have a bug. While we work on it, the work-around is to remove "BufferResponse = false".

Thank you for bringing this to our attention,
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.