Problem calling method when cookieless is set to true



I have an ASP.NET website that includes a web service in my project as
well. The web service is a class within my website and not a separate
project.

I am trying to call a method in my web service locally on my
development PC. If I set cookieless to true in the web.config file and
then use the test form in the browser to try out the method, the
method fails. I get the following message in the browser:

System.InvalidOperationException: Missing parameter: emailAddress

My method takes two string parameters. One is emailAddress and the
other is the password. The parameters are your basic string parameters
with no "ref" or anything else attached to the parameter signature.

When this method fails, I never even get to the breakpoint at the
beginning of the method. So this tells me that something wrong is
going on with Http Post.

But if I set cookieless to false, the method succeeds and if I have a
breakpoint set in VS, the breakpoint gets hit.

To complicate matters, in my web.config file I had to include the
following:

<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
</protocols>
</webServices>

If I don't not include this, I get a different message like:

Request format is unrecognized for URL unexpectedly ending in '/
LogonBasic'

So, first I correct this problem by adding the protocols but
cookieless set to true still causes the error.

What is the problem?

Thanks for your help.
Polaris

.



Relevant Pages

  • RE: Problem calling method when cookieless is set to true
    ... The web service is a class within my website and not a separate ... I never even get to the breakpoint at the ... But if I set cookieless to false, the method succeeds and if I have a ... first I correct this problem by adding the protocols but ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: Web solution with Web Service does not start Web Service
    ... These 5 solutions consist of 3 website version and two web application ... Each solution has a web app and a web service. ... port specified in the web reference, and set the next statement to the one ...
    (microsoft.public.vsnet.ide)
  • Re: Cant add web reference
    ... To disable dynamic ports, highlight the website and in the property grid set "Use dynamic ports" to false. ... One trick to get the web site with the web service running is to set that web site as the active project and select Start without Debugging from the Debug menu. ...
    (microsoft.public.dotnet.distributed_apps)
  • Deploying Web Service to my hosting services server
    ... When I deploy my web service to my website on my hosting service, ... errors out and cannot get to the database on that server. ... The Web Service works great on my development machine. ... startRecord, Int32 maxRecords, String srcTable, IDbCommand command, ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: WSE 2.0 1000 Foot level Question Easy one
    ... I can Use SecureConversation between the Website and the WebService ... I can keep that info in a session variable, ... Passing the user account and password to the web service so the web ...
    (microsoft.public.dotnet.framework.webservices.enhancements)