我知道这个问题在这里被多次询问过,但我无法找到解决问题的方法.我正在尝试将图像保存到.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)
Run Code Online (Sandbox Code Playgroud)
我给完全控制该文件夹(savehere)至network service和iis_iusrs,甚至给予了充分的控制,everyone但仍然得到此异常.我尝试通过资源管理器和IIS管理器进行访问,但仍然没有运气
我在Windows Server 2008 R2和IIS 7.5上进行此操作,我需要提供哪些访问权限?
谢谢