[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

AjaxControlToolkit Access Denied Issue After Local Machine Locked Up...

Posted on 2010-08-29
7
Medium Priority
?
1,118 Views
Last Modified: 2012-05-10
Hi,
Below is the error message I now receive when the compiling my .Net app after my laptop locked up the other night. Prior to that event this had never been an issue, and the devleopment process has been going on for over a month. So, for some reason the hard boot after the laptop locked up while I had Visual Studio open caused something to happen that I can't seem to undo.

System.IO.FileLoadException: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.

I've Googled the issue and while there are plenty of suggestions none seem to solve the issue on my laptop. The key details to the error message, I believe, are in these lines:

LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Inetpub\wwwroot\etrs2\etrs2apps\web.config
LOG: Using host configuration file: C:\WINNT\Microsoft.NET\Framework\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/etrs2_etrs2apps/a5e45f05/e95f7762/AjaxControlToolkit.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/etrs2_etrs2apps/a5e45f05/e95f7762/AjaxControlToolkit/AjaxControlToolkit.DLL.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/etrs2/etrs2apps/bin/AjaxControlToolkit.DLL.
ERR: Failed to complete setup of assembly (hr = 0x80070005). Probing terminated.

Per many of the Google result suggestions I made sure that folder has Everyone access, but despite reboots, start/stops of IIS, etc I'm quite stuck. I've even re-installed the Ajax Control Tools and reloded them into the project.

Any thoughts?

Here is my environment setup in a nutshell:
Visual Studio 2010
C#
Local Laptop
AjaxControlToolkit
Microsoft .NET Framework Version:4.0.30319
ASP.NET Version:4.0.30319.1

Cheers,
Ty
0
Comment
Question by:MedtronicVascSR
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 8

Expert Comment

by:Mohit Vijay
ID: 33553863
delete all files from
C:/WINNT/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/

after that clean your prject and then rebuild.
0
 

Author Comment

by:MedtronicVascSR
ID: 33553914
Hi,
I deleted the contents of C:/WINNT/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/
and then ran the clean solution and rebuild solution tasks. Unfortunately, the same results. I stopped/started IIS and the ASP.Net State Service for good measure.

Cheers,
Ty
0
 
LVL 8

Expert Comment

by:Mohit Vijay
ID: 33555532
Is your AjaxControltool kit dll available in GAC folder?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:MedtronicVascSR
ID: 33555956
Hi,
It doesn't appear so. I adjusted the HKEY_LOCAL_MACHINE\Software\Microsoft\Fusion setting to view all the sub-follders. Did the crash somehow remove it from the GAC folder? Which of the 88 folders (ranging from Accessibility to VsWebSite.Interop100) within the GAC folder do I place and/or register it, or is there a formal way this needs to be done in order for it to be recognized?

Cheers,
Ty
0
 
LVL 8

Expert Comment

by:Mohit Vijay
ID: 33555986
check assembly folder in system32, if you can find AjaxControltoolkit dll there, its mean you have registered it with gac, else not.
0
 

Accepted Solution

by:
MedtronicVascSR earned 0 total points
ID: 33560574
Hi,
AjaxControltoolkit dll is not anywhere to be found in that folder, but in talking with a colleague this morning it doesn't doesn't appear in his GAC folder either and he's not having the issue. I did finally get it to work by changing the "processModel" tag in the Machine.config file to my local machine's user name. It had been set to system and never seeme to be an issue.

Anyway, I'm back up and running though I don't have an answer as to why it stopped working under the system account after the crash. If you have some insight please share. I'd like to award some points for your effort.

Cheers,
Ty
0
 
LVL 8

Expert Comment

by:Mohit Vijay
ID: 33560964
for out stands point, whenever such type of problem occur in any of our project, to solve this issue, we follow below steps:

1. clean temp files
2. clear project and rebuild.
3. un-register and register dll from GAC
4. Check Handler mapping in IIS for project
5. If still project not solve, then we reinstall that dll on our machine.
6. we never change machine.config for same purpose.because machine config apply to all project host on your iis, not for particular website.
7. It might be possible that we you left your laptop locked, it downloaded/installed some update (Auto Update) for any Microsoft Project and it creates some problem.


0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question