Author Topic: Web Site will not work on IIS Windows Home Server 2011 (RESOLVED)  (Read 14221 times)

Mogulbasher

  • Newbie
  • *
  • Posts: 8
    • View Profile
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
« Last Edit: February 19, 2012, 09:51:15 am by John Hughes »

Mogulbasher

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Web Site will not work on IIS Windows Home Server 2011
« Reply #1 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

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
Re: Web Site will not work on IIS Windows Home Server 2011
« Reply #2 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.
John Hughes
Codecore Technologies

Mogulbasher

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Web Site will not work on IIS Windows Home Server 2011
« Reply #3 on: February 14, 2012, 07:00:23 pm »
Yes I followed the instructions.

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
Re: Web Site will not work on IIS Windows Home Server 2011
« Reply #4 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
John Hughes
Codecore Technologies

Mogulbasher

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Web Site will not work on IIS Windows Home Server 2011
« Reply #5 on: February 17, 2012, 03:03:04 pm »
Done.... Please see third from last sentence in first post.   ;)

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
Re: Web Site will not work on IIS Windows Home Server 2011
« Reply #6 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.
John Hughes
Codecore Technologies

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
Re: Web Site will not work on IIS Windows Home Server 2011
« Reply #7 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.
John Hughes
Codecore Technologies

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
Re: Web Site will not work on IIS Windows Home Server 2011
« Reply #8 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.
John Hughes
Codecore Technologies

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
Re: Web Site will not work on IIS Windows Home Server 2011
« Reply #9 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
John Hughes
Codecore Technologies

Mogulbasher

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Web Site will not work on IIS Windows Home Server 2011
« Reply #10 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

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
Re: Web Site will not work on IIS Windows Home Server 2011 (RESOLVED)
« Reply #11 on: February 19, 2012, 10:15:49 am »
Great, thanks for the feedback.
John Hughes
Codecore Technologies