无法访问IIS元数据库ASP.Net [英] Unable to access the IIS metabase ASP.Net

查看:307
本文介绍了无法访问IIS元数据库ASP.Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我知道有这个几个线程,但没有解决方案似乎为我工作。

Hi I know there are a few threads on this but none of the solutions seem to work for me.

我有我试图加载和Visual Studio中发布一个ASP.Net网站项目。然而,当我加载的项目我得到的错误:

I have an ASP.Net website project which I am trying to load and publish in Visual Studio. However when I load the project I get the error:

在virtuald目录 HTTP创作://本地主机:XXXX 失败
  错误:无法访问IIS元数据库。你没有
  足够的权限来访问你的机器上的IIS网站。

Creation of the virtuald directory http://localhost:xxxx failed with the error: Unable to access the IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine.

当我运行Visual Studio作为管理员此错误只发生。如果我不作为管理员身份运行则不会出现上述错误,但是当我尝试发布我的应用程序我得到:

This error only occurs when I run Visual Studio as Administrator. If I don't run as admin then the above error does not occur but when I try to publish my app I get:

请推出的Visual Studio在管理员模式下才能执行此
  部署行动

Please launch Visual Studio under administrator mode to perform this deployment action

看来我赢不了!

我试过到目前为止:


  • 拍摄的的C所有权:/在Windows / System32下/ INETSRV /配置

  • 设置< UseIISEx preSS>假LT; / UseIISEx preSS>在我project_name.csproj文件

  • 返回到老的的Team Foundation Server 的检查中未在管理模式的问题,并使用该配置。

  • 运行Visual Studio以非管理员(的作品,但是注意上述第二个错误)

  • Taking ownership of C:/Windows/System32/Inetsrv/Config
  • Setting <UseIISExpress>false</UseIISExpress> in my project_name.csproj file
  • Go back to and old team foundation server check in that didn't have the problem in admin mode and use that configuration.
  • Running Visual Studio as non-admin (works but note second error above)

无任何运气至今。

额外的信息:

操作系统:windows 8.1(64位)

Operating System: Windows 8.1 (64 bit)

Visual Studio中:2013

Visual Studio: 2013

IIS:8.5

基于C的权限:\\ WINDOWS \\ SYSTEM32 \\ INETSRV \\ CONFIG(只读):

Permissions on C:\Windows\System32\inetsrv\config (read only):


  1. 我:完全控制

  2. Administrators:完全控制

在文件/ IISEx preSS /配置权限(只读):

Permissions on Documents/IISExpress/config (read only):


  1. 我:完全控制

  2. Administrators:完全控制

请注意文件是一个网络驱动器上

Note "Documents" is on a network drive

推荐答案

原来我的个人文件夹被设置为一个偶尔下楼引起描述的错误网络驱动器。

It turns out my Personal Folder was set to a network drive which occasionally went down causing the error described.

要更改您的个人文件夹:

To change your Personal folder:


  • 开启 C://Windows/regedit.exe

  • 导航到 HKEY_CURRENT_USER \\软件\\微软\\的Windows \\ CurrentVersion \\ Explorer中\\用户文件夹壳

  • 字段个人更改为%USERPROFILE%%USERPROFILE%\\ {一您所选择的文件夹}

  • Open C://Windows/regedit.exe
  • Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
  • Change the field Personal to %USERPROFILE% or %USERPROFILE%\{a folder of your choice}

这解决了这个问题对我来说。

This fixed the problem for me.

请注意您可能需要的任何文件从旧的个人文件夹移动到您的新的,因为他们不会被拾起更多

Note you may need to move over any files from your old Personal folder to your new one as they wont be picked up any more

这篇关于无法访问IIS元数据库ASP.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆