0

我正在编写一个守护进程应用程序。它在位于inetpub/wwwroot/daemon_Folder. 它将在那里更改文件。问题是该文件夹设法阻止应用程序在其上写入。我通过右键单击它properties Window => Web sharing => Share this folder=>然后选择写入权限和可执行文件来更改权限。我什至更改了Control Panel=>Administarative Tools=>IIS=>websites=>that_Folder=>permissions. 但是"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."当我尝试以编程方式保存 doc 文件时,我仍然得到了。有人可以说如何实现这一目标吗?

注意:我使用的是 windows-XP、iis v5.1、visual studio 2010、office 2010、.net 4.0、c#。

4

1 回答 1

1

“尝试读取或写入受保护的内存” - 这不是文件夹权限/特权问题,它是“访问冲突”的变体 - 您的代码试图在不应该的时间/位置访问非托管内存:(

于 2012-08-03T10:41:54.070 回答