pwermission issues with web service

S

Scorpius

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
 
S

Scorpius

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

Chad Z. Hower aka Kudzu

=?Utf-8?B?U2NvcnBpdXM=?= said:
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.
 
C

Chad Z. Hower aka Kudzu

=?Utf-8?B?U2NvcnBpdXM=?= said:
I had tried that too. But no luck.

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

Scorpius

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).
 
C

Chad Z. Hower aka Kudzu

=?Utf-8?B?U2NvcnBpdXM=?= said:
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?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top