Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 65489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:57:16+00:00 2026-05-10T18:57:16+00:00

Trying to get an ASP application deployed; it worked for a while but then

  • 0

Trying to get an ASP application deployed; it worked for a while but then started coming up with errors whenever the page is accessed:

Server Error in ‘/AppNameHere’ Application.

Security Exception 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.

An IISreset didn’t change anything, but rebooting the entire system got it to work for a few hours before the problem came back. The .config for the application is set to full trust.

What could be causing this, and how can it be fixed? (Or, if more information is needed, where do I go looking to find it)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T18:57:17+00:00Added an answer on May 10, 2026 at 6:57 pm

    Found the following on Jason Gaylord’s blog:

    System.Web.AspNetHostingPermission when Accessing Network or Intranet Projects using Visual Studio 2005

    I rebuilt one of my development machines recently and attempted to access a project that I had out on a network share. I continually received project messages about the project not being trusted. I remembered that I had to change something but couldn’t remember what it was until I found an old note I left in Outlook.

    The message I would receive in Visual Studio 2005 was: ASP.NET runtime error: Request for the permission of type ‘System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ failed.

    To resolve this issue, you must change your development machine .net security configuration since you are accessing items across the network. In the event that you need this ability at runtime, you must change the trust level in your config file to full. However, since this is only in development,

    1. I can change my local PC’s security by going to Start > Control Panel > Administrative Tools > Microsoft .NET Framework 2.0 Configuration.

    2. After it fully loads (sometimes takes a bit), fully expand My Computer in the navigation tree and click Runtime Security Policy.

    3. In the right hand pane, choose Adjust Zone Security. Leave the default option (Make changes to this computer) and hit next.

    4. Choose Local Intranet and change the trust level to Full Trust. Then choose next and then finish.

    5. Restart Visual Studio 2005 and you should be all set.

    This worked for me … so hopefully this will work for you!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 147k
  • Answers 147k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If I got it right, you can just remove it… May 12, 2026 at 9:11 am
  • Editorial Team
    Editorial Team added an answer You could always use (modulo error-checking): #include <sstream> ... float… May 12, 2026 at 9:11 am
  • Editorial Team
    Editorial Team added an answer Here are some reflections: Add a doctype to the page… May 12, 2026 at 9:11 am

Related Questions

Is there a way to display the lines in the stack trace for the
I've trying to get an ASP.net (v2) app to work in the debugger and
Looked for an answer to this and didn't see it. This is for IIS
In an asp.net application, i would like to use a webservice to return the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.