未能访问IIS元数据库 [英] Failed to access IIS metabase
问题描述
我有这个IIS太麻烦了。
首先,它是给我拒绝了错误的虚拟目录。
I am having too much trouble with this IIS. First it was giving me an error Virtual directory denied.
我意识到有一个在文档选项卡中的Default.aspx没有。(它具有的Default.asp,Default.htm的,iistart,index.htm的)。经检查发现liitle箱启用默认文档
I realized there was no default.aspx in the documents tab.. (it has default.asp, default.htm, iistart, index.htm). Checked that liitle box enable default documents
现在它说未能访问IIS元数据库
说明:执行当前Web请求的执行过程中发生未处理的异常。请检查堆栈跟踪有关该错误的详细信息以及它起源于code。
Now it says Failed to access IIS metabase Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
异常详细信息:System.Web.Hosting.HostingEnvironmentException:未能访问IIS元数据库
Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase
这是第一次在IIS上工作。所以我需要UR提示和修复
This is the first time working on IIS.. So I need ur hints and fixes
谢谢
SC
推荐答案
您需要在您的系统上安装.NET Framework
You need to install the .net framework on you system
打开Visual Studio命令提示符,然后输入以下命令
Open visual studio command prompt and type this command
aspnet_regiis -ga <UserName>
如果这个doesn'twork比使用此命令
if this doesn'twork than use this command
aspnet_regiis -i
另外,您可以复制到Windows命令提示符粘贴此命令
alternatively you can copy and paste this command into windows command prompt
%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
这将解决您的问题。
这篇关于未能访问IIS元数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!