Could not load file or assembly 'AjaxControlToolkit' 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 'AjaxControlToolkit' 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 'AjaxControlToolkit' could not be loaded.
=== Pre-bind state information ===
LOG: User = BADB0Y\BADBOY
LOG: DisplayName = AjaxControlToolkit
(Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: AjaxControlToolkit | Domain ID: 6
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///D:/PERSONALDATA/AumSriSaiRam/SaiRam/SaiRam.WEB/
LOG: Initial PrivatePath = D:\PERSONALDATA\AumSriSaiRam\SaiRam\SaiRam.WEB\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: D:\PERSONALDATA\AumSriSaiRam\SaiRam\SaiRam.WEB\web.config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\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:/Users/BADBOY/AppData/Local/Temp/Temporary ASP.NET Files/root/28e74066/17c58606/AjaxControlToolkit.DLL.
LOG: Attempting download of new URL file:///C:/Users/BADBOY/AppData/Local/Temp/Temporary ASP.NET Files/root/28e74066/17c58606/AjaxControlToolkit/AjaxControlToolkit.DLL.
LOG: Attempting download of new URL file:///D:/PERSONALDATA/AumSriSaiRam/SaiRam/SaiRam.WEB/bin/AjaxControlToolkit.DLL.
ERR: A fatal error occurred when retrieving next codebase for download (hr = 0x80070005).
Stack Trace:
[FileLoadException: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
[ConfigurationErrorsException: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +618
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +209
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +94
System.Web.Compilation.BuildManager.CallPreStartInitMethods() +332
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +591
[HttpException (0x80004005): Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. Access is denied.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8946484
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
AXEL BLAZE
Member
65 Points
110 Posts
please solve this error......
Jun 18, 2012 01:34 PM|LINK
Could not load file or assembly 'AjaxControlToolkit' 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 'AjaxControlToolkit' or one of its dependencies. Access is denied.
Source Error:
Assembly Load Trace: The following information can be helpful to determine why the assembly 'AjaxControlToolkit' could not be loaded.
Stack Trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
ssjGanesh
Participant
1928 Points
1352 Posts
Re: please solve this error......
Jun 18, 2012 01:41 PM|LINK
http://weblogs.asp.net/joshuajohnson/archive/2008/12/22/could-not-load-file-or-assembly-ajaxcontroltoolkit-or-one-of-its-dependencies-the-parameter-is-incorrect-exception-from-hresult-0-215-80070057-e-invalidarg.aspx
http://forums.iis.net/t/1189366.aspx
Mark as answer,if it helped U!
chetan.sarod...
All-Star
65839 Points
11163 Posts
Re: please solve this error......
Jun 19, 2012 03:07 AM|LINK
Please refer this
http://blog.tallan.com/2009/09/01/could-not-load-file-or-assembly-ajaxcontroltoolkit-or-one-of-its-dependencies-access-is-denied/
http://weblogs.asp.net/datagridgirl/archive/2010/04/01/could-not-load-file-or-assembly-ajaxcontroltoolkit-or-one-of-its-dependencies-access-is-denied.aspx
http://stackoverflow.com/questions/1904263/could-not-load-file-or-assembly-ajaxcontroltoolkit-after-upgrade-to-net-4-0
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
BU XI - MSFT
All-Star
22367 Points
2704 Posts
Microsoft
Re: please solve this error......
Jun 20, 2012 04:08 AM|LINK
Hello
You'll check the permission of the folder where AJAX Control toolkit resides. Look at folders that are like
C:\Windows\Microsoft.NET\Framework\v4.0.XXXX\Temporary ASP.NET Files
Grant the appropriate permission, for example "Everyone"
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework