Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Commerce Manager falls back to default login when Epi CMS app pool runs in 32-bit application mode

Vote:
 

Hi!

We are using

  • Windows server 2019
  • IIS 10
  • Episerver CMS 11.20.12.0
  • Episerver Commerce 13.32.2
  • Owin OpenID authentication

Episerver CMS and commerce running in separate app pools. The CMS runs at port 80/443 and commerce manager runs at 8080. Both uses same host name.

The authentication is handled from the CMS site that sends the user to a separate login service and the user gets logged in. We can then go to the commerce site were we are automatically logged in. If we go directly to the commerce site with cleared cookies, we get the default login prompt.

Due to memory issues when running Episerver CMS with the setting "32-bit application mode" set to "False", we tried changing this feature to "True". This helped the memory issues (that we will investigate separately). The login for the CMS app works fine. The side effect though, is that commerce manager now shows the default login prompt instead of using the cookies we got from the CMS site and go through the owin pipeline. I changed "32-bit application mode" back to "False" for the CMS app pool - and the automatic login works again.

No errors in EpiserverErrors.log or CommerceErrors.log.

However we got some errors in the developer console if we can get any leads around that:

The script from “https://mydomain.com:8080/Apps/Shell/Pages/Login.aspx?ReturnUrl=%2FWebResource.axd%3Fd%3Dx2nkrMJGXkMELz33nwnakEKs8Xf_lhL8H9Y04lYR8v9jtlpo-n_9p7MvqfeQEq86GtzxlA0TcmEmE_4Qt05i-aqG4NORraeUzuoC5ww0ui81%26t%3D637814689746327080” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
Login.aspx
The script from “https://mydomain.com:8080/Apps/Shell/Pages/Login.aspx?ReturnUrl=%2FWebResource.axd%3Fd%3DJoBkLzP19aTuxbWOhHobYvStgiS8ig25-OlOcaVeCwS3l-JmYfovCwfidTHGrhxFOubYKLyQ9ZrAaSc3Hr7UbA2%26t%3D637814689746327080” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
Login.aspx
The script from “https://mydomain.com:8080/Apps/Shell/Pages/Login.aspx?ReturnUrl=%2FWebResource.axd%3Fd%3DpynGkmcFUV13He1Qd6_TZBQJfZ0okDMMRpoj5R1RuPXCHLfyBpR3eQ6dNfaW8ff1h4WV2sjTIgF5TQlSwHAFHA2%26t%3D637814689746327080” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
Login.aspx
Uncaught SyntaxError: expected expression, got '<'
WebResource.axd:3
Uncaught SyntaxError: expected expression, got '<'
WebResource.axd:3
Uncaught SyntaxError: expected expression, got '<'
WebResource.axd:3
Uncaught ReferenceError: WebForm_AutoFocus is not defined
    <anonymous> https://mydomain.com:8080/Apps/Shell/Pages/Login.aspx?ReturnUrl=/:247
Login.aspx:247:9

This seems like a veeeery odd issue. Do we have anyone here that have seen something like this and have any idea where to look?

#285429
Edited, Aug 12, 2022 14:46
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.