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

Notification

Icon
Error

web service doesn't work
denisg
#1 Posted : Wednesday, October 10, 2007 3:11:13 AM(UTC)
Groups: Member
Joined: 9/29/2007(UTC)
Posts: 2

Hi

I tested my web service in IIS and it's OK, but when I try to test in the cassini web server, it threw exception:
Parser Error Message: Could not create type 'bla bla bla'.

platform: Framework 2.0
server: Cassini 2.0

...but web site works OK

... web service works ONLY in the web site directory, but it must be in './web_site/ws' directory, but there it doesn't work
Ultidev Team
#2 Posted : Wednesday, October 10, 2007 5:32:40 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 there!

We think we can help you figuring this one out.

Could you please tell us whether './web_site/' folder contains web.config? The reason we ask is that ASP.NET won't load an ASP.NET app from the folder that has no web.config in it. So if you registered your application's root as c:\app, then c:\app folder must contain at least web.config. If in this case c:\app\ws folder has some.asmx, then you should be fine - it would map to the http://host:port/ws/some.asmx.

Also it might help if you tell us what type "Could not create type..." was complaining about: yours or ours/Framework's.

Please let us know if this has helped.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
denisg
#3 Posted : Wednesday, October 10, 2007 5:47:38 AM(UTC)
Groups: Member
Joined: 9/29/2007(UTC)
Posts: 2

1. ./web_site contain web.config and ./web_site/ws also contain web.config
2. there is web service:

namespace SymbioTest.Web.ws
{
[WebService(Namespace="http://www.symbioware.com/XmlServices")]
public class swadm : System.Web.Services.WebService
{
....
}
....
}

Could not create type SymbioTest.Web.ws.swadm

...

I just need for work with website and services in the IIS and in the Cassini.
And I don't want make global changes in source code to force service work with Cassini
Ultidev Team
#4 Posted : Wednesday, October 10, 2007 5:42:34 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)
We can't see anything wrong with what you do. If can send us your project, or better a small test project that reproduces the issue, then we probably would be able to tell what's going on. If you are interested in sending us the project, please email us so we could provide you with email address where to send your files.

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.