Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > pwermission issues with web service

Reply
Thread Tools

pwermission issues with web service

 
 
Scorpius
Guest
Posts: n/a
 
      05-08-2005
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
 
Reply With Quote
 
 
 
 
Chad Z. Hower aka Kudzu
Guest
Posts: n/a
 
      05-09-2005
"=?Utf-8?B?U2NvcnBpdXM=?=" <(E-Mail Removed)> wrote in
news:(E-Mail Removed):
> 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
 
Reply With Quote
 
 
 
 
Scorpius
Guest
Posts: n/a
 
      05-09-2005
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=?=" <(E-Mail Removed)> wrote in
> news:(E-Mail Removed):
> > 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
>

 
Reply With Quote
 
Chad Z. Hower aka Kudzu
Guest
Posts: n/a
 
      05-09-2005
"=?Utf-8?B?U2NvcnBpdXM=?=" <(E-Mail Removed)> wrote in
news:(E-Mail Removed):
> 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
 
Reply With Quote
 
Scorpius
Guest
Posts: n/a
 
      05-09-2005
I had tried that too. But no luck.

"Chad Z. Hower aka Kudzu" wrote:

> "=?Utf-8?B?U2NvcnBpdXM=?=" <(E-Mail Removed)> wrote in
> news:(E-Mail Removed):
> > 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
>

 
Reply With Quote
 
Chad Z. Hower aka Kudzu
Guest
Posts: n/a
 
      05-10-2005
"=?Utf-8?B?U2NvcnBpdXM=?=" <(E-Mail Removed)> wrote in
news:(E-Mail Removed):
> 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
 
Reply With Quote
 
Scorpius
Guest
Posts: n/a
 
      05-10-2005
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=?=" <(E-Mail Removed)> wrote in
> news:(E-Mail Removed):
> > 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
>

 
Reply With Quote
 
Chad Z. Hower aka Kudzu
Guest
Posts: n/a
 
      05-10-2005
"=?Utf-8?B?U2NvcnBpdXM=?=" <(E-Mail Removed)> wrote in
news:(E-Mail Removed):
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does timer in Web Service Global.asax block my Web Service from processing web-site requests? Leo Violette ASP .Net Web Services 0 04-17-2009 12:39 AM
'web service call failed: 500' using ajax hovermenu and web service Not Me ASP .Net 1 06-05-2007 03:09 PM
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM
Calling a Web Service using Axis, from within an Axis Web Service running under Tomcat hocho888 Java 1 04-29-2005 08:26 PM
Web Service that calls an external Web Service Isaias Formacio Serna ASP .Net Security 5 02-02-2004 07:38 AM



Advertisments