Visual Studio IIS Express错误“无法访问IIS元数据库” [英] Visual Studio IIS Express Error “Unable to access the IIS metabase”

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

问题描述


我们的IT团队将我们的机器设置为指向我的"我的文档"。文件夹到网络/服务器共享驱动器而不是本地"C:\"驾驶。所以现在当我使用Visual Studio时,我需要连接到我们的网络。如果我不这样做,我经常会收到IIS Express
相关的错误,因为它正在查找该网络文件夹中的配置设置。



我假设发生这种情况是因为当我安装VS时,我连接到网络,所以一些配置/设置文件就在那里。在这个假设下工作,我尝试卸载,然后在没有连接到网络时重新安装。这似乎是
部分工作(例如,我现在可以在离线时创建项目 - 之前不可能),但是,我仍然遇到IIS Express问题。



如何将IIS Express设置更改为在本地工作?

解决方案

您好,


欢迎来到MSDN论坛。


您使用的是什么项目模板?


请尝试更改项目位置并检查问题坚持。



此外,请查看以下解决方案:


在Windows 8 Pro上:


%systemroot%\inetsrv\config


在Windows 7和8.1和10上


%systemroot%\ System32 \inetsrv\config


(%systemroot%通常为C:\ Windows)


在Windows资源管理器中导航到上面的相应位置。您将被阻止访问,弹出窗口显示:


"您无权访问此文件夹 - 单击"继续以永久访问此文件夹"


点击此文件夹的"继续",然后点击导出文件夹。我将快捷方式改回"Run as me"; (域和本地管理员的成员)并能够打开和部署解决方案。


和这些



  • 关闭Windows中的IIS和.Net Framework功能,然后重新打开它们。
  • 使用'Run as 启动Visual Studio管理员'。您可以通过右键单击快捷方式来执行此操作。选择"以管理员身份运行"。

参考:
https://stackoverflow.com/questions/12859891/error-unable-to-access-the-iis-metabase?page=1& tab = votes#tab-top



祝你好运,


Joyce


Our IT team setup our machines to point our "My Documents" folder to a network/server shared drive versus on the local "C:\" drive. So now when I use Visual Studio, I need to be connected to our network. If I don't I often get IIS Express related errors because it is looking for configuration settings that are in that network folder.

I assuming this happened because when I installed VS, I was connected to the network, so some configuration/settings files went there. Working under that assumption, I tried uninstalling and then reinstalling when not connected to the network. That seemed to work partially (e.g. I can now create projects while offline - couldn't before), however, I'm still experiencing issues with IIS Express.

How can I change the IIS Express settings to work locally?

解决方案

Hi,

Welcome to MSDN forum.

What's the project template do you use?

Please try to change project location and check if the issue persists.

Besides, please have a look at the following solutions:

On Windows 8 Pro:

%systemroot%\inetsrv\config

On Windows 7 and 8.1 and 10

%systemroot%\System32\inetsrv\config

(Where %systemroot% is usually C:\Windows)

Navigate to the appropriate location above in Windows Explorer. You will be blocked access with a popup which says:

"You don't have access to this folder - Click continue to permanently get access to this folder"

Click 'continue' for this folder, and with the Export folder underneath. I changed the shortcut back to "Run as me" (a member of the domain and local administrators ) and was able to open and deploy the solution.

and these

  • turning off the IIS and .Net Framework features within Windows and then turning them back on.
  • Start your Visual Studio with ‘Run as  Administrator’. You can do this by right clicking the shortcut and  selecting ‘Run as Administrator’.

refer: https://stackoverflow.com/questions/12859891/error-unable-to-access-the-iis-metabase?page=1&tab=votes#tab-top

Best regards,

Joyce


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

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