Codecore Technologies - Elve

Configuration => Web Browser Interface => Topic started by: Mogulbasher on February 09, 2012, 05:28:48 pm

Title: Web Site will not work on IIS Windows Home Server 2011 (RESOLVED)
Post by: Mogulbasher on February 09, 2012, 05:28:48 pm
I saw another topic on this but it was 120 days old so I thought I would post a new one.

HTTP Error 500.21 - Internal Server Error

Handler "j9sp" has a bad module "ManagedPipelineHandler" in its module list

Discussion seems to be about integrated vs classic pipeline mode.  I have made sure that the application is running in what IIS calls the Classic .NET AppPool which is .Net Framework 2.0 Pipline mode classic.

Under the things you can try it lists
•Install ASP.NET if you are using managed handler.
•Ensure that the handler module's name is specified correctly. Module names are case-sensitive and use the format modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule".

I have made sure .NET 2 is running by typing aspnet_regiis.exe -i at the command prompt in the .net 2 folder

The other one seems to be something I cant deal with as I assume its inside the DLL files.

Any advice...

Thanks Andrew
Title: Re: Web Site will not work on IIS Windows Home Server 2011
Post by: Mogulbasher on February 09, 2012, 05:44:06 pm
oh and I checked that ASP was running on the server in the Roles section of installed programs and features
Title: Re: Web Site will not work on IIS Windows Home Server 2011
Post by: John Hughes on February 12, 2012, 10:46:06 pm
I have not tested it on 2011 yet but it should work.

Did you take a look at the documentation here: http://codecoretechnologies.com/content/Configuring%20IIS%20for%20J9SP.ashx

Also, it should work with both pipeline modes... it's just a matter of how you configure the web.config file.
Title: Re: Web Site will not work on IIS Windows Home Server 2011
Post by: Mogulbasher on February 14, 2012, 07:00:23 pm
Yes I followed the instructions.
Title: Re: Web Site will not work on IIS Windows Home Server 2011
Post by: John Hughes on February 15, 2012, 10:02:35 pm
Please try running the following command to ensure asp.net is completely registered with iis:

aspnet_regiis.exe - i

You will need to run this from a command prompt with administrative privileges.

The exe can be found here: C:\Windows\Microsoft.NET\Framework\v2.0.50727
Title: Re: Web Site will not work on IIS Windows Home Server 2011
Post by: Mogulbasher on February 17, 2012, 03:03:04 pm
Done.... Please see third from last sentence in first post.   ;)
Title: Re: Web Site will not work on IIS Windows Home Server 2011
Post by: John Hughes on February 17, 2012, 03:07:08 pm
You are on top of things! :) That covers the basics... I'll need to install Elve on a HS2011 box and see what I can do.
Title: Re: Web Site will not work on IIS Windows Home Server 2011
Post by: John Hughes on February 17, 2012, 04:40:34 pm
I think I see the issue...

Windows home server is a 64 bit OS and IIS is running in 64 bit mode.

Since we recently made the switch to 32bit, IIS can't load the 32 bit WebLibrary.dll because it is running in 64 bit mode.

I'll create a new 32/64bit agnostic version of WebLibrary.dll and create a new release.  If you manually copied any dlls from Elve, make sure you replace then after the next version.  Tech note: CodecoreTechnologies.Elve.dll is already 32/64bit agnostic.
Title: Re: Web Site will not work on IIS Windows Home Server 2011
Post by: John Hughes on February 17, 2012, 04:52:59 pm
I posted a new build with a 32/64 bit agnostic WebLibrary.dll file. I'm hoping this fixes the issue for you... although I have not yet duplicated the problem and tryied the solution... I need WHS2011 first.

Please install the 1.1.0.89 version. If you manually copied any of the Elve assemblies anywhere (such as into your web bin directory) be sure to replace them with the newer version.

Please let me know if this fixes the issue.
Title: Re: Web Site will not work on IIS Windows Home Server 2011
Post by: John Hughes on February 17, 2012, 05:03:28 pm
UPDATE: I have tested version 1.1.0.89 on a WHS2011 machine and it works.  8)

Please let me know your results. Thanks
Title: Re: Web Site will not work on IIS Windows Home Server 2011
Post by: Mogulbasher on February 19, 2012, 06:23:06 am
Ok I finally got it working.  Couple of things to add to the instructions....

1) Please make sure you run aspnet_regiis.exe - i in both the C:\Windows\Microsoft.NET\Framework\v2.0.50727 and the C:\Windows\Microsoft.NET\Framework64\v2.0.50727 folders

2) Go to the application pool in IIS and click on Classic.Net App Pool and make sure the pipeline is running in Integrated Mode.  IT will not work in Classic.

Andrew
Title: Re: Web Site will not work on IIS Windows Home Server 2011 (RESOLVED)
Post by: John Hughes on February 19, 2012, 10:15:49 am
Great, thanks for the feedback.