security exception

.NET

0 svar · 280 visningar · startad av doggelito

Medlem sedan juni 20003 076 inlägg
Trådstart#1

får detta:

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. 

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

försöker ärva en klass som finns i en dll som ligger i Bin-mappen

public partial class _Default : Procent.Web.Access.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
...
271 ms totalt · 4 externa anrop · v20260731065814-full.d34c6d5a
122 ms — deklarationer (db)
0 ms — hämta statistik (cache)
125 ms — hämta tråd, inlägg och bilagor (db)
126 ms — ändringar (db)