网站 DLL 访问被拒绝 [英] Website DLL Access Denied

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

问题描述

我刚刚继承了一个网站,虽然构建中有错误(在几个地方缺少 import Microsoft.VisualBasic 并且我已经修复了这些错误)

I just recently inherited a website and while there are errors in the build (its missing import Microsoft.VisualBasic in a few places and i have fixed these)

这个网站没有解决方案文件,所以我只是添加了我自己的并导入了网站,

There was no solution files with this website so i have just added my own and imported the website,

我现在发现的是,当我建立网站时,我得到了

what i am finding now is that when i build the website i get

Error   1   Could not load file or assembly 'ActiveReports.Chart, Version=6.2.3681.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff' or one of its dependencies. Access is denied.       

我知道这不是权限问题,因为我已经进入并编辑了权限以允许每个人访问该文件.

I know its not a permissions issue as i have gone in and edited the permissions to allow for everyone to access the file.

我正在 Windows 7 x64 机器上工作,但是如果我查看它针对 x86 构建的 DLL,这是否会导致问题,或者可能是我已将文件从开发服务器复制到我的本地机器.

I am working on a Windows 7 x64 machine, but if i look at the DLL its targeted towards a x86 build, could this be causing the problem OR could it be that i have copied the files across from a dev server to my local machine.

我试过用谷歌搜索,大部分结果都显示为文件权限.

I have tried to google it and most of the results are showing as permissions to the file.

你能给我的任何帮助都会很棒.

any help you could give me would be great.

谢谢

更新
经过更多调查后,我在项目的 web.config 中发现了这一点并且 Bin 文件夹正在尝试使用此用户进行连接.
因此作为用户的权限在我的机器上无效

Update
After some more investigation i found this in the web.config of the project <identity impersonate="true" password="yyy" userName="xxx" /> and the Bin folder was trying to connect using this user.
hence the Permissions as the user was not valid on my machine

我现在学到了一个非常重要的教训,始终验证您继承的网站的 Web.Config.

I have now learned a very big lesson, always validate the Web.Config of a website you inherit.

推荐答案

愚蠢的我需要将 DLL 添加到 GAC.

Stupid me the DLLs needed to be added to the GAC.

这篇关于网站 DLL 访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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