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

Notification

Icon
Error

Problem with Web Services - HTTP Error
ivan1979
#1 Posted : Monday, March 23, 2009 1:50:30 AM(UTC)
Groups: Member
Joined: 3/23/2009(UTC)
Posts: 7
Location: italy

Hello.

first of all: good software.
Anyway i have a problem working with web services .asmx (with IIS no problem), i have this error msg:

Server Error in '/' Application.
HTTP Error 403 - Forbidden.
Version Information: Cassini Web Server 2.1.4.3


Cassini settings:

Application Status Port Number Physical Path
RDSWebService Running 4913 C:\Inetpub\wwwroot\RDSWebService

N.B. i work succesfully with an aspx web application, simply if i move web folders and files application into above path it works fine.

I'm using last cassini vs2008 version (v. 2.0.9)

Thanks for your help.
Ivan
ivan1979
#2 Posted : Monday, March 23, 2009 3:56:56 AM(UTC)
Groups: Member
Joined: 3/23/2009(UTC)
Posts: 7
Location: italy

Good news,

now it works fine, it has been enough to enter url localhost:myport/service.asmx (i had to remove application's name from the url) instead of localhost:myport/RDSWebService/service.asmx (IIS hosted in this mode).
So, i have another question: how do i have to configure cassini to can see my web service with url containing application's name?

Thanks
Ivan
Ultidev Team
#3 Posted : Monday, March 23, 2009 4:58:54 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)
Hello, Ivan.

Thank you much for the positive feedback.

Current version of UltiDev Cassini does not support multiple applications on the same port, which makes it impossible to register two applications like http://host:1234/app1 and http://host:1234/app2. Since each app has to have its unique port, we didn't implement "virtual folder" feature in UltiDev Cassini (although later we found out that there is another good reason for virtual paths - cookie paths are not port-specific and therefore shared between all apps hosted by Cassini on the same machine).
Virtual folders and port sharing support will be a part of the next release of UltiDev Cassini (which does not have a release schedule yet), but for now the root of your application has to have at least "Bin" folder and "web.config" file. The rest of the files can be placed in a sub-folder inside application's root.

Please let us know if this information was helpful.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
ivan1979
#4 Posted : Tuesday, March 24, 2009 11:26:45 PM(UTC)
Groups: Member
Joined: 3/23/2009(UTC)
Posts: 7
Location: italy

Thanks very much to UltiDev Team, and good news for the future.

Anyway a my question remains: why do i have to omit the application's name from the URL to be able to access the web service?
e.g.: http://localhost:8080/Service.asmx works BUT http://localhost:8080/MyApplicationName/Service.asmx doesn't.

Thanks in advance for your help.

Best regards,
Ivan.
Ultidev Team
#5 Posted : Wednesday, March 25, 2009 6:47:10 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)
Hello, Ivan.

To have "http://localhost:8080/MyApplicationName/Service.asmx" URL, the folder with your application would have to have this structure:
/ (app root)
___Bin (folder)
___web.config (file)
___MyApplicationName (folder)
______Service.asmx (file)

In other words, we currently require that the root of the app (containing Bin folder and web.config file) is not in a sub-folder. The reason we have done that is because we felt that if we allowed subfolders, it would lead people to believe they could register multiple applications on the same port, as long as they are in different folders - just like IIS does. Since our web server would still not allow multiple apps in different sub-folders, we didn't see the reason to keep that ambiguity. We now know that there is a good reason to have a sub-folder - it is to avoid sharing cookies between multiple apps, but we missed this issue back when we were designing the system.

Best regards,
UltiDev Team
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
ivan1979
#6 Posted : Wednesday, March 25, 2009 11:54:11 PM(UTC)
Groups: Member
Joined: 3/23/2009(UTC)
Posts: 7
Location: italy

Ok,
now it's working as i want.
Thank youi very much.

Regards
Ivan
Ultidev Team
#7 Posted : Thursday, March 26, 2009 4:42:15 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)
Not a problem, Ivan.
We are always glad to help.

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
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.