By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,680 Members | 1,475 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,680 IT Pros & Developers. It's quick & easy.

access denied on dll

P: n/a
I am trying to move an application from my system to a new test system. I really should have tried an easier program first, but I didn't really have a chance. My application was originally written in ASP.NET 1.1, but was migrated to 2.0 during development. The reason this is an issue is because the application is using the Microsoft.Web.UI.WebControls.dll for the tree view and tab strip controls that didn't exist prior to 2.0. Well, that is where my problem lies. I am getting an access denied message when it is trying to load that dll. I am impersonating a user and I am pretty sure that I have granted access every where that I needed. Please assist.

Here is the ASP.NET error message:
Could not load file or assembly 'microsoft.web.ui.webcontrols' 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 'microsoft.web.ui.webcontrols' or one of its dependencies. Access is denied.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'microsoft.web.ui.webcontrols' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace:
[FileLoadException: Could not load file or assembly 'microsoft.web.ui.webcontrols' or one of its dependencies. Access is denied.]

[FileLoadException: Could not load file or assembly 'Microsoft.Web.UI.WebControls, Version=1.0.2.226, 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.InternalLoad(AssemblyNa me assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String assemblyName, Boolean starDirective) +32

[ConfigurationErrorsException: Could not load file or assembly 'Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.]
System.Web.Configuration.CompilationSection.LoadAs semblyHelper(String assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAl lAssembliesFromAppDomainBinDirectory() +3479033
System.Web.Configuration.CompilationSection.LoadAs sembly(AssemblyInfo ai) +46
System.Web.Compilation.BuildManager.GetReferencedA ssemblies(CompilationSection compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..cto r(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +180
System.Web.Compilation.ApplicationBuildProvider.Ge tGlobalAsaxBuildResult(Boolean isPrecompiledApp) +3446613
System.Web.Compilation.BuildManager.CompileGlobalA sax() +51
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +462

[HttpException (0x80004005): Could not load file or assembly 'Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.]
System.Web.Compilation.BuildManager.ReportTopLevel CompilationException() +57
System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +456

[HttpException (0x80004005): Could not load file or assembly 'Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context) +3426839
System.Web.HttpRuntime.EnsureFirstRequestInit(Http Context context) +88
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr) +149


Here is the message that was left in the event log:
Description:
Event code: 3008
Event message: A configuration error has occurred.
Event time: 7/6/2007 11:22:11 AM
Event time (UTC): 7/6/2007 4:22:11 PM
Event ID: 8db6944cf5db4e649d716259d49e6c5b
Event sequence: 1
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1/Root/kdoc-3-128282125313601282
Trust level: Full
Application Virtual Path: /kdoc
Application Path: c:\inetpub\wwwroot\kdoc\
Machine name: [HIDDEN NAME]

Process information:
Process ID: 2268
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
Exception type: HttpException
Exception message: Could not load file or assembly 'Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.

Request information:
Request URL: http://localhost/kdoc/Default.aspx
Request path: /kdoc/Default.aspx
User host address: 127.0.0.1
User:
Is authenticated: False
Authentication Type:
Thread account name: [HIDDEN NAME]
Thread information:
Thread ID: 1
Thread account name: [HIDDEN NAME]
Is impersonating: False
Stack trace: at System.Web.Compilation.BuildManager.ReportTopLevel CompilationException()
at System.Web.Compilation.BuildManager.EnsureTopLevel FilesCompiled()
at System.Web.Hosting.HostingEnvironment.Initialize(A pplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)

Jul 9 '07 #1
Share this Question
Share on Google+
8 Replies


P: n/a
"Jeremy Ames" <an*******@whereever.comwrote in message
news:ED**********************************@microsof t.com...
the application is using the Microsoft.Web.UI.WebControls.dll
This is no longer supported:
http://msdn2.microsoft.com/en-us/library/ms529711.aspx
for the tree view and tab strip controls that didn't exist prior to 2.0.
These now exist natively in ASP.NET 2.0:
http://www.google.co.uk/search?sourc...asp%3aTreeView
http://www.google.co.uk/search?sourc...=asp+multiview
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 9 '07 #2

P: n/a
I understand that, and it wasn't really supported that well back when I
started using it either. There is a lot of stuff that would require a
rewrite if I did change it. Getting past the obvious, and back to the issue
at hand, what is going on with the security?

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:eo**************@TK2MSFTNGP02.phx.gbl...
"Jeremy Ames" <an*******@whereever.comwrote in message
news:ED**********************************@microsof t.com...
>the application is using the Microsoft.Web.UI.WebControls.dll

This is no longer supported:
http://msdn2.microsoft.com/en-us/library/ms529711.aspx
>for the tree view and tab strip controls that didn't exist prior to 2.0.

These now exist natively in ASP.NET 2.0:
http://www.google.co.uk/search?sourc...asp%3aTreeView
http://www.google.co.uk/search?sourc...=asp+multiview
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Jul 9 '07 #3

P: n/a
"Jeremy Ames" <an*******@whereever.comwrote in message
news:F3**********************************@microsof t.com...
There is a lot of stuff that would require a rewrite if I did change it.
I appreciate that. I used the WebControls on a couple of client projects in
ASP.NET 1.1 and, once I realised that they weren't going to work at all in
v2.0, I upgraded to the new ASP.NET 2.0 controls - took about 5 minutes per
page...
what is going on with the security?
I'm sorry, but I don't know... There have been other threads in here (long
time ago now) where people have tried to use the WebControls in ASP.NET 2.0,
and have given up because they simply don't work...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 9 '07 #4

P: n/a
Thank you for your response.

I don't think that it was supported when I started using it in the first
place. The real issue is not whether this is supported or not, it is how do
I resolve my access denied problem.

I just put a simple application out there. I had it working until I changed
it to use impersonation, now I am getting the same message. I have given the
specified user access to that folder. What else do I need to do?

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:eo**************@TK2MSFTNGP02.phx.gbl...
"Jeremy Ames" <an*******@whereever.comwrote in message
news:ED**********************************@microsof t.com...
>the application is using the Microsoft.Web.UI.WebControls.dll

This is no longer supported:
http://msdn2.microsoft.com/en-us/library/ms529711.aspx
>for the tree view and tab strip controls that didn't exist prior to 2.0.

These now exist natively in ASP.NET 2.0:
http://www.google.co.uk/search?sourc...asp%3aTreeView
http://www.google.co.uk/search?sourc...=asp+multiview
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Jul 10 '07 #5

P: n/a
Sorry about the repost... Still getting used to the mail reader.

"Jeremy Ames" <an*******@whereever.comwrote in message
news:EA**********************************@microsof t.com...
Thank you for your response.

I don't think that it was supported when I started using it in the first
place. The real issue is not whether this is supported or not, it is how
do I resolve my access denied problem.

I just put a simple application out there. I had it working until I
changed it to use impersonation, now I am getting the same message. I have
given the specified user access to that folder. What else do I need to do?

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:eo**************@TK2MSFTNGP02.phx.gbl...
>"Jeremy Ames" <an*******@whereever.comwrote in message
news:ED**********************************@microso ft.com...
>>the application is using the Microsoft.Web.UI.WebControls.dll

This is no longer supported:
http://msdn2.microsoft.com/en-us/library/ms529711.aspx
>>for the tree view and tab strip controls that didn't exist prior to 2.0.

These now exist natively in ASP.NET 2.0:
http://www.google.co.uk/search?sourc...asp%3aTreeView
http://www.google.co.uk/search?sourc...=asp+multiview
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Jul 10 '07 #6

P: n/a
It definitely works. I am running a couple of applications with it in my
test and production environments. This is my first real application with 2.0
and I could not load it into my existing test environment because it is IIS
5.0 with 1.1 applications already running.

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:u1**************@TK2MSFTNGP05.phx.gbl...
"Jeremy Ames" <an*******@whereever.comwrote in message
news:F3**********************************@microsof t.com...
>There is a lot of stuff that would require a rewrite if I did change it.

I appreciate that. I used the WebControls on a couple of client projects
in ASP.NET 1.1 and, once I realised that they weren't going to work at all
in v2.0, I upgraded to the new ASP.NET 2.0 controls - took about 5 minutes
per page...
>what is going on with the security?

I'm sorry, but I don't know... There have been other threads in here (long
time ago now) where people have tried to use the WebControls in ASP.NET
2.0, and have given up because they simply don't work...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Jul 10 '07 #7

P: n/a
"Jeremy Ames" <an*******@whereever.comwrote in message
news:uB**************@TK2MSFTNGP02.phx.gbl...
It definitely works.
Really? Fair enough, then...

Maybe somebody else will know how to get it working...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 10 '07 #8

P: n/a
I don't know if you read my repost from this morning, but I created a simple
application yesterday and installed it on the new test server. I managed to
get the application running, and everything was good until I enabled
impersonation. The application is a "hello world" application so there is
nothing going on behind the scenes.

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:eM**************@TK2MSFTNGP03.phx.gbl...
"Jeremy Ames" <an*******@whereever.comwrote in message
news:uB**************@TK2MSFTNGP02.phx.gbl...
>It definitely works.

Really? Fair enough, then...

Maybe somebody else will know how to get it working...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Jul 10 '07 #9

This discussion thread is closed

Replies have been disabled for this discussion.