Compile Problem: BC31011- Access is denied

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Brad (nospam_at_co.lane.or.us)
Date: 11/15/04


Date: Mon, 15 Nov 2004 14:06:40 -0800

After compiling my asp.net project I'm receiving a "BC31011 - Access is
denied" error when attempting to run or debug. The only thing that seems to
resolve problem is IISReset. After a reset my project runs fine for several
compiles then the error starts up again...and another iisreset. I seem to
recall a similar issue a long time back which required turning off indexing,
which I have had off since (I just re-checked to confirm it is off).

Full error message is below.
Running .Net 1.1 on Win2003 server

- Brad

===============================================
Server Error in '/SIDO' Application.

Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.

Compiler Error Message: BC31011: Unable to load referenced library
'c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\sido\afa6eed6\2910c648\assembly\dl2\5450e5d4\ca86261e_b449c401\county.
dll': Access is denied.

Source Error:

[No relevant source lines]

Source File: vbc : Line: 0

Show Detailed Compiler Output:

c:\windows\system32\inetsrv>
"c:\windows\microsoft.net\framework\v1.1.4322\vbc.exe" /t:library
/utf8output
/R:"c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.w
eb.dll"
/R:"c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"
/R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\sido\afa6eed6\2910c648\assembly\dl2\2730c84d\14e21f86_5bcbc401\county.
web.controls.dll"
/R:"c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a
\system.web.services.dll"
/R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\sido\afa6eed6\2910c648\assembly\dl2\5450e5d4\ca86261e_b449c401\county.
dll"
/R:"c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.x
ml.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\sido\afa6eed6\2910c648\assembly\dl2\545ae25e\be5d7576_ac4cc401\county.
exception.dll"
/R:"c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\syst
em.drawing.dll"
/R:"c:\windows\assembly\gac\system.web.ui.mobilecontrols.adapters\1.1.0.0__b
03f5f7f11d50a3a\system.web.ui.mobilecontrols.adapters.dll"
/R:"c:\windows\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\s
ystem.web.mobile.dll"
/R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\sido\afa6eed6\2910c648\assembly\dl2\b9c8a8ca\04427f86_5bcbc401\sido.we
b.dll" /R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\sido\afa6eed6\2910c648\assembly\dl2\c3facbc2\7a9fd596_b1c5c401\county.
dataconnecter.dll"
/R:"c:\windows\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.
data.dll"
/R:"c:\windows\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11
d50a3a\system.enterpriseservices.dll"
/R:"c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\sido\afa6eed6\2910c648\assembly\dl2\5f320a44\10ba3786_5bcbc401\sido.da
taaccess.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\sido\afa6eed6\2910c648\bd5mutej.dll" /D:DEBUG=1 /debug+
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\sido\afa6eed6\2910c648\bd5mutej.0.vb"

Microsoft (R) Visual Basic .NET Compiler version 7.10.6001.4
for Microsoft (R) .NET Framework version 1.1.4322.2032
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.

vbc : error BC31011: Unable to load referenced library
'c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\sido\afa6eed6\2910c648\assembly\dl2\5450e5d4\ca86261e_b449c401\county.
dll': Access is denied.
c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\sido\afa6eed6\2910c648\assembly\dl2\5450e5d4\ca86261e_b449c401\county.
dll : error BC31011: Unable to load referenced library
'c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\sido\afa6eed6\2910c648\assembly\dl2\5450e5d4\ca86261e_b449c401\county.
dll': Access is denied.
vbc : error BC30142: Unable to generate a reference to file
'c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net
files\sido\afa6eed6\2910c648\assembly\dl2\5450e5d4\ca86261e_b449c401\county.
dll' (use TLBIMP utility to reference COM DLLs): Access is denied.

Show Complete Compilation Source:

Line 1:
'---------------------------------------------------------------------------

---
Line 2:    ' <autogenerated>
Line 3:    '     This code was generated by a tool.
Line 4:    '     Runtime Version: 1.1.4322.2032
Line 5:    '
Line 6:    '     Changes to this file may cause incorrect behavior and will
be lost if
Line 7:    '     the code is regenerated.
Line 8:    ' </autogenerated>
Line 9:
'---------------------------------------------------------------------------
---
Line 10:
Line 11:   Option Strict Off
Line 12:   Option Explicit On
Line 13:
Line 14:   Imports Microsoft.VisualBasic
Line 15:   Imports System
Line 16:   Imports System.Collections
Line 17:   Imports System.Collections.Specialized
Line 18:   Imports System.Configuration
Line 19:   Imports System.Text
Line 20:   Imports System.Text.RegularExpressions
Line 21:   Imports System.Web
Line 22:   Imports System.Web.Caching
Line 23:   Imports System.Web.Security
Line 24:   Imports System.Web.SessionState
Line 25:   Imports System.Web.UI
Line 26:   Imports System.Web.UI.HtmlControls
Line 27:   Imports System.Web.UI.WebControls
Line 28:
Line 29:   Namespace ASP
Line 30:
Line 31:
<System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()>  _
Line 32:       Public Class Global_asax
Line 33:           Inherits SIDO.Web.Global
Line 34:
Line 35:           Private Shared __initialized As Boolean = false
Line 36:
Line 37:           Public Sub New()
Line 38:               MyBase.New
Line 39:               If (ASP.Global_asax.__initialized = false) Then
Line 40:                   ASP.Global_asax.__initialized = true
Line 41:               End If
Line 42:           End Sub
Line 43:       End Class
Line 44:   End Namespace
Line 45:
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032


Relevant Pages

  • Framework SP2
    ... We applied .Net framework to our dev server and now we get the compilation ... Microsoft Visual Basic .NET Compiler version 7.10.6310.4 ... Line 14: Imports Microsoft.VisualBasic ...
    (microsoft.public.dotnet.framework)
  • RE: Compile Problem: BC31011- Access is denied
    ... An error occurred during the compilation of a resource required ... > dll': Access is denied. ... > Line 14: Imports Microsoft.VisualBasic ... > Line 29: Namespace ASP ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: redundant imports
    ... inclusion of modules in c is a purely preprocessing textual matter (compilation is deferred to after the fact), i guess, so that such things are possible. ... That doesn't change the fact that code-1 needs names from code-3, and just because code-3 is imported elsewhere is no reason to think that code-1 magically gets its names too. ...
    (comp.lang.python)
  • Error During compilation
    ... I m using vb.net and framework 1.1 whithout VisualStudio. ... 'My Imports NameSpaces ... Imports Microsoft.VisualBasic 'compilation and code generation for Visual ... Public Shared Sub doExcelExport(ByVal myDataGrid As Control) ...
    (microsoft.public.dotnet.framework.aspnet)
  • Random Compilation Error - Access Denied to my linked assemblies
    ... An error occurred during the compilation of a resource required to service this request. ... Microsoft Visual Basic .NET Compiler version 7.10.3052.4 ... for Microsoft.NET Framework version 1.1.4322.573 ... Line 14: Imports Microsoft.VisualBasic ...
    (microsoft.public.dotnet.framework.aspnet)