我知道这个问题在这里被问过很多次,但我找不到我的问题的解决方案。
我试图保存图像到.net c#中的文件夹,但得到此异常:
Access to the path 'C:\inetpub\wwwroot\mysite\images\savehere' is denied.The error occured at mscorlib because at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
我完全控制这个文件夹(savehere)到网络服务和iis_iusrs,甚至完全控制每个人,但仍然得到这个异常。
我试图通过浏览器和通过IIS管理器,仍然没有运气访问
我在Windows服务器2008 R2和IIS 7.5上做,我需要给谁访问?
谢谢