Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > create a file in web service

Reply
Thread Tools

create a file in web service

 
 
keith
Guest
Posts: n/a
 
      10-27-2008
My environment is Windows XP SP2.

I created a web service, then added

authentication mode="Windows", identity impersonate="true" in its config file.

I disabled Anonymous access for the WS in Authentication Methods in
Directory Security and select Integrated Windows authentication

In the web service there is a function to save data to a text file.

In VS 2005 IDE, I created a test win app that calls the function in the web
service.

I stepped in the web service and when ran the statement in the web service

System.IO.Stream sm = new System.IO.FileStream(c:\temp\test.txt,
System.IO.FIleMode.Create);

It threw

Access to the path 'C:\\temp\test.txt' is denied.

I ran the WS with my log in and I checked ACL on the file and found out
that I have full access on it.


Can you help?

Thanks

Keith
 
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
Error Consuming Web Service from WIndows application when WebService is using Custom Service Account ( Create an Application Pool with a Custom Identity) DNB ASP .Net Security 1 01-22-2008 09:08 PM
Error Consuming Web Service from WIndows application when WebService is using Custom Service Account ( Create an Application Pool with a Custom Identity) DNB ASP .Net Web Services 1 01-20-2008 01:47 PM
create file IO file via web service opposite the hebrew characters hadarmorchi@gmail.com ASP .Net Web Services 1 08-02-2006 01:08 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



Advertisments