Home > front end >  Optimizely CMS12 in IIS
Optimizely CMS12 in IIS

Time:01-27

We've built and deployed many Optimizely sites but recently started exploring CMS 12 running on .net Core.

The issue at the moment is that we're not able to view the site when "hosted" by IIS.

We've followed the Optimizely instructions, cross referenced it with Jon D Jones' guide/video, and it seems that once you have installed the .net core hosting package and updated the app pool it should "just work". That is not what we're seeing.

eg enter image description here

The web.config if missing must be added manually and it should look like this

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath="dotnet" arguments=".\REPLACEWITHYOURPROJECTDLL.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
    </system.webServer>
  </location>
</configuration>

Note the REPLACEWITHYOURPROJECTDLL

  • Related