Problem with ReportingService.Credentials - Syste.Net.WebException - "The request failed with HTTP s

Discussion in 'ASP .Net' started by Shree, Sep 2, 2006.

  1. Shree

    Shree Guest

    While invoking the web service from client, I am setting the
    credentitals using the following code...

    ReportingService.Credentials =
    System.Net.CredentialCache.DefaultCredentials;

    But in debugger when I check the properties - 'domain', 'user name' and
    'password' set in the ReportingService.Credentials; they are blank!!!


    The exception thrown is Syste.Net.WebException and the description is
    "{"The request failed with HTTP status 401: Unauthorized."}"

    Exception details are as followed:

    System.Reflection.TargetInvocationException was caught
    Message="Exception has been thrown by the target of an invocation."
    Source="mscorlib"
    StackTrace:
    at System.RuntimeMethodHandle._InvokeMethodFast(Object target,
    Object[] arguments, SignatureStruct& sig, MethodAttributes
    methodAttributes, RuntimeTypeHandle typeOwner)
    at System.RuntimeMethodHandle.InvokeMethodFast(Object target,
    Object[] arguments, Signature sig, MethodAttributes methodAttributes,
    RuntimeTypeHandle typeOwner)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
    BindingFlags invokeAttr, Binder binder, Object[] parameters,
    CultureInfo culture, Boolean skipVisibilityChecks)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,
    BindingFlags invokeAttr, Binder binder, Object[] parameters,
    CultureInfo culture)
    at System.Reflection.MethodBase.Invoke(Object obj, Object[]
    parameters)
    at JobService.RunJobs()

    I am new to web services.

    Has anyone faced the similer problem before?
    Please help!!

    TIA
    Shree, Sep 2, 2006
    #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. Skeptical
    Replies:
    1
    Views:
    6,586
    Scott Allen
    May 20, 2005
  2. Edgar D
    Replies:
    1
    Views:
    1,131
    Dan Rogers
    Nov 29, 2004
  3. vigori
    Replies:
    0
    Views:
    249
    vigori
    Jan 5, 2005
  4. Skeptical
    Replies:
    0
    Views:
    203
    Skeptical
    May 18, 2005
  5. Kada
    Replies:
    0
    Views:
    966
Loading...

Share This Page