问题描述
请问以下是怎么回事,权限都是有的。“/”应用程序中的服务器错误。编译错误说明:在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。编译器错误消息:编译器失败,错误代码为255。C:WindowsSysWOW64inetsrv>D:Webmefanswwwrootbinroslyncsc.exe/t:library/utf8output/nostdlib+/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319mscorlib.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Runtimev4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Runtime.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModel.Webv4.0_4.0.0.0__31bf3856ad364e35System.ServiceModel.Web.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319mscorlib.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl3cd169fb74e38601d_8438d101WebActivatorEx.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl3c61ab3b92804780d_118ed101MeFans.Nhibernate.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl311cb667acb9c2b0e_ad37d101Ninject.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl32e51f2fbad363260_6d8ad101Mefans.UnionPay.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl3fc791f4d00a7615_118ed101MeFans.Infrastructure.Ioc.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl38bb0696411906a40_9267d101ThoughtWorks.QRCode.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl34a15184f1ff5b711_118ed101MeFans.IRepository.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModelv4.0_4.0.0.0__b77a5c561934e089System.ServiceModel.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.Extensionsv4.0_4.0.0.0__31bf3856ad364e35System.Web.Extensions.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.IdentityModelv4.0_4.0.0.0__b77a5c561934e089System.IdentityModel.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Corev4.0_4.0.0.0__b77a5c561934e089System.Core.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl3c731ef45ce8a5be8_ab37d101System.Web.WebPages.Deployment.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILMicrosoft.CSharpv4.0_4.0.0.0__b03f5f7f11d50a3aMicrosoft.CSharp.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl3c63c4d8aa8b983bd_1341d101Webdiyer.MvcPager.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl3f917d0ec183b6010_118ed101MeFans.Map.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl3ec9a6480762859e8_ab37d101System.Web.Helpers.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl3a0a1b66705060e8_ab37d101WebGrease.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ComponentModel.DataAnnotationsv4.0_4.0.0.0__31bf3856ad364e35System.ComponentModel.DataAnnotations.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Data.DataSetExtensionsv4.0_4.0.0.0__b77a5c561934e089System.Data.DataSetExtensions.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl368fbc60f11c07c0d_118ed101MeFans.Tools.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl39a5f6e7f773650f7_ab37d101FluentNHibernate.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl33a469f06b4e6ea0e_118ed101MeFans.Alipay.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl323046cf1719ea9e6_ab37d101Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl389d766e3c06d0409_8581d101LitJson.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl3bfc4b3c3f6375417_118ed101MeFans.Web.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl357d17601f3542e7_ab37d101Microsoft.Web.Infrastructure.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl315e10444f1262b6_e948d101Ninject.Extensions.Conventions.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl3f8587866ee3d6065_054dd101System.Web.Optimization.Extensions.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl3b64384d28ef3261_6d8ad101MeFans.Pager.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystemv4.0_4.0.0.0__b77a5c561934e089System.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_32System.Datav4.0_4.0.0.0__b77a5c561934e089System.Data.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.ApplicationServicesv4.0_4.0.0.0__31bf3856ad364e35System.Web.ApplicationServices.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.Servicesv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Web.Services.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl3576f24abeab0e709_8581d101AutoMapper.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModel.Activitiesv4.0_4.0.0.0__31bf3856ad364e35System.ServiceModel.Activities.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Xml.Linqv4.0_4.0.0.0__b77a5c561934e089System.Xml.Linq.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl397f7d5a8b208b71c_8438d101Ninject.Web.Mvc.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl3dd1e151ec6711ee7_ab37d101System.Web.Razor.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl3d62f654bfde6f13_118ed101MeFans.Wxpay.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Drawingv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Drawing.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Runtime.Serializationv4.0_4.0.0.0__b77a5c561934e089System.Runtime.Serialization.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl3a9b1b6dc809e7617_ac37d101System.Web.Mvc.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_32System.EnterpriseServicesv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.EnterpriseServices.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl31743895cd2f9cdf5_ab37d101Ninject.Web.Common.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl36c428271e43d4de8_ab37d101Elmah.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.WorkflowServicesv4.0_4.0.0.0__31bf3856ad364e35System.WorkflowServices.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Xmlv4.0_4.0.0.0__b77a5c561934e089System.Xml.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl3f5855c2fce8a5be8_ab37d101System.Web.WebPages.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl393bd2a23916940f6_ab37d101NHibernate.dll"/R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Activitiesv4.0_4.0.0.0__31bf3856ad364e35System.Activities.dll"/R:"C:WindowsMicrosoft.NETFrameworkv4.0.30319TemporaryASP.NETFilesrootea14b2fa67b93e58assemblydl39e2bc4fef5e633e7_ab37d101System.Web.Optimization.dll"/R:"C:WindowsMi
解决方案
解决方案二:
重新生成发布,注意iis的.netframework版本(4.0)。
解决方案三:
显示的错误代码
解决方案四:
引用1楼guwei4037的回复:
重新生成发布,注意iis的.netframework版本(4.0)。
我前几天都是正常的,就是昨天突然出了这个网站,网站发布之后,显示编译器错误我的网址www.mefans.hk
解决方案五:
引用1楼guwei4037的回复:
重新生成发布,注意iis的.netframework版本(4.0)。
昨天发布网站突然出现的这个问题,是不是我这两天升级了VSupdate2导致的?本地版本4.6,服务器IISframework版本4.0
解决方案六:
还没有升级到vs2015update2,单独运行有没有问题,iis下的其它应用访问有没有问题,尝试用aspnet_regiis.exe-i重新注册试试。
解决方案七:
引用5楼guwei4037的回复:
还没有升级到vs2015update2,单独运行有没有问题,iis下的其它应用访问有没有问题,尝试用aspnet_regiis.exe-i重新注册试试。
其他人发布生成网站文件,然后,我拿到我本机的IIS来发布访问,都没有问题,就是我自己电脑的VS2015发布生成,就是有问题,我怀疑是不是vs坏掉了
解决方案八:
而且,我本地的vs预览执行都是正常的,就是发布之后,访问网站就出现编译错误
解决方案九:
问题已解决,是因为项目的互相引用,而各项目的相同的dll版本不同。。比如有Toos功能类库,有web应用程序,都引用了Newtonsoft.Json。Tools里面是2.1版本,web里面是1.8版本。而web又引用了Toos项目,,这就导致网站生成发布后编译失败,所以,最终解决方案是:在解决方案上面右键,管理nuget包,合并整个解决方案的dll类库,使全部都同步版本。。
解决方案十:
屌爆了屌爆了