Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/336.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用于C#5的Microsoft(R)Visual C#编译器版本4.6.1590.0_C#_Asp.net - Fatal编程技术网

用于C#5的Microsoft(R)Visual C#编译器版本4.6.1590.0

用于C#5的Microsoft(R)Visual C#编译器版本4.6.1590.0,c#,asp.net,C#,Asp.net,如何解决这个问题?我尝试了很多方法来授予文件夹权限,安装了这个(安装包Microsoft.Net.Compilers-Version2.2.0)等等,但没有结果 请建议。我是编程初学者。打开VS20xx(2012201320152017)的开发人员命令提示符。您可以在“开始”菜单中找到它。 然后运行以下命令: Microsoft (R) Visual C# Compiler version 4.6.1590.0 for C# 5 Copyright (C) Microsoft Corporati

如何解决这个问题?我尝试了很多方法来授予文件夹权限,安装了这个(安装包Microsoft.Net.Compilers-Version2.2.0)等等,但没有结果


请建议。我是编程初学者。

打开VS20xx(2012201320152017)的开发人员命令提示符。您可以在“开始”菜单中找到它。 然后运行以下命令:

Microsoft (R) Visual C# Compiler version 4.6.1590.0
for C# 5
Copyright (C) Microsoft Corporation. All rights reserved.

This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240

error CS0016: Could not write to output file 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\8d0dec5c\beef09e6\App_Code.ax95x44c.dll' -- 'Access is denied. '

这将设置要运行的IIS,通常会解决此错误

在我的本地服务器上,应用程序运行良好。尝试联机运行应用程序时显示此错误。我尝试过通过visualstudio ftp系统上传,也尝试过使用filezilla。提前感谢您提供解决方案。请在以下问题中添加更多信息:您尝试在何处运行应用程序,服务器如何配置为承载此应用程序,它使用的是什么用户帐户,以及该用户帐户对c:\Windows\Microsoft.NET\Framework\v4.0.30319\临时ASP.NET文件的权限。在宿主服务器上上载应用程序时会显示此错误。应用程序在我的本地服务器上运行良好(localhost和localhost:1242)。我将完全控制权分配给ASP.Net临时文件文件夹和c:/temp文件夹上的IIS_IUSR,并做了许多事情。什么都没用。请注意,当我将应用程序上载到托管服务器上时,会发生此错误。您没有在此处为我们提供任何上下文。为什么有东西试图写入那个目录?通常,您应该在源代码所在的同一区域构建代码(例如,在子目录中)。请提供更多的上下文。
aspnet_regiis -i