UriFormatException from WSE in 2.0, not in 1.1 (need help)

T

torbjorn.maro

I'm developing an ASP.NET 2.0 site wich uses some 1.1 assemblies built
by our team (server and win client is still 1.1, web is 2.0). The
problem is that my use of thiese assemblies - wich uses WSE 2.0 SP3 -
suddenly throws an exception. We can't find any code changes that
should cause this. The exception is:

System.UriFormatException: Invalid URI: The Authority/Host could not
be parsed.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind
uriKind)
at System.Uri..ctor(String uriString)
at Microsoft.Web.Services2.WebServicesClientProtocol.set_Url(String
value)

I have varified that the URI supplied is valid. I have also created
two test websites, one in .net 1.1 and on in 2.0, running the exact
same code as the problem website, and now I find that while the 2.0
test still fails the 1.1 works fine.

The exception occurs when creating a WSE proxy for making web service
calls to our web services. But there are very similar calls already
made before this exception happens. I'm really at a loss here.., we're
trying to set up differen testing environments, but nothing has given
us any clues yet. The site/code worked fine two days ago, then it
stopped working.., what should I do? Anyone?? Is it a problem with
using WSE 2.0.3.0 for .net 1.1 under the 2.0 framework? Any
workarounds?
 
T

torbjorn.maro

:) Finally found the problem. There was a '/' missing in the Url...,
http:/something instead of http://something. This worked fine in 1.1
but not in 2.0

Bugger! A couple of developers lost a days work on this :|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top