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 2 3580
Try this: http://myserver:myport/myWebService....ssword=asdkjfl
Does this work?
"Polaris431" wrote:
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
I have the same issue. I tried a simple web application and get the same
error. Yes the http://myserver:myport/myWebService....ssword=asdkjfl
url worked. The web service seems to work correctly, must be something in
our config or authenication??
steven
"Erulu" wrote:
Try this:
http://myserver:myport/myWebService....ssword=asdkjfl
Does this work?
"Polaris431" wrote:
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Lokkju |
last post by:
I am pretty much lost here - I am trying to create a managed c++
wrapper for this dll, so that I can use it from c#/vb.net, however, it
does not conform to any standard style of coding I have seen....
|
by: Kris van der Mast |
last post by:
Hi,
I've created a little site for my sports club. In the root folder there are
pages that are viewable by every anonymous user but at a certain subfolder
my administration pages should be...
|
by: Bob Skutnick |
last post by:
Greetings,
I'm hoping someone has experienced a problem I'm having:
I have an existing ASP application (working fine) that
uses an SSL server certificate. My user community is made
up of both...
|
by: Anthony Williams |
last post by:
Hi gang,
This one looks like a bug :o(
As you may or may not know, setting session management in web.config to use
cookieless sessions causes the ASP.NET runtime to munge a session ID into...
|
by: Vishal |
last post by:
Hello,
I already asked this question in the ASP.NET forums,
but no help came. So I am hoping that somebody can help me
out. This is really very URGENT me.
For my e-commerce application, I...
|
by: rk325 |
last post by:
I have a question about cookies & browser permissions and turning off
cookies when creating a web site (cookieless mode in web.config).
I have a web site that of course uses Session variables....
|
by: bilosta |
last post by:
Hello to everybody
I'm new in win apllications and C#. I have a problem with Threading.
Here is my problem:
I have a form with button named: BupisiStudente, when I click on it a
call next...
|
by: samadams_2006 |
last post by:
Hello,
I have a peculiar problem that I'm hoping someone can help me out with.
I have a simple enough Web Application written in VB.Net via Visual
Studio 2003. It simply displays a Web Form...
|
by: shahiz |
last post by:
This the error i get when i try to run my program
Error: Unable to realize com.sun.media.amovie.AMController@18b81e3
Basically i have a mediapanel class that initialize and play the media as...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |