Random Compilation Error - Access Denied to my linked assemblies

R

Raterus

I'm just throwing this error out for my sanity, I've seen posts about this, but never solutions.

I'm using VS.NET 2003, Framework 1.1, and I'm getting a random error about every 1 out of 10 times I try to start to run/debug a project (through Visual Studio)
Server Error in '/Intranet' 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:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net files\intranet\afcfd835\53b5f06a\assembly\dl2\f75c90cf\062cca1c_e423c401\microsoft.web.ui.webcontrols.dll': Access is denied.

---

As you can see it deals with the IE Web Controls assembly being referenced in my project, though I don't really think it is that assemblies problem. If I de-reference it, i'll start getting this error about other assemblies that are referenced. As I said this just randomly pops up, I find if I go back to my source and change something (like adding a space to the end of the line), I can re-build the solution and it'll load up great like nothing ever happened.

Let me assure you I've never messed with any security permissions on any of these directories: Here is the weird thing though, I've located the directory in question, and it has aspnet permissions, but if I look at the file properties, it has no security permissions tab (just a general tab). If I look at other assemblies in other directories, they have the full set of properties I can look at. Its almost like the file is being corrupted being copied from my /bin directory to this location. When the project is in working condition, I've found that these properties are back like they normally should be.

I've tried to create a whole new project/solution and relink all the souce files/assemblies again, that didn't work either. Also i've re-installed the framework and sdk, ran aspnet_regiis -i. Can anyone offer any help? This has really be driving me nuts for the last few months. Thanks for any help!

--Michael



Here are some more details:

---

C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.1.4322\vbc.exe" /t:library /utf8output /R:"c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"/R:"c:\winnt\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net files\intranet\afcfd835\53b5f06a\assembly\dl2\e86aee54\766cc30f_6b28c401\tnc.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net files\intranet\afcfd835\53b5f06a\assembly\dl2\f75c90cf\062cca1c_e423c401\microsoft.web.ui.webcontrols.dll" /R:"c:\winnt\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll" /R:"c:\winnt\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net files\intranet\afcfd835\53b5f06a\assembly\dl2\8c1e6153\e4b80e3c_7028c401\intranet.dll" /R:"c:\winnt\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\winnt\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system..data.dll" /R:"c:\winnt\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseservices.dll" /R:"c:\winnt\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll" /out:"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\intranet\afcfd835\53b5f06a\pwwiblcl.dll" /D:DEBUG=1 /debug+ "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\intranet\afcfd835\53b5f06a\pwwiblcl.0.vb"


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

vbc : error BC31011: Unable to load referenced library 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net files\intranet\afcfd835\53b5f06a\assembly\dl2\f75c90cf\062cca1c_e423c401\microsoft.web.ui.webcontrols.dll': Access is denied.
c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net files\intranet\afcfd835\53b5f06a\assembly\dl2\f75c90cf\062cca1c_e423c401\microsoft.web.ui.webcontrols.dll : error BC31011: Unable to load referenced library 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net files\intranet\afcfd835\53b5f06a\assembly\dl2\f75c90cf\062cca1c_e423c401\microsoft.web.ui.webcontrols.dll': Access is denied.
vbc : error BC30142: Unable to generate a reference to file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net files\intranet\afcfd835\53b5f06a\assembly\dl2\f75c90cf\062cca1c_e423c401\microsoft.web.ui.webcontrols.dll' (use TLBIMP utility to reference COM DLLs): Access is denied.
Line 1: '------------------------------------------------------------------------------
Line 2: ' <autogenerated>
Line 3: ' This code was generated by a tool.
Line 4: ' Runtime Version: 1.1.4322.573
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 Intranet.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:
 
J

Joe Gass

assemblies locked by your virus checker,or by index server???


I'm just throwing this error out for my sanity, I've seen posts about this,
but never solutions.

I'm using VS.NET 2003, Framework 1.1, and I'm getting a random error about
every 1 out of 10 times I try to start to run/debug a project (through
Visual Studio)
Server Error in '/Intranet' 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:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net
files\intranet\afcfd835\53b5f06a\assembly\dl2\f75c90cf\062cca1c_e423c401\mic
rosoft.web.ui.webcontrols.dll': Access is denied.

---

As you can see it deals with the IE Web Controls assembly being referenced
in my project, though I don't really think it is that assemblies problem.
If I de-reference it, i'll start getting this error about other assemblies
that are referenced. As I said this just randomly pops up, I find if I go
back to my source and change something (like adding a space to the end of
the line), I can re-build the solution and it'll load up great like nothing
ever happened.

Let me assure you I've never messed with any security permissions on any of
these directories: Here is the weird thing though, I've located the
directory in question, and it has aspnet permissions, but if I look at the
file properties, it has no security permissions tab (just a general tab).
If I look at other assemblies in other directories, they have the full set
of properties I can look at. Its almost like the file is being corrupted
being copied from my /bin directory to this location. When the project is
in working condition, I've found that these properties are back like they
normally should be.

I've tried to create a whole new project/solution and relink all the souce
files/assemblies again, that didn't work either. Also i've re-installed the
framework and sdk, ran aspnet_regiis -i. Can anyone offer any help? This
has really be driving me nuts for the last few months. Thanks for any help!

--Michael



Here are some more details:

---

C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.1.4322\vbc.exe"
/t:library /utf8output
/R:"c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll"
/R:"c:\winnt\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\s
ystem.web.services.dll"
/R:"c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net
files\intranet\afcfd835\53b5f06a\assembly\dl2\e86aee54\766cc30f_6b28c401\tnc
..dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net
files\intranet\afcfd835\53b5f06a\assembly\dl2\f75c90cf\062cca1c_e423c401\mic
rosoft.web.ui.webcontrols.dll"
/R:"c:\winnt\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml
..dll"
/R:"c:\winnt\assembly\gac\system.web.mobile\1.0.5000.0__b03f5f7f11d50a3a\sys
tem.web.mobile.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322\temporary
asp.net
files\intranet\afcfd835\53b5f06a\assembly\dl2\8c1e6153\e4b80e3c_7028c401\int
ranet.dll"
/R:"c:\winnt\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system
..drawing.dll"
/R:"c:\winnt\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089\system.da
ta.dll"
/R:"c:\winnt\assembly\gac\system.enterpriseservices\1.0.5000.0__b03f5f7f11d5
0a3a\system.enterpriseservices.dll"
/R:"c:\winnt\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web
..dll" /out:"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\intranet\afcfd835\53b5f06a\pwwiblcl.dll" /D:DEBUG=1 /debug+
"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\intranet\afcfd835\53b5f06a\pwwiblcl.0.vb"


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

vbc : error BC31011: Unable to load referenced library
'c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net
files\intranet\afcfd835\53b5f06a\assembly\dl2\f75c90cf\062cca1c_e423c401\mic
rosoft.web.ui.webcontrols.dll': Access is denied.
c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net
files\intranet\afcfd835\53b5f06a\assembly\dl2\f75c90cf\062cca1c_e423c401\mic
rosoft.web.ui.webcontrols.dll : error BC31011: Unable to load referenced
library 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net
files\intranet\afcfd835\53b5f06a\assembly\dl2\f75c90cf\062cca1c_e423c401\mic
rosoft.web.ui.webcontrols.dll': Access is denied.
vbc : error BC30142: Unable to generate a reference to file
'c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net
files\intranet\afcfd835\53b5f06a\assembly\dl2\f75c90cf\062cca1c_e423c401\mic
rosoft.web.ui.webcontrols.dll' (use TLBIMP utility to reference COM DLLs):
Access is denied.
Line 1:
'---------------------------------------------------------------------------
---
Line 2: ' <autogenerated>
Line 3: ' This code was generated by a tool.
Line 4: ' Runtime Version: 1.1.4322.573
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 Intranet.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:
 
R

Raterus

Virus checker locking it...hmmm never thought of that one. I'll try disabling it and see what happens.
 
R

Raterus

Nope it wasn't the virus checker, still received the error. Don't know much about index servers, this is my local pc (windows 2000) that's causing the error, unless this index server runs by default, I've never enabled it.

Virus checker locking it...hmmm never thought of that one. I'll try disabling it and see what happens.
 
J

Joe Gass

I think it is enabled by default, check your services - if it's running try
disabling it.
If your problem goes away then you'll just need to mark certain directories
as not included in the index search.

Nope it wasn't the virus checker, still received the error. Don't know much
about index servers, this is my local pc (windows 2000) that's causing the
error, unless this index server runs by default, I've never enabled it.

Virus checker locking it...hmmm never thought of that one. I'll try
disabling it and see what happens.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top