---
title: "security exception"
type: "forum-thread"
url: "https://www.webforum.nu/amne/dotnet/137100-security-exception"
topic: ".NET"
topic_url: "https://www.webforum.nu/amne/dotnet"
author: "doggelito"
published: "2005-11-07T11:54:46.000Z"
updated: "2005-11-07T11:54:46.000Z"
replies: 0
views: 275
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/dotnet/137100-security-exception"
---

# security exception

## #1 — doggelito, 2005-11-07T11:54Z

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)
    {
...
```

Permalänk: https://www.webforum.nu/p/137100

---

Tråden på webben: https://www.webforum.nu/amne/dotnet/137100-security-exception
