473,909 Members | 4,177 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

access denied on dll

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.U I.WebControls.d ll 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.FileL oadException: 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\M icrosoft\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\M icrosoft\Fusion !EnableLog].

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

[FileLoadExcepti on: Could not load file or assembly 'Microsoft.Web. UI.WebControls, Version=1.0.2.2 26, Culture=neutral , PublicKeyToken= null' or one of its dependencies. Access is denied.]
System.Reflecti on.Assembly.nLo ad(AssemblyName fileName, String codeBase, Evidence assemblySecurit y, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotF ound, Boolean forIntrospectio n) +0
System.Reflecti on.Assembly.Int ernalLoad(Assem blyName assemblyRef, Evidence assemblySecurit y, StackCrawlMark& stackMark, Boolean forIntrospectio n) +211
System.Reflecti on.Assembly.Int ernalLoad(Strin g assemblyString, Evidence assemblySecurit y, StackCrawlMark& stackMark, Boolean forIntrospectio n) +141
System.Reflecti on.Assembly.Loa d(String assemblyString) +25
System.Web.Conf iguration.Compi lationSection.L oadAssemblyHelp er(String assemblyName, Boolean starDirective) +32

[ConfigurationEr rorsException: Could not load file or assembly 'Microsoft.Web. UI.WebControls, Version=1.0.2.2 26, Culture=neutral , PublicKeyToken= null' or one of its dependencies. Access is denied.]
System.Web.Conf iguration.Compi lationSection.L oadAssemblyHelp er(String assemblyName, Boolean starDirective) +596
System.Web.Conf iguration.Compi lationSection.L oadAllAssemblie sFromAppDomainB inDirectory() +3479033
System.Web.Conf iguration.Compi lationSection.L oadAssembly(Ass emblyInfo ai) +46
System.Web.Comp ilation.BuildMa nager.GetRefere ncedAssemblies( CompilationSect ion compConfig) +177
System.Web.Comp ilation.BuildPr ovidersCompiler ..ctor(VirtualP ath configPath, Boolean supportLocaliza tion, String outputAssemblyN ame) +180
System.Web.Comp ilation.Applica tionBuildProvid er.GetGlobalAsa xBuildResult(Bo olean isPrecompiledAp p) +3446613
System.Web.Comp ilation.BuildMa nager.CompileGl obalAsax() +51
System.Web.Comp ilation.BuildMa nager.EnsureTop LevelFilesCompi led() +462

[HttpException (0x80004005): Could not load file or assembly 'Microsoft.Web. UI.WebControls, Version=1.0.2.2 26, Culture=neutral , PublicKeyToken= null' or one of its dependencies. Access is denied.]
System.Web.Comp ilation.BuildMa nager.ReportTop LevelCompilatio nException() +57
System.Web.Comp ilation.BuildMa nager.EnsureTop LevelFilesCompi led() +612
System.Web.Host ing.HostingEnvi ronment.Initial ize(Application Manager appManager, IApplicationHos t appHost, IConfigMapPathF actory configMapPathFa ctory, HostingEnvironm entParameters hostingParamete rs) +456

[HttpException (0x80004005): Could not load file or assembly 'Microsoft.Web. UI.WebControls, Version=1.0.2.2 26, Culture=neutral , PublicKeyToken= null' or one of its dependencies. Access is denied.]
System.Web.Http Runtime.FirstRe questInit(HttpC ontext context) +3426839
System.Web.Http Runtime.EnsureF irstRequestInit (HttpContext context) +88
System.Web.Http Runtime.Process RequestInternal (HttpWorkerRequ est 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: 8db6944cf5db4e6 49d716259d49e6c 5b
Event sequence: 1
Event occurrence: 1
Event detail code: 0

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

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

Exception information:
Exception type: HttpException
Exception message: Could not load file or assembly 'Microsoft.Web. UI.WebControls, Version=1.0.2.2 26, 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.Comp ilation.BuildMa nager.ReportTop LevelCompilatio nException()
at System.Web.Comp ilation.BuildMa nager.EnsureTop LevelFilesCompi led()
at System.Web.Host ing.HostingEnvi ronment.Initial ize(Application Manager appManager, IApplicationHos t appHost, IConfigMapPathF actory configMapPathFa ctory, HostingEnvironm entParameters hostingParamete rs)

Jul 9 '07 #1
8 6055
"Jeremy Ames" <an*******@wher eever.comwrote in message
news:ED******** *************** ***********@mic rosoft.com...
the application is using the Microsoft.Web.U I.WebControls.d ll
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
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**@markNOSPA Mrae.netwrote in message
news:eo******** ******@TK2MSFTN GP02.phx.gbl...
"Jeremy Ames" <an*******@wher eever.comwrote in message
news:ED******** *************** ***********@mic rosoft.com...
>the application is using the Microsoft.Web.U I.WebControls.d ll

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
"Jeremy Ames" <an*******@wher eever.comwrote in message
news:F3******** *************** ***********@mic rosoft.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
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**@markNOSPA Mrae.netwrote in message
news:eo******** ******@TK2MSFTN GP02.phx.gbl...
"Jeremy Ames" <an*******@wher eever.comwrote in message
news:ED******** *************** ***********@mic rosoft.com...
>the application is using the Microsoft.Web.U I.WebControls.d ll

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
Sorry about the repost... Still getting used to the mail reader.

"Jeremy Ames" <an*******@wher eever.comwrote in message
news:EA******** *************** ***********@mic rosoft.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**@markNOSPA Mrae.netwrote in message
news:eo******** ******@TK2MSFTN GP02.phx.gbl...
>"Jeremy Ames" <an*******@wher eever.comwrote in message
news:ED******* *************** ************@mi crosoft.com...
>>the application is using the Microsoft.Web.U I.WebControls.d ll

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
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**@markNOSPA Mrae.netwrote in message
news:u1******** ******@TK2MSFTN GP05.phx.gbl...
"Jeremy Ames" <an*******@wher eever.comwrote in message
news:F3******** *************** ***********@mic rosoft.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
"Jeremy Ames" <an*******@wher eever.comwrote in message
news:uB******** ******@TK2MSFTN GP02.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
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**@markNOSPA Mrae.netwrote in message
news:eM******** ******@TK2MSFTN GP03.phx.gbl...
"Jeremy Ames" <an*******@wher eever.comwrote in message
news:uB******** ******@TK2MSFTN GP02.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3068
by: calfdog | last post by:
Hello, Does anyone know a workaround for calling fireEvent. With the latest from Microsoft OS XP2 and Hot fixes to IE it now gives an "access denied" error in Python when called. Here is what I am trying to do: Set the "campus" listbox value and theb call fire event, such as in the code below. I get an "access denied" error.
0
2955
by: Steve | last post by:
Hi, Yesterday I signed up for another dedicated linux server with the hosting company I use and I am having problems getting MySQL 4.1.3 working on it. I've tried just about everything I can think of to login via the MySQL client but get a variation of the following error every time: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
9
6341
by: | last post by:
Hi All, I have allready tried to ask a similar question , but got no answer until now. In the meantime, I found, that I cannot understand some thread-settings for the Main() function . If I use the attribute for the Main() function, I get "access denied error", if I use a ManagementEventWatcher to connect to the local machine to receive events. Is there anybody out there, how possibly can explain why this happens?? If I remove this...
0
3542
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the original question, the subject line is: ADODB.NET and "Access Denied" I have an ASP.NET page writtein in VB that uses ADODB. I just had to
16
7410
by: Brad | last post by:
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...
12
3111
by: Ron Weldy | last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net files. On my workstation I have a share set up to the folder where the web files reside. I am just doing quick and dirty asp editing (like I used to be able to do with 2K/IIS5) where I use VS.NET, open an asp file, make changes, save and refresh my browser. Problem is that I get an Access is Denied error when I try to save the file and then the file gets wiped on...
3
8016
by: Shailesh Humbad | last post by:
I figured out what was causing the "Access is Denied" error when calling functions from referenced DLLs in my service. I've tried to be very detailed, so bear with me. It turns out that libraries I made myself were not having this problem, but it only happened with a zip library I downloaded and copied into my program's directory. When using classes from this library, my service threw an "Access Is Denied" FileLoadException, which...
3
7977
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images C:\Inetpub\wwwroot\RunReportASP is the directory of my virtual directory for my app. In it's properties I did check "Write" as a permission. What else do I need to do?
0
3971
by: Andy | last post by:
Thanks Peter, I thought I'd give an update on this problem. My application had 2 assemblies that contained classed for the Data access and business logic layer. It was on one of them that I was getting the Access denied error. After checking different settings and googling I wasnt able to pinpoint the problem and as a temporary fix I decided to merge the two assemblies into one, my logic being no offending assembly no access denied...
0
9877
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10919
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9725
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8097
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7248
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4774
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4336
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3357
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.