webForumDet fria alternativet
Logga in / Bli medlem

security exception

.NET

0 svar · 275 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)
    {
...
254 ms totalt · 4 externa anrop · v20260731065814-full.51f67c91
124 ms — deklarationer (db)
0 ms — hämta statistik (cache)
126 ms — hämta tråd, inlägg och bilagor (db)
125 ms — ändringar (db)