Try our conversational search powered by Generative AI!

Debug Optmizely on localdomain throwing an error 404 for CMS site

ZZ
ZZ
Vote:
 

Hi,

We are updating our legacy app to Optmizely (.NET 6) and in this connection I need to run Optimizely on local domain name with self signed certificate. 

I have changed some launchsettings for IIS Express and it runs the default view of website. When I try to access EpiServer CMS site it thorws an error -> 

When I try to go to EPiServer manually its showing the directory structure -> 

The login page for CMS site is showing properly 

Launchsettings of the application

{
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "https://lokaldev.com:44355/",
      "sslPort": 44355
    }
  },

  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "launchUrl": "https://lokaldev.com:44355/",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
      "applicationUrl": "https://lokaldev.com:44355/"
    },
    "MitAkademikernes": {
      "commandName": "Project",
      "launchBrowser": true,
      "launchUrl": "https://lokaldev.com:44355/",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
      "applicationUrl": "https://lokaldev.com:44355/"
    }
  }
}

When I don't use IIS Express and just uses Kestrel on https://localhost:5001 then I have access to CMS site

Any input would be apprerciated

#292337
Edited, Nov 28, 2022 14:26
Vote:
 

Does https://lokaldev.com:44355/EPiServer/Cms also throw a not found error ?

#292352
Nov 28, 2022 22:52
ZZ
Vote:
 

I still get 404 but with detailed error -> 

#292390
Nov 28, 2022 23:10
Vote:
 

Have you installed the IIS .Net Core Module ? 

Jon Jones wrote some detailed instructions on how to get CMS 12 working in IIS see here 

https://www.jondjones.com/learn-optimizely/cms/how-to-install-optimizely-cms-12-and-configure-a-development-environment/ 

#292391
Edited, Nov 28, 2022 23:25
ZZ
Vote:
 

Thanks for the input. But I am trying to use IIS Express., and the strange thing is that I can access startpage by going to URL:https://lokaldev.com:44355  and it works absolutely fine. I can even access the login page of CMS but not CMS. I couldn't find any online documentation on this issue. 

#292395
Nov 29, 2022 7:56
* 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.