首页 文章

IIS7 .NET x64 aspnet_regiis -i 导致类未注册错误

提问于
浏览
0

我们在 Windows Server 2008 R2 SP1 上运行 IIS7,网站在.NET 2.0 上运行。网站工作正常,但全局主题不起作用。我继续尝试在 Framework64 目录中执行 aspnet_regiis -c 并得到了

An error has occured: 0x80040154 Class not registered. 
The error indicates that IIS is not installed on the machine. 
Please install IIS before using this tool.

如果您想知道,enabled32bitApps 标志是关闭的,那么使用.NET x64。我继续并在 Framework64 文件夹中成功卸载(aspnet_regiis -u)并重新安装(aspnet_regiis -i).net。之后我得到了同样的结果试图运行aspnet_regiis -c

有谁知道这里可能出现什么问题?

1 回答

  • 0

    我找到了一个简单的解决方法,不包括运行aspnet_regiis -c命令。在 IIS 中的默认站点下,您应该已具有以下目录结构:

    aspnet_clinet --> system_web --> 2_0_50727
    

    您所要做的就是将主题复制到文件系统上的...\wwwroot\aspnet_client\system_web\2_0_50727\Themes,然后在aspnet_client\system_web\2_0_50727中创建一个 IIS 虚拟目录“Themes”,它映射到您的文件系统主题目录。

相关问题