pwermission issues with web service

Discussion in 'ASP .Net Web Services' started by Scorpius, May 8, 2005.

  1. Scorpius

    Scorpius Guest

    Hi
    I have an application(called crystal app) that loads crystal reports, gets
    the refreshed data and exports the file to a pdf format (for every report a
    thread is spawned). The source report files are read from a fileserver(UNC
    path) and stored to a target UNC path. I am trying to make this aplication
    execute on a trigger from another server (since it was being executed
    manually).
    So I wrote a web service. The web service wrapped the crystall app. I
    impersonated the web service user to a domain admin user by changing the
    web.config.
    The issue is that when i call the web service the wrapped class fails to
    load the report file from the UNC path (it works if i give a local source
    path). To make sure impersonation was working, I wrote code for impersonation
    rather than changing web.config. Still the same result.
    Does this has to do with threads being spawned? Am I mising some other
    permission assignment?
    FYI:
    1. IIS settings - Integrated Windows Authentication is enabled, Anonymous
    access is enabled.
    2. I also tried wrapping the "crystall app exe" (as oppose to the code), but
    same result.

    I would appreciate any help.
    Thanks
    Kuljit
     
    Scorpius, May 8, 2005
    #1
    1. Advertising

  2. "=?Utf-8?B?U2NvcnBpdXM=?=" <> wrote in
    news::
    > Does this has to do with threads being spawned? Am I mising some other


    Probably no.

    > permission assignment?


    Likely yes. Try it as an admin, just as a test.



    --
    Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
    "Programming is an art form that fights back"

    Blog: http://blogs.atozed.com/kudzu
     
    Chad Z. Hower aka Kudzu, May 9, 2005
    #2
    1. Advertising

  3. Scorpius

    Scorpius Guest

    I tried impersonating domain user which is local admin and has access to all
    the shares, but it didn't work.
    Scorpius

    "Chad Z. Hower aka Kudzu" wrote:

    > "=?Utf-8?B?U2NvcnBpdXM=?=" <> wrote in
    > news::
    > > Does this has to do with threads being spawned? Am I mising some other

    >
    > Probably no.
    >
    > > permission assignment?

    >
    > Likely yes. Try it as an admin, just as a test.
    >
    >
    >
    > --
    > Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
    > "Programming is an art form that fights back"
    >
    > Blog: http://blogs.atozed.com/kudzu
    >
     
    Scorpius, May 9, 2005
    #3
  4. "=?Utf-8?B?U2NvcnBpdXM=?=" <> wrote in
    news::
    > I tried impersonating domain user which is local admin and has access to
    > all the shares, but it didn't work.


    Instead of impersonating, try changing in IIS the user you are running under
    to Admin. Just as a test of course - never run this way.


    --
    Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
    "Programming is an art form that fights back"

    Blog: http://blogs.atozed.com/kudzu
     
    Chad Z. Hower aka Kudzu, May 9, 2005
    #4
  5. Scorpius

    Scorpius Guest

    I had tried that too. But no luck.

    "Chad Z. Hower aka Kudzu" wrote:

    > "=?Utf-8?B?U2NvcnBpdXM=?=" <> wrote in
    > news::
    > > I tried impersonating domain user which is local admin and has access to
    > > all the shares, but it didn't work.

    >
    > Instead of impersonating, try changing in IIS the user you are running under
    > to Admin. Just as a test of course - never run this way.
    >
    >
    > --
    > Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
    > "Programming is an art form that fights back"
    >
    > Blog: http://blogs.atozed.com/kudzu
    >
     
    Scorpius, May 9, 2005
    #5
  6. "=?Utf-8?B?U2NvcnBpdXM=?=" <> wrote in
    news::
    > I had tried that too. But no luck.


    You need to trace through the code then and see what errors are being
    returned.


    --
    Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
    "Programming is an art form that fights back"

    Blog: http://blogs.atozed.com/kudzu
     
    Chad Z. Hower aka Kudzu, May 10, 2005
    #6
  7. Scorpius

    Scorpius Guest

    The issue is that when i call the web service the wrapped class fails to
    load the report file from the UNC path (it works if i give a local source
    path).

    "Chad Z. Hower aka Kudzu" wrote:

    > "=?Utf-8?B?U2NvcnBpdXM=?=" <> wrote in
    > news::
    > > I had tried that too. But no luck.

    >
    > You need to trace through the code then and see what errors are being
    > returned.
    >
    >
    > --
    > Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
    > "Programming is an art form that fights back"
    >
    > Blog: http://blogs.atozed.com/kudzu
    >
     
    Scorpius, May 10, 2005
    #7
  8. "=?Utf-8?B?U2NvcnBpdXM=?=" <> wrote in
    news::
    > The issue is that when i call the web service the wrapped class fails to
    > load the report file from the UNC path (it works if i give a local source
    > path).


    But how does it fail? Do you get an exception?


    --
    Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
    "Programming is an art form that fights back"

    Blog: http://blogs.atozed.com/kudzu
     
    Chad Z. Hower aka Kudzu, May 10, 2005
    #8
    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. hocho888
    Replies:
    1
    Views:
    665
  2. Michael Averstegge
    Replies:
    0
    Views:
    4,308
    Michael Averstegge
    Jan 10, 2006
  3. Not Me
    Replies:
    1
    Views:
    3,218
    Not Me
    Jun 5, 2007
  4. Isaias Formacio Serna

    Web Service that calls an external Web Service

    Isaias Formacio Serna, Jan 28, 2004, in forum: ASP .Net Security
    Replies:
    5
    Views:
    267
  5. Leo Violette
    Replies:
    0
    Views:
    1,089
    Leo Violette
    Apr 17, 2009
Loading...

Share This Page