Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Access Denied Question

  1. #1
    ssgumby is offline Senior Member
    Join Date
    Feb 2009
    Posts
    683

    Default Access Denied Question

    Would anyone have any insight into what this error is? Here is the background. This site is my staging site. Everything worked fine but we uploaded a new code base with some modifications to it and now this error wont allow me to access the site. The code changes work locally and really wouldnt be impactful here.

    The only thing I can think of is this. Originally I had everything pre-compiled. When this was uploaded it was deleted first from the server and then ASPDNSF was freshly uploaded again without precompiling.


    Code:
    [UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))]
    
    [FileLoadException: Could not load file or assembly 'App_Licenses, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.]
       System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
       System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
       System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
       System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
       System.Reflection.Assembly.Load(String assemblyString) +28
       System.Web.Compilation.BuildManager.LoadLicensesAssemblyIfExists() +8902544
       System.Web.Compilation.BuildManager.Initialize() +495
       System.Web.Compilation.BuildManager.InitializeBuildManager() +267
       System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +224
    
    [HttpException (0x80004005): Could not load file or assembly 'App_Licenses, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8890735
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259

  2. #2
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    Did you give the ASP.NET or Network Service a read permission to your root? If you are compiling a project or your solution, sometimes, it's necessary to reset the site via IISRESET or touching the web.config (adding something and then removing the changes, then saving the web.config to automatically throw a reset request)