Re: How to access UNC from ASP.NET application?



That is not a UNC path but a mapped drive. Since asp.net runs in its own profile - the mappings you have done interactively are not known.

Use a UNC path like \\server\share...


-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

I have problem writing content to a UNC file from my ASP.NET 1.1
application. This is on Windows server 2003
The event log says "X:\temp\abc.txt path not found" and stuff.
Note that I have allowed Full Control permission on abc.txt on the
other machine.

any idea?

thanks,
Vince


.



Relevant Pages

  • Re: Roaming profile w/out terminal services clients?
    ... Of course they can - put the UNC path for the network share where the ... profiles will be placed into the "profile" in the properties of the user ... using %username% lets you copy this user account with the profile path ...
    (microsoft.public.windows.server.active_directory)
  • Re: Drive Mapping Script Not working
    ... containing the UNC path of the remote share. ... Try to check those keys, and try to check the permission ... Try to check the "default user" mappings, ... >> With this method you may list all the mapped drives paths and letters (if ...
    (microsoft.public.windows.server.scripting)
  • Re: Run as and Pathfile not found
    ... IIRC = If I Recall Correctly ... I'm not sure how to make system wide mappings, ... at some point Windows switched from system wide drive mappings to ... >> Using the UNC path should help. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Run as and Pathfile not found
    ... What is IIRC and how can i make the Mappings system wide as opposed to user ... > Using the UNC path should help. ...
    (microsoft.public.windowsxp.network_web)