IIS 7无法加载DLL(拒绝访问) [英] IIS 7 unable to load DLL (Access Denied)

查看:1982
本文介绍了IIS 7无法加载DLL(拒绝访问)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在与IIS 7的Windows 7,这个奇怪的问题,即它不能加载我使用的DLL。然而,似乎只有一段时间后发生;直到它开始抛出这条消息能正常工作的时间一些随机量:

I'm having this weird problem with IIS 7 on Windows 7, where it can't load a dll I'm using. However, it seems to only happen after a while; it works fine for some random amount of time until it starts throwing this message:

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桌面程序正常工作。

If I delete the dll and re-add it, it works fine for another length of time, and later stops working again. This is happening in both an asp.net webpage as well as a web service, however in a normal .net desktop program it works fine.

这仅Mono.Security发生,不与我使用的任何其他DLL(我使用Npgsql这是依赖于Mono.Security)。

This only happens with Mono.Security, not with any other dll I'm using (I'm using Npgsql which is dependent on Mono.Security).

如果任何人都可以提供一些洞察到这一点,将是巨大的。

If anyone could offer some insight into this, it would be great.

推荐答案

检查文件权限的DLL文件/文件夹,以确保您的ASP.NET程序池帐户可以访问该文件。

Check file permissions on the DLL file / folder, to make sure your ASP.NET AppPool account can access the file.

确认文件的权限不要从继承父 - 这一点可能会被重设这些

Make sure the file's permissions don't inherit from parent - something might be resetting these.

这篇关于IIS 7无法加载DLL(拒绝访问)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆