“/”应用程序中的服务器错误。
编译错误
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。
编译器错误消息: CS0016: 未能写入输出文件“c:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files
ootced0a05547c0aa5App_global.asax.eysz8clj.dll”--“拒绝访问。 ”
源错误:
[没有相关的源行] |
源文件: 行: 0
c:windowssystem32inetsrv> "C:WindowsMicrosoft.NETFramework64v4.0.30319csc.exe" /t:library /utf8output /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files ootced0a05547c0aa5assemblydl38e3dbed3c3ba73ad_b837d101Maker.Web.UI.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILMicrosoft.CSharpv4.0_4.0.0.0__b03f5f7f11d50a3aMicrosoft.CSharp.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_64System.EnterpriseServicesv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.EnterpriseServices.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModel.Activitiesv4.0_4.0.0.0__31bf3856ad364e35System.ServiceModel.Activities.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files ootced0a05547c0aa5assemblydl32223e5317148a7ac_b837d101Maker.Common.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files ootced0a05547c0aa5assemblydl3c8669c4bf15e3e2a_f8d4d001EntityFramework.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ComponentModel.DataAnnotationsv4.0_4.0.0.0__31bf3856ad364e35System.ComponentModel.DataAnnotations.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Corev4.0_4.0.0.0__b77a5c561934e089System.Core.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files ootced0a05547c0aa5assemblydl33211813c297b86b2_d548d001SharpZipLib.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.Servicesv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Web.Services.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Data.Entityv4.0_4.0.0.0__b77a5c561934e089System.Data.Entity.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.DynamicDatav4.0_4.0.0.0__31bf3856ad364e35System.Web.DynamicData.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Configurationv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Configuration.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.WebPages.Deploymentv4.0_2.0.0.0__31bf3856ad364e35System.Web.WebPages.Deployment.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_64System.Webv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Web.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.ApplicationServicesv4.0_4.0.0.0__31bf3856ad364e35System.Web.ApplicationServices.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModelv4.0_4.0.0.0__b77a5c561934e089System.ServiceModel.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files ootced0a05547c0aa5assemblydl37d9e2508f4ab00ad_b837d101DTA_Web.Model.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Data.DataSetExtensionsv4.0_4.0.0.0__b77a5c561934e089System.Data.DataSetExtensions.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.Extensionsv4.0_4.0.0.0__31bf3856ad364e35System.Web.Extensions.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files ootced0a05547c0aa5assemblydl3642aafb0495135ad_b837d101DTA_Web.BLL.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files ootced0a05547c0aa5assemblydl3e1c4520d 0bd0349_25bfce01Newtonsoft.Json.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319mscorlib.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.IdentityModelv4.0_4.0.0.0__b77a5c561934e089System.IdentityModel.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files ootced0a05547c0aa5assemblydl32c04599786a5f652_ba37d101DTA_Web.Web.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModel.Webv4.0_4.0.0.0__31bf3856ad364e35System.ServiceModel.Web.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Xml.Linqv4.0_4.0.0.0__b77a5c561934e089System.Xml.Linq.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.WorkflowServicesv4.0_4.0.0.0__31bf3856ad364e35System.WorkflowServices.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystemv4.0_4.0.0.0__b77a5c561934e089System.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files ootced0a05547c0aa5assemblydl37b67aac7 0a317e7_30c1ce01Microsoft.QualityTools.Testing.Fakes.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Xmlv4.0_4.0.0.0__b77a5c561934e089System.Xml.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILMicrosoft.VisualStudio.Web.PageInspector.Loaderv4.0_1.0.0.0__b03f5f7f11d50a3aMicrosoft.VisualStudio.Web.PageInspector.Loader.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.NetassemblyGAC_MSILSystem.ServiceModel.Activationv4.0_4.0.0.0__31bf3856ad364e35System.ServiceModel.Activation.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files ootced0a05547c0aa5assemblydl37297862d89f484b2_d548d001LitJSON.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files ootced0a05547c0aa5assemblydl392f4105f6181f0b_3d8ed001NLog.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_64System.Datav4.0_4.0.0.0__b77a5c561934e089System.Data.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Activitiesv4.0_4.0.0.0__31bf3856ad364e35System.Activities.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files ootced0a05547c0aa5assemblydl31a3f924869ba282c_f8d4d001EntityFramework.SqlServer.dll" /out:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files ootced0a05547c0aa5App_global.asax.eysz8clj.dll" /debug- /optimize+ /w:4 /nowarn:1659;1699;1701;612;618 /warnaserror- "C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files ootced0a05547c0aa5App_global.asax.eysz8clj.0.cs" "C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files ootced0a05547c0aa5App_global.asax.eysz8clj.1.cs" Microsoft(R) Visual C# 编译器版本 4.0.30319.34209 用于 Microsoft(R) .NET Framework 4.5 版权所有 (C) Microsoft Corporation。保留所有权利。 error CS0016: 未能写入输出文件“c:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Files ootced0a05547c0aa5App_global.asax.eysz8clj.dll”--“拒绝访问。 ” |
版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.34280
解决方案:
原因是由于系统目录下的Temp目录无相应的权限所致,具体操作如下:
来到C:/Windows目录,修改temp文件夹的属性。
在安全页设置IIS-IUSRS的权限,赋予修改、读取、写入等权限。