HTTP Error 500.21

0
0

Hi

I use wisej 3.0 but when ı pulich to web site ı get error HTTP Error 500.21 – Internal Server Error Bad “ManagedPipelineHandler” module in module list of “wisej” handler.

ı see Get error from  crome console  sitename.com/wisej.wx file

 

I used .net 7.0

 

I installed Asp.net modules from server roles

 

web config

 

<?xml version=”1.0″ encoding=”utf-8″?>
<!–
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
–>
<configuration>
<appSettings>
<add key=”Wisej.LicenseKey” value=”” />
<add key=”Wisej.DefaultTheme” value=”Tema” />
</appSettings>
<system.web>

<compilation debug=”true” />
<httpRuntime targetFramework=”4.8″ maxRequestLength=”1048576″ />
<httpModules>
<add name=”Wisej” type=”Wisej.Core.HttpModule, Wisej.Framework” />
</httpModules>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration=”false” />
<handlers>
<!–
Uncomment the aspNetCore handler below to deploy to IIS when using .NET Core.
–>
<!–<add name=”aspNetCore” path=”*” verb=”*” modules=”AspNetCoreModuleV2″ resourceType=”Unspecified” />–>
<add name=”json” verb=”*” path=”*.json” type=”System.Web.HttpForbiddenHandler” />
<add name=”wisej” verb=”*” path=”*.wx” type=”Wisej.Core.HttpHandler, Wisej.Framework” />
<add name=”aspNetCore” path=”*” verb=”*” modules=”AspNetCoreModuleV2″ resourceType=”Unspecified” />
</handlers>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength=”1073741824″ />
</requestFiltering>
</security>
<defaultDocument enabled=”true”>
<files>
<add value=”Default.html” />
</files>
</defaultDocument>
<!–
Uncomment the aspNetCore section below to deploy to IIS when using .NET Core.
–>
<!–<aspNetCore stdoutLogEnabled=”false” hostingModel=”InProcess” processPath=”bin\Debug\net6.0\CargoV4ClientLayer.exe” arguments=”” />–>
<aspNetCore processPath=”.\ClientLayer.exe” stdoutLogEnabled=”false” stdoutLogFile=”.\logs\stdout” hostingModel=”inprocess” />
</system.webServer>
<!–
Uncomment the trace listener below to enable logging to a log file.
–>
<!–
<system.diagnostics>
<trace autoflush=”true” indentsize=”4″>
<listeners>
<remove name=”Default” />
<add name=”Default” type=”System.Diagnostics.TextWriterTraceListener” initializeData=”Trace.log” />
</listeners>
</trace>
</system.diagnostics>
–>
</configuration>
<!–ProjectGuid: c74a3fd8-8c25-4453-b9f3-1145df0aaee4–>

 

 

  • You must to post comments
1
0

Hello,

I ran into the same problem and found the reason, so for anyone else, who might experience the same behaviour:

 

The order of the entries in the handlers section in web.config is important, the aspNetCore has to be first in the list:

<handlers>
<add name=”aspNetCore” path=”*” verb=”*” modules=”AspNetCoreModuleV2″ resourceType=”Unspecified” />
<add name=”json” verb=”*” path=”*.json” type=”System.Web.HttpForbiddenHandler” />
<add name=”wisej” verb=”*” path=”*.wx” type=”Wisej.Core.HttpHandler, Wisej.Framework” />
</handlers>

After changing the order of the handlers everything worked like a charm!

 

  • You must to post comments
0
0

I add error details

Attachment
  • You must to post comments
0
0

Hi Luca

I have followed all the steps in your documentation, but when the application is opened, the loader remains on the screen. When I look from the chrome console, wisej.wx continues to give an error. When I make a small application, I can deploy and run it without problems, but whatever I have done in my big application, I cannot overcome this error, is there anything else I need to look at or any advice? is there 🙁

  • You must to post comments
0
0

ManagedPipelineHandler

 

You have the wrong app pool. See our deployment docs.

  • HSoft
    • HSoft
    • Feb 8, 2023 - 4:17 pm
    I have followed all the steps in your documentation, but when the application is opened, the loader remains on the screen. When I look from the chrome console, wisej.wx continues to give an error. When I make a small application, I can deploy and run it without problems, but whatever I have done in my big application, I cannot overcome this error, is there anything else I need to look at or any advice? is there :(
  • Luca (ITG)
    What error?
  • HSoft
    • HSoft
    • Feb 11, 2023 - 2:28 pm
    I add screen
  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.