当我尝试启动 WebMatrix 时,我收到一条警告,提示“无法初始化 IIS Express。请确保它已正确安装和配置。”
我已经卸载并重新安装了 IIS Express 和 WebMatrix,这种行为没有改变。我在网上找到的建议是假设 HKEY_CLASSES_ROOT\Microsoft.IIS.VersionManager 注册表项的所有权,并用该注册表项中的权限替换所有子对象权限。这似乎没有帮助。
在事件查看器中,每当 iisexpresstray.exe 或 webmatrix.exe 尝试启动时,我都可以看到 .net 运行时异常:
System
- Provider [ Name] .NET Runtime
- EventID 1026 [ Qualifiers] 0 Level 2 Task 0 Keywords 0x80000000000000
- TimeCreated [ SystemTime] 2012-09-29T21:28:02.000000000Z EventRecordID 162768 Channel Application Security
EventData Application: iisexpresstray.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.ArgumentNullException >Stack: at System.Runtime.InteropServices.Marshal.FinalReleaseComObject(System.Object) at Microsoft.Web.VersionManager.IisExpressVersion.Dispose(Boolean) at Microsoft.Web.VersionManager.IisVersion.Finalize()
对于诊断和解决此问题的任何帮助,我将不胜感激。 WebMatrix 对我即将推出的项目来说几乎是必不可少的。谢谢!
最佳答案
出于某种原因,安装 IIS 8 Express 解决了这个问题。
关于iis-7.5 - 尝试启动 WebMatrix 时出现 IIS 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12656744/