我在Windows 7上使用IIS 7遇到了一个奇怪的问题,它无法加载我正在使用的dll。然而,似乎只有在一段时间后才会出现这种情况;它在正常工作一段随机时间后开始抛出此消息:
Could not load file or assembly 'Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. Access is denied.
如果我删除dll并重新添加它,它会再次正常工作一段时间,然后停止工作。这在asp.net网页和web服务中都发生了,在普通的.net桌面程序中却没有问题。
这只发生在Mono.Security中,而不是我正在使用的任何其他dll(我正在使用依赖于Mono.Security的Npgsql)。
如果有人能提供一些见解,那就太好了。