0
votes

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
Looks like a COM interop issue. Are you sure the interop assembly is compiled for 64-bit? You haven't specified any details of the Web application or its dependencies. That might help us help you.Sumo
Which interop assembly are you referring to? Our websites dont reference any .COM objectsBlueChameleon
I don't know. You have not specified any details about your application, only an error message that points to COM interop.Sumo
Note that some of your applications assemblies may in fact reference unmanaged code. For example, some PDF or ADO libraries come to mind. Help us out by giving us a list of dependencies that your application relies on.Sumo
One last comment - Your assumption about 32-bit/64-bit is incorrect. Just because the OS is 64-bit does not mean both versions of .NET won't be installed. They will both be there and you can run 32-bit only application pools as necessary.Sumo

1 Answers

0
votes

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.