Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / May 2005

Tip: Looking for answers? Try searching our database.

pwermission issues with web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Scorpius - 08 May 2005 14:09 GMT
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
Chad Z. Hower aka Kudzu - 09 May 2005 11:19 GMT
> 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 - 09 May 2005 13:46 GMT
I tried impersonating domain user which is local admin and has access to all
the shares, but it didn't work.
Scorpius

> > Does this has to do with threads being spawned? Am I mising some other
>
[quoted text clipped - 9 lines]
>
> Blog: http://blogs.atozed.com/kudzu
Chad Z. Hower aka Kudzu - 09 May 2005 21:36 GMT
> 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 - 09 May 2005 22:02 GMT
I had tried that too. But no luck.

> > I tried impersonating domain user which is local admin and has access to
> > all the shares, but it didn't work.
[quoted text clipped - 7 lines]
>
> Blog: http://blogs.atozed.com/kudzu
Chad Z. Hower aka Kudzu - 10 May 2005 09:25 GMT
> 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 - 10 May 2005 13:18 GMT
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).

> > I had tried that too. But no luck.
>
[quoted text clipped - 6 lines]
>
> Blog: http://blogs.atozed.com/kudzu
Chad Z. Hower aka Kudzu - 10 May 2005 16:44 GMT
> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.