简体   繁体   中英

Could not load file or assembly 'Data' or one of its dependencies. Access is denied

I am trying to run the my asp.net mvc project on IIS 7 , I am trying to impersonate the user. Where Data is the data project of my application, i have added the dll reference to the asp.net mvc project

I tried giving full control to very one to this folder

C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET File.

Any clue on how to fix this error?

Try running aspnet_regiis exe in the framework folder. With the -ga option, that will grant the impersonation user all the relevant permissions.

You could try using Process Monitor from Windows SysInternals, this will tell you exactly which file is getting the access denied message. I've used this tool on many occations to find access problems with files and the registry.

我在GAC中添加了data.dll,并解决了该问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM