简体   繁体   English

Aspnet 核心在哪里可以找到项目的默认应用程序池名称

[英]Aspnet core where to find default app pool name of a project

While I am attempting to save static files in the wwwroot, my aspnet core app throws:当我尝试在 wwwroot 中保存静态文件时,我的 aspnet 核心应用程序抛出:

UnauthorizedAccessException: Access to the path <path> denied.

I have already found the solution here: https://stackoverflow.com/a/48935373/8475133 , but I cannot get the right application pool name: DefaultAppPool and IIS AppPool\\DefaultAppPool does not work.我已经在这里找到了解决方案: https : //stackoverflow.com/a/48935373/8475133 ,但我无法获得正确的应用程序池名称:DefaultAppPool 和 IIS AppPool\\DefaultAppPool 不起作用。 Where to find it?在哪里可以找到它?

You can create a new Application pool by going to Application Pool -> Add Application Pool as follows,您可以通过转到Application Pool -> Add Application Pool来创建一个新的应用Application Pool -> Add Application Pool ,如下所示,

在此处输入图片说明

Open IIS Manager, select your website in left hand pane, and then click Basic Settings in the right hand pane.打开 IIS 管理器,在左侧窗格中选择您的网站,然后单击右侧窗格中的Basic Settings It will display a modal dialog and from here you can find the Application pool used by your application Pool它将显示一个模式对话框,从这里您可以找到您的应用程序池使用的应用程序池在此处输入图片说明

Next, select the Application Pools in left pane, and the then click Advanced Settings in right pane.接下来,在左窗格中选择应用程序池,然后在右窗格中单击Advanced Settings It will show the Application Pool properties.它将显示应用程序池属性。 Identity property is set to ApplicationPoolIdentity Identity属性设置为ApplicationPoolIdentity

Note: Since you are deploying ASP.NET Core application ensure your .NET CLR Version property is set to No Managed Code注意:由于您正在部署 ASP.NET Core 应用程序,请确保您的.NET CLR Version属性设置为No Managed Code

在此处输入图片说明

Next for setting the write permissions for Application Pool User, select your website in left pane, right click and then click Edit Permissions .接下来为应用程序池用户设置写入权限,在左窗格中选择您的网站,右键单击,然后单击Edit Permissions In the opened dialog box, go to the Security tab and then click Edit .在打开的对话框中,转到“安全”选项卡,然后单击“ Edit Click Add and then type in the Application Pool Identity user.单击Add ,然后键入应用程序池标识用户。 The format for Application Pool user is IIS AppPool{Application pool name} for example for DefaultAppPool the username will be IIS AppPool\\DefaultAppPool .应用程序池用户的格式为IIS AppPool{应用程序池名称} ,例如 DefaultAppPool 的用户名将是IIS AppPool\\DefaultAppPool Next click on Check Names button and in case of valid name the username will be underlined in the TextArea.接下来单击“ Check Names按钮,如果名称有效,则用户名将在 TextArea 中加下划线。 Finally click OK .最后点击OK

Next with the IIS App Pool user selected, check the Modify checkbox and click OK.接下来选择 IIS 应用程序池用户,选中Modify复选框并单击确定。

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法访问已处置的 object。 Object 名称:AspNet Core/EF Core 项目中出现“IServiceProvider”错误 - Cannot access a disposed object. Object name: 'IServiceProvider' error in AspNet Core/EF Core project IIS杀死ASPNET核心应用程序 - IIS killing ASPNET Core app Aspnet Core 应用程序在生产环境中引发开发人员异常 - Aspnet Core app throws develoeper exception on Production 如何在没有默认布局的情况下在 aspnet core mvc 上映射默认控制器 - how to map a default controller on aspnet core mvc without the default layout 将AspNet Core添加到标准Dotnet Core控制台应用程序 - Adding AspNet Core to standard Dotnet Core Console app 注入ApplicationDbContext以在多层项目的Aspnet Core Identity中使用 - Injecting ApplicationDbContext to use in Aspnet Core Identity in multilayer project 转换为 AS.NET Core 3.1 后 MVC 找不到视图 - MVC can't find Views after converting to ASPNET Core 3.1 azure 应用服务中的谷歌应用凭证(as.net core web api) - Google application credentials in azure app service (aspnet core web api) ASPNET 5项目无法找到引用的DLL中使用的终结点配置(ServiceModel) - ASPNET 5 project is unable to find endpoint configuration (ServiceModel) utilised in a referenced DLL 如何使用 Entity Framework Core 提高 as.net core 项目性能,升级我的 .NET 项目部分 - How can I faster aspnet core project performance with Entity Framework Core, Uptemize my .NET Project section
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM