Access is denied: 'microsoft.web.ui.webcontrols'

C

Chuck Farah

I keep getting this error running a VB .NET web forms
application. I exit visual studio kill the aspnet_wp.exe
process and restart vs and works again. Any help would be
appreciated. Just to re-iterate not a consitent error.


Configuration Error
Description: An error occurred during the processing of a
configuration file required to service this request.
Please review the specific error details below and modify
your configuration file appropriately.

Parser Error Message: Access is
denied: 'microsoft.web.ui.webcontrols'.

Source Error:


Line 196: <add
assembly="System.EnterpriseServices, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 197: <add
assembly="System.Web.Mobile, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198: <add
assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>


Source File: c:\winnt\microsoft.net\framework\v1.1.4322
\Config\machine.config Line: 198

Assembly Load Trace: The following information can be
helpful to determine why the
assembly 'microsoft.web.ui.webcontrols' could not be
loaded.


=== Pre-bind state information ===
LOG: DisplayName = microsoft.web.ui.webcontrols
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/SANTrackingEMEA
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time
(private, custom, partial, or location-based assembly
bind).
LOG: Post-policy reference: microsoft.web.ui.webcontrols
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Tempora
ry ASP.NET
Files/santrackingemea/df48971e/6678ddc7/microsoft.web.ui.w
ebcontrols.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Tempora
ry ASP.NET
Files/santrackingemea/df48971e/6678ddc7/microsoft.web.ui.w
ebcontrols/microsoft.web.ui.webcontrols.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/SANTrackingEMEA/bin/microsoft.w
eb.ui.webcontrols.DLL.
LOG: Policy not being applied to reference at this time
(private, custom, partial, or location-based assembly
bind).
LOG: Post-policy reference: Microsoft.Web.UI.WebControls,
Version=1.0.2.226, Culture=neutral, PublicKeyToken=null
 
K

KS

This may well help

http://support.microsoft.com/default.aspx?scid=kb;en-us;329065

Andy Mortimer [MS]
Please do not send email directly to this alias. This alias is for
newsgroup purposes only

This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"

The indexing server is not running on my machine and I am still
getting this problem. Do you have any other suggestions?
 
A

Andy Mortimer [MS]

This may be of help, in the past:-
-------------------------------------
This is due to the fact that in ASP.NET any dll that is referenced must
either
be in a directory called bin inside the applications direcotry, or must be
in
the Global Assembly Cache.



Resolution

=============

To resolve this we tried it both ways. We added a bin directory that
contained
the dll, and this worked. Then we registered the dll in the GAC by dragging
and dropping the file into the Assebly folder using two instances of
Windows
Explorer as documented in this article:



Q315682 HOW TO: Install an Assembly into the Global Assembly Cache in Vi

http://support.microsoft.com/support/kb/articles/q315/6/82.asp
--------------------------------------
Parser Error Message: File or assembly name Microsoft.Web.UI.WebControls,
or one of
its dependencies, was not found.

Cause:
======
- The directory in IIS which contained the ASP.NET pages was not
marked as
an application.
- This is required for the code to work correctly.
- To mark the directory as an application, follow the steps
outlined
below:

1) In the IIS management console, right-click on the directory in
question.
2) Choose Properties.
3) In the Virtual Directory property page, go to the Application
Settings
Section and hit the Create Button.
4) This will create an Application in IIS for that folder.
 
A

Andy Mortimer [MS]

This may be of help, in the past:-
-------------------------------------
This is due to the fact that in ASP.NET any dll that is referenced must
either
be in a directory called bin inside the applications direcotry, or must be
in
the Global Assembly Cache.



Resolution

=============

To resolve this we tried it both ways. We added a bin directory that
contained
the dll, and this worked. Then we registered the dll in the GAC by dragging
and dropping the file into the Assebly folder using two instances of
Windows
Explorer as documented in this article:



Q315682 HOW TO: Install an Assembly into the Global Assembly Cache in Vi

http://support.microsoft.com/support/kb/articles/q315/6/82.asp
--------------------------------------
Parser Error Message: File or assembly name Microsoft.Web.UI.WebControls,
or one of
its dependencies, was not found.

Cause:
======
- The directory in IIS which contained the ASP.NET pages was not
marked as
an application.
- This is required for the code to work correctly.
- To mark the directory as an application, follow the steps
outlined
below:

1) In the IIS management console, right-click on the directory in
question.
2) Choose Properties.
3) In the Virtual Directory property page, go to the Application
Settings
Section and hit the Create Button.
4) This will create an Application in IIS for that folder.
 

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