开发者

How to access on file system in WCF Service

开发者 https://www.devze.com 2023-02-07 17:30 出处:网络
Hi Experts I Have a WCF Service that Host it on IIS.I want to write something in a text file using my service but I get an exception 开发者_开发百科:\"Access denied on (file path)...\"

Hi Experts I Have a WCF Service that Host it on IIS.I want to write something in a text file using my service but I get an exception 开发者_开发百科:"Access denied on (file path)..."

how I can get access to file system? thanks


You have to give the account the IIS is running under write access to the directory or file you're trying to write to. Note that this can be a security risk (that's why IIS doesn't have permissions to do this by default).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号