简体   繁体   English

无法访问临时 asp.net 文件

[英]Unable to access temporary asp.net files

I'm running Win 10, VS Express for Web 2015. I have an existing asp.net membership database that I want to amend using the Web Site Administration Tool.我正在运行 Win 10,VS Express for Web 2015。我有一个现有的 asp.net 会员数据库,我想使用网站管理工具对其进行修改。

I followed this hack to manually start the Web Site Administration Tool via the IIS: Visual Studio 2013 and ASP.NET Web Configuration Tool我按照这个 hack 通过 IIS 手动启动网站管理工具: Visual Studio 2013 和 ASP.NET Web 配置工具

The Web Site Administration Tool launches fine.网站管理工具启动良好。 However, when I go to the security tab, I get the following error message: Access to the path 'C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\Temporary ASP.NET Files\\root\\19aec8c6\\ee1f4195\\hash' is denied.但是,当我转到安全选项卡时,收到以下错误消息:访问路径 'C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\Temporary ASP.NET Files\\root\\19aec8c6\\ee1f4195\\hash ' 被拒绝。

I've gone into the Temporary ASP.Net files folder and changed the properties for my userid to give me full control, yet I continue to run up against the same error.我进入了 Temporary ASP.Net files 文件夹并更改了我的用户 ID 的属性以让我完全控制,但我继续遇到相同的错误。

Update: I turned on the IIS in the Windows Feature and that seemed to make some progress.更新:我在 Windows 功能中打开了 IIS,这似乎取得了一些进展。 Now when I run the Web Site Administration Tool, I get a different error when I click on the security tab: Access to the path 'C:\\Users\\XXXX\\AppData\\Local\\Temp\\Temporary ASP.NET Files\\root\\19aec8c6\\ee1f4195\\hash' is denied.现在,当我运行网站管理工具时,当我单击安全选项卡时出现不同的错误: Access to the path 'C:\\Users\\XXXX\\AppData\\Local\\Temp\\Temporary ASP.NET Files\\root\\19aec8c6 \\ee1f4195\\hash' 被拒绝。

Any suggestions?有什么建议?

Did you notice the update left on the referenced answer ;您是否注意到参考答案更新?

IMPORTANT EDIT: I am sorry, I just realized that it matters if you start console with administrator priviledges.重要编辑:对不起,我刚刚意识到如果您以管理员权限启动控制台很重要。 Don't do that.不要那样做。 If console has administrator rights, the Web Configuration Tool shows this error on the Security page:如果控制台具有管理员权限,则 Web 配置工具会在“安全”页面上显示此错误:

There is a problem with your selected data store.您选择的数据存储有问题。 This can be caused by an invalid server name or credentials, or by insufficient permission.这可能是由于服务器名称或凭据无效,或者权限不足造成的。 It can also be caused by the role manager feature not being enabled.这也可能是由于未启用角色管理器功能所致。 Click the button below to be redirected to a page where you can choose a new data store.单击下面的按钮重定向到一个页面,您可以在其中选择新的数据存储。 The following message may help in diagnosing the problem: Access to the path 'C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\Temporary ASP.NET Files\\root\\1c3fef5c\\2180c7f9\\hash' is denied.以下消息可能有助于诊断问题:访问路径“C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\Temporary ASP.NET Files\\root\\1c3fef5c\\2180c7f9\\hash”被拒绝。

Looks like the same issue.看起来是同样的问题。

Just Change TEMP location to " C:\\Windows\\Temp " and restart Visual Studio只需将TEMP位置更改为“ C:\\Windows\\Temp ”并重新启动 Visual Studio

If you wish, you can reset TEMP location to "%USERPROFILE%\\AppData\\Local\\Temp" after work fine.如果您愿意,可以在工作正常后将 TEMP 位置重置为“%USERPROFILE%\\AppData\\Local\\Temp”。

尼勒什·乌马雷蒂亚

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM