Error while storing to a shared network drive when running website on IIS
Posted
by
vini
on Stack Overflow
See other posts from Stack Overflow
or by vini
Published on 2012-12-17T11:01:47Z
Indexed on
2012/12/17
11:02 UTC
Read the original article
Hit count: 297
System.UnauthorizedAccessException: Access to the path '\\192.168.0.99\c$\DTA\DTA564348.64U20121217161754.dta' is denied.
When i store the file by running on my local asp.net website it works fine and gets stored on the shared network drive
However when i run this through IIS i get the above error
C# Code
StrPath = FilePhypath.ToString();
Web.Config
<location allowOverride="true">
<appSettings>
<add key="FilephyPath" value="\\192.168.0.99\c$\DTA\"/>
</appSettings>
</location>
© Stack Overflow or respective owner