开发者

How to access on file system in WCF Service

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜