编译器错误消息:CS0016:无法写入输出文件

问题描述:

您好b $ b

我面临以下错误



编译器错误消息:CS0016:无法写入输出文件'c:\ WINNT \ Microsoft.NET \ Framework \v2.0.40607 \Temporary ASP.NET Files \root \305f67d8 \d5f9a47c \Profilerkln0_qw.dll' - '访问被拒绝。 '



对于文件夹c:\ WINNT \ Microoft.NET \ Framework \v2.0.50727 \Temporary ASP.NET Files \ apcccheck \\ \\ _675fad49 \be31c372 \和C:\ WINNT \ Temp用户网络服务拥有权限完全控制。

Hi
I am facing this below error

Compiler Error Message: CS0016: Could not write to output file 'c:\WINNT\Microsoft.NET\Framework\v2.0.40607\Temporary ASP.NET Files\root\305f67d8\d5f9a47c\Profilerkln0_qw.dll' -- 'Access is denied. '

For the folders "c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\apccheck\675fad49\be31c372\" and "C:\WINNT\Temp" the user "Network Service" has the permission full control.

错误本身很自我解释。



您的ASP.NET应用程序在网络帐户上运行,它没有在指定文件夹中写入任何内容的权限。



两个选项:

1.提供对网络帐户的访问权限

2.或者将帐户更改为ASPNET或任何其他帐户有访问权限。



您甚至可以使用Web.Config文件中的模拟标记来模拟调用。通过模拟完成特定用户后,为该用户帐户提供所需的权限。
Error in itself is quite self explanatory.

Your ASP.NET application is running on network account and it does not have the permissions to write anything in the folders specified.

Two options:
1. Either provide the access permissions to the network account
2. Or change the account to ASPNET or any other account that has an access.

You can even impersonate the calls using the impersonation tag in Web.Config file. Once a specific user is done by impersonation, give that user account the needed privileges.