create a file in web service



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
.



Relevant Pages

  • Re: ADFS Development Issues
    ... One thing to keep in mind is that if a website is protected by ADFS V1, ... site to be automatically authenticated by our windows application so ... like a web service proxy. ... generated on the server. ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADFS Development Issues
    ... site to be automatically authenticated by our windows application so ... based on redirects and possibly uses forms-based authentication to collect ... web service proxies don't handle this type of thing ... the server based on how it needs to work. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Dynamically Change URL of web service
    ... Microsoft MVP - Windows Client ... > client apps will use the exact same web service, ... What this does is put an entry in the config file, ... >>> How can I dynamically change this when the client app loads. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • RE: Web Service Security
    ... You could encrypt or hash your ... As far as web service authentication/authorisation is concerned you would be ... WSE does a pretty good job of abstracting away most of the ... a windows domain account). ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Web Service, Authentication, Security & Domains
    ... The easy way to do this is with Basic authentication and SSL. ... that does send the password across the wire (although it is ... Windows application will communicate to the Web Service via internet ...
    (microsoft.public.dotnet.security)

Loading