Error when setting sessionState cookieless=UseUri

When I set the cookieless attribute of the sessionState to "UseUri" in my Web Service web.config file and then update the Web Reference in my client app I get the following error:

There was an erro downloading http://localhost//StateTesterWebService/Engine.asmx.

The request failed with the error message:

<html>

<head>

<title>Configuration Error</title>

<style>

body {font-family:"Verdanna";font-weight:normal;font-size: .7;color:black;}

p {font-family:"Verdana"

Can anyone expalin



Answer this question

Error when setting sessionState cookieless=UseUri

  • Nat999

    I should have read the article at the link BEFORE I posted my reply!!!

    I used the CookieContainer class as the article recommends and the app works.

    Thanks


  • Artil

    What is recommended behavior

    Can you access a web service from an application that is not a web app

    How would, say, a Windows Forms app access a web service using sessionState

    Would you set cookieless=true in the web.config

    Or is it recommended behavior to always use an ASP.NET web app to access a web service

    If it is, it's rather limiting wouldn't you agree

    Thanks.


  • broccie

    This isn't recommended web service behavior.

    But there is an article on it and the errors and pitfalls you run into:

    http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnservice/html/service08062002.asp

  • Error when setting sessionState cookieless=UseUri