简体   繁体   English

无法加载文件或程序集“ businesslogic”或其依赖项之一。 拒绝访问

[英]Could not load file or assembly 'businesslogic' or one of its dependencies. Access is denied

I am getting the above error. 我收到上述错误。 I get good build but when i run web application, i get 'Could not load file or assembly 'businesslogic' or one of its dependencies. Access is denied.' 我得到了良好的构建,但是当我运行Web应用程序时,出现'Could not load file or assembly 'businesslogic' or one of its dependencies. Access is denied.' 'Could not load file or assembly 'businesslogic' or one of its dependencies. Access is denied.' . I have given the Full Control permission to Temporary ASP.NET Files in Framework64 folder. 我已授予Framework64文件夹中的ASP.NET临时文件的Full Control permission Below are the details about the error. 以下是有关错误的详细信息。 I checked the dll in separate project. 我在单独的项目中检查了dll。 It do not have any error. 没有任何错误。 I got good build for the businessLogic project dll. 我为businessLogic项目dll建立了良好的构建。 So I don't understand what could be error. 所以我不明白什么可能是错误的。

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. 说明: 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. 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 'businesslogic' or one of its dependencies. Access is denied. 异常详细信息: System.IO.FileLoadException: Could not load file or assembly 'businesslogic' or one of its dependencies. Access is denied. System.IO.FileLoadException: Could not load file or assembly 'businesslogic' 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 'businesslogic' could not be loaded.


=== Pre-bind state information ===
LOG: DisplayName = businesslogic
 (Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: businesslogic | Domain ID: 3
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:///C:/Gayatri/VSProjects/Cobalt.Umbraco.Component/Cobalt.Umbraco.Component/
LOG: Initial PrivatePath = C:\Gayatri\VSProjects\Cobalt.Umbraco.Component\Cobalt.Umbraco.Component\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Gayatri\VSProjects\Cobalt.Umbraco.Component\Cobalt.Umbraco.Component\web.config
LOG: Using host configuration file: C:\Users\Gayatri.Rane\Documents\IISExpress\config\aspnet.config
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/Gayatri.Rane/AppData/Local/Temp/Temporary ASP.NET Files/root/65bbe46a/a7dee2d8/businesslogic.DLL.
LOG: Attempting download of new URL file:///C:/Users/Gayatri.Rane/AppData/Local/Temp/Temporary ASP.NET Files/root/65bbe46a/a7dee2d8/businesslogic/businesslogic.DLL.
LOG: Attempting download of new URL file:///C:/Gayatri/VSProjects/Cobalt.Umbraco.Component/Cobalt.Umbraco.Component/bin/businesslogic.DLL.
LOG: Using application configuration file: C:\Gayatri\VSProjects\Cobalt.Umbraco.Component\Cobalt.Umbraco.Component\web.config
LOG: Using host configuration file: C:\Users\Gayatri.Rane\Documents\IISExpress\config\aspnet.config
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).
ERR: Failed to complete setup of assembly (hr = 0x80070005). Probing terminated.

Stack Trace: 堆栈跟踪:

[FileLoadException: Could not load file or assembly 'businesslogic' or one of its dependencies. Access is denied.]

[FileLoadException: Could not load file or assembly 'businesslogic, Version=1.0.4392.20885, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.]
   System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
   System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +34
   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +77
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +16
   System.Reflection.Assembly.Load(String assemblyString) +28
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +38

[ConfigurationErrorsException: Could not load file or assembly 'businesslogic, Version=1.0.4392.20885, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +752
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +218
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +170
   System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +91
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +285
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +153
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +516

[HttpException (0x80004005): Could not load file or assembly 'businesslogic, Version=1.0.4392.20885, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9913572
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

Thanks, any suggestion?? 谢谢,有什么建议吗?

I have given the Full Control permission to Temporary ASP.NET Files in Framework64 folder. 我已授予“ Framework64”文件夹中的“临时ASP.NET文件”的“完全控制”权限。

Yet your exception clearly states the path is not using the Framework64 folder: 但是,您的异常清楚地表明该路径未使用Framework64文件夹:

LOG: Using machine configuration file from C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\config\\machine.config. 日志:使用C:\\ Windows \\ Microsoft.NET \\ Framework \\ v4.0.30319 \\ config \\ machine.config中的计算机配置文件。

You might want to start there and re-check your permissions. 您可能要从此处开始,然后重新检查您的权限。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法加载文件或程序集或其依赖项之一。 拒绝访问 - Could not load file or assembly or one of its dependencies. Access is denied 如何解决无法加载文件或程序集'Glimpse.Core'或其依赖项之一。 访问被拒绝 - how to solve Could not load file or assembly 'Glimpse.Core' or one of its dependencies. Access is denied 无法加载文件或程序集“Microsoft.CodeDom.Providers.DotNetCompilerPlatform 或其依赖项之一。” 访问被拒绝 - Could not load file or assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform or one of its dependencies. Access is denied 无法加载文件或程序集“ Moxiecode.TinyMCE”或其依赖项之一。 拒绝访问 - Could not load file or assembly 'Moxiecode.TinyMCE' or one of its dependencies. Access is denied System.IO.FileLoadException:'无法加载文件或程序集'EntityFramework或其依赖项之一。 访问被拒绝。 - System.IO.FileLoadException: 'Could not load file or assembly 'EntityFramework or one of its dependencies. Access is denied.' Umbraco 7-无法加载文件或程序集“ Microsoft.IdentityModel”或其依赖项之一。 拒绝访问 - Umbraco 7- Could not load file or assembly 'Microsoft.IdentityModel' or one of its dependencies. Access is denied 无法加载文件或程序集“ICSharpCode.SharpZipLib”或其依赖项之一。 访问被拒绝 - Could not load file or assembly 'ICSharpCode.SharpZipLib' or one of its dependencies. Access is denied 无法加载文件或程序集{此处的程序集名称} 或其依赖项之一。 访问被拒绝 - Could not load file or assembly {assembly name here} or one of it's dependencies. Access is denied 无法加载文件或程序集“System.Web,Version = 4.0.0.0,Culture = neutral”或其依赖项之一。 访问被拒绝 - Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral' or one of its dependencies. Access is denied 无法加载文件或程序集“ xxxLib”或其依赖项之一。 BadImageFormatException - Could not load file or assembly 'xxxLib' or one of its dependencies. BadImageFormatException
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM