Webrootのフォルダーに書き込もうとしているASP.NETv4Webアプリを開発しました。
私の人生の間、Windows 7にファイルの書き込みを許可させることができず、毎回AccessisDeniedエラーが発生します。
私がフォルダで試したことは
attrib -r /foldernameandpath
attrib -r -s /foldernameandpath
Removing Check from ReadOnly attribute in folder properties
Changed owner to folder to current user whom is also the admin
Changed owner to Everyone
Adding Everyone user to folder with all permissions
Changing the folder to the Public Document directory
Changing to the root of the C drive (Out of desperation)
何も機能していないようです。私がやりたいのは、書き込みが機能することをテストすることだけです。
これで、システムが機能し、正常に書き込まれることがわかりました。これは、同じWebアプリを2台目のマシンにインストールして、PDFをCドライブに問題なく書き込んでいたためです。この2番目のマシンは、書き込みを許可するために取得できません。