搭建一个新的web 服务器,遇到下面的错。有解决办法没?

day_free day_free 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

Server Error in '/service' Application.


Could not load file or assembly 'Service.BLL' or one of its dependencies. An attempt was made to load a program with an incorrect format.

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.BadImageFormatException: Could not load file or assembly 'Service.BLL' or one of its dependencies. An attempt was made to load a program with an incorrect format.

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 'Service.BLL' could not be loaded.
 


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\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\Microsoft\Fusion!EnableLog].


Stack Trace:
 


[BadImageFormatException: Could not load file or assembly 'Service.BLL' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   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.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +478
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +128
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +22
   System.Reflection.Assembly.Load(String assemblyString) +34
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +48

[ConfigurationErrorsException: Could not load file or assembly 'Service.BLL' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +767
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +256
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +58
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +281
   System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +70
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +137
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +174
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +848

[HttpException (0x80004005): Could not load file or assembly 'Service.BLL' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +403
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +100
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +714

 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3770.0

...全文

相关推荐

ubuntu上搭建web服务器

ubuntu上如何搭建web服务器,包括配置等操作步骤

yx5201

如何在自己的电脑上搭建web服务器?

这里简单的说明了如何在自己的电脑上建立Web服务器,步骤很明了直观,希望对初学者有所帮助。

guanjun250

教你如何在虚拟机VM下搭建WEB及DNS服务器

一、 在虚拟主机Win2k3Server下搭建WEB服务器的步骤 (1)首先安装VM (2)新建虚拟主机 (3)安装IIS组件和DNS组件 (4)配置Win2k3Server服务器IP及名称和工作组 (5)克隆虚拟摩崖Win2k3Server (6)配置虚拟主机DnsServer (7)配置虚拟主机Client (8)新建虚拟网络 (9)启动新建的虚拟网络组 (10)在虚拟主机Win2k3Server中设置添加多个虚拟IP地址 (11)在Win2K3Server下打开Internet信息服务并新建站点KX (12)配置KX站点并通过IP访问KX站点在虚拟主机DnsServer下搭建DNS服务并解析WEB站点 二、在虚拟主机DnsServer下搭建DNS服务并解析WEB站点 (1) 配置虚拟主机DnsServer的IP及名称 (2) 安装DNS组件 (3) 打开DNS服务 (4) 新建CN域并在CN域下建立二级COM域 (5) 在COM域下新建KX主机 (6) 自行浏览测试

hglbird

教菜鸟用ubuntu搭建web服务器

教菜鸟用ubuntu搭建web服务器,简单易学,很好操作

wanwan_smart

解决vs2012 “无法启动已配置的visual studio开发web服务器”的解决办法

解决vs2012 “无法启动已配置的visual studio开发web服务器”的解决办法

riyefu
评论 1
收藏 已收藏
分享
返回顶部
day_free
分析与设计 13,188 成员 5,759 内容