MedtronicVascSR
asked on
AjaxControlToolkit Access Denied Issue After Local Machine Locked Up...
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.FileLoadExceptio n: 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\e trs2apps\w eb.config
LOG: Using host configuration file: C:\WINNT\Microsoft.NET\Fra mework\v4. 0.30319\as pnet.confi g
LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Fra mework\v4. 0.30319\co nfig\machi ne.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/Frame work/v4.0. 30319/Temp orary ASP.NET Files/etrs2_etrs2apps/a5e4 5f05/e95f7 762/AjaxCo ntrolToolk it.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft .NET/Frame work/v4.0. 30319/Temp orary ASP.NET Files/etrs2_etrs2apps/a5e4 5f05/e95f7 762/AjaxCo ntrolToolk it/AjaxCon trolToolki t.DLL.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot /etrs2/etr s2apps/bin /AjaxContr olToolkit. 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
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.FileLoadExceptio
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\e
LOG: Using host configuration file: C:\WINNT\Microsoft.NET\Fra
LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Fra
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
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot
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
ASKER
Hi,
I deleted the contents of C:/WINNT/Microsoft.NET/Fra mework/v4. 0.30319/Te mporary 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
I deleted the contents of C:/WINNT/Microsoft.NET/Fra
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
Is your AjaxControltool kit dll available in GAC folder?
ASKER
Hi,
It doesn't appear so. I adjusted the HKEY_LOCAL_MACHINE\Softwar e\Microsof t\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
It doesn't appear so. I adjusted the HKEY_LOCAL_MACHINE\Softwar
Cheers,
Ty
check assembly folder in system32, if you can find AjaxControltoolkit dll there, its mean you have registered it with gac, else not.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
C:/WINNT/Microsoft.NET/Fra
after that clean your prject and then rebuild.