Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

System.Web.AspNetHostingPermission - Unblocking AjaxControlToolkit.dll

$
0
0

I downloaded the AjaxControlToolkit, version 3.5.60919 and am using it in my web project.  I published my code and deployed to a web server where I get this error when I go to a page in the website

"Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."

I looked at the properties of the DLL and there is a Security section underneath the attributes on the General tab that says:

"This file came from another computer and mightr be blocked to help protect this computer."

There is an Unblock button so if I click it (on file on the web server), the problem goes away.  However, when I publish my project, the DLL gets blocked again.  this DLL is in source control (TFS) and I checked and it is not blocked there.  So this appears to happen only when I am publishing via Visual Studio.

This is getting annoying.  I've never had this issue before.  How can I prevent this from happening?  I don't think I need to manually unblock the file every time I publish.


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>