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 6389305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:23:14+00:00 2026-05-25T03:23:14+00:00

I have a .net v4 web app which uses impersonation as our web server

  • 0

I have a .net v4 web app which uses impersonation as our web server and database server are on separate physical servers.

When we attempt to run the application we receive a server error

    Could not load file or assembly '######' or one of its dependencies. Access is denied. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.FileLoadException: Could not load file or assembly '######' or one of its dependencies. Access is denied.

Looking at the stack trace it seems the application doesn’t have access to

C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET 

If I grant the impersonation user permissions on this folder the application works fine. But if we compile the application down to 3.5, this obviously uses the .net 2 runtime and we don’t have to give the impersonation user permissions on the folder “Temporary ASP.NET” in the .net 2 framework folder.

So my question is why do we have to give permissions on this folder for .net v4, but for anything less it works fine?

  • 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. Editorial Team
    Editorial Team
    2026-05-25T03:23:15+00:00Added an answer on May 25, 2026 at 3:23 am

    This is now sorted, it was found to be a server config issue within the global web config. We should have been using the E drive for our compliation directory and not the C drive

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

Sidebar

Related Questions

I have a simple ASP.NET web app which uses a WCF Client to talk
I have a Silverlight web app which uses ASP.net Website administration tool for user
I have a SQL Server 2000, C# & ASP.net web app. We want to
I have a web app (.NET 3.5) which is sending notifications by email to
I have an Asp.Net web app which users include a script tag in their
I have a asp.net 2.0 web app which calls a long running stored proc
We have an intranet asp.net web application which uses the OOTB ASP.net membership and
I have an ASP .NET web application which uses Forms Authentication. Let's call this
I have a asp.net web forms app that uses System.Web.Caching.Cache to cache xml data
I have this .NET web app that draws a table in Page_Load. Then after

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.