IIS7 .NET x64 aspnet_regiis -i causes class not registered error

北战南征 提交于 2020-01-06 06:31:27

问题


We are running IIS7 on Windows Server 2008 R2 SP1, with websites running on .NET 2.0. The websites work fine except that global themes do not work. I went ahead and tried to do aspnet_regiis -c in the Framework64 directory and got

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.

If you are wondering, the enabled32bitApps flag is off, so .NET x64 is used. I went ahead and uninstalled (aspnet_regiis -u) and reinstalled (aspnet_regiis -i) .net in Framework64 folder successfully. Afterwards I got same result trying to run aspnet_regiis -c.

Does anyone have any idea what could be the problem here?


回答1:


I have found a easy workaround for this which does not include running the aspnet_regiis -c command. Under your default site in IIS, you should already have following directory structure:

aspnet_clinet --> system_web --> 2_0_50727 

All you have to do is copy your themes into ...\wwwroot\aspnet_client\system_web\2_0_50727\Themes on your file system and then create a IIS virtual directory "Themes" in aspnet_client\system_web\2_0_50727 which maps to your file system Themes directory.



来源:https://stackoverflow.com/questions/15119251/iis7-net-x64-aspnet-regiis-i-causes-class-not-registered-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!