webservice call redirected to login page

Discussion in 'ASP .Net' started by fredd00, Jul 2, 2008.

  1. fredd00

    fredd00 Guest

    Hi

    I have a web service located at /service/test.asmx
    my web app is secured by form authentication

    when i call my service i get redirected to login.aspx?returnurl = .../
    service/test.asmx

    the thing is i'm trying to call the web service from another web
    application, i get the error object moved

    in web.config i have set up a location node to allow access to the
    asmx to all users

    but i noticed that i have framework 3.5 node overrides like

    <httpHandlers>

    <remove verb="*" path="*.asmx"/>

    <add verb="*" path="*.asmx" validate="false"
    type="System.Web.Script.Services.ScriptHandlerFactory,
    System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
    PublicKeyToken=31BF3856AD364E35"/>

    <add verb="*" path="*_AppService.axd" validate="false"
    type="System.Web.Script.Services.ScriptHandlerFactory,
    System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
    PublicKeyToken=31BF3856AD364E35"/>

    <add verb="GET,HEAD" path="ScriptResource.axd"
    type="System.Web.Handlers.ScriptResourceHandler,
    System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
    PublicKeyToken=31BF3856AD364E35" validate="false"/>

    </httpHandlers>

    <handlers>

    <remove name="WebServiceHandlerFactory-Integrated"/>

    <remove name="ScriptHandlerFactory"/>

    <remove name="ScriptHandlerFactoryAppServices"/>

    <remove name="ScriptResource"/>

    <add name="ScriptHandlerFactory" verb="*" path="*.asmx"
    preCondition="integratedMode"
    type="System.Web.Script.Services.ScriptHandlerFactory,
    System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
    PublicKeyToken=31BF3856AD364E35"/>

    <add name="ScriptHandlerFactoryAppServices" verb="*"
    path="*_AppService.axd" preCondition="integratedMode"
    type="System.Web.Script.Services.ScriptHandlerFactory,
    System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
    PublicKeyToken=31BF3856AD364E35"/>

    <add name="ScriptResource" preCondition="integratedMode"
    verb="GET,HEAD" path="ScriptResource.axd"
    type="System.Web.Handlers.ScriptResourceHandler,
    System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
    PublicKeyToken=31BF3856AD364E35"/>

    </handlers>

    could they be the problem ?
    has anyone solved this problem ?

    Thanks
     
    fredd00, Jul 2, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. M O J O
    Replies:
    5
    Views:
    342
    Steven Cheng[MSFT]
    Sep 27, 2004
  2. darrel
    Replies:
    4
    Views:
    813
    darrel
    Sep 29, 2004
  3. karthikeyavenkat
    Replies:
    2
    Views:
    676
    Bryce
    Mar 17, 2005
  4. Steve
    Replies:
    2
    Views:
    540
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Nov 1, 2007
  5. Irishmaninusa
    Replies:
    0
    Views:
    157
    Irishmaninusa
    Sep 23, 2004
Loading...

Share This Page