Problem description
Whenever we click Admin mode we successfully get the admin mode at http://mysite/secure/admin/default.aspx
Whenever we click Edit mode we get a 404 because there’s no default document (ie default.aspx): http://mysite/secure/edit/
Note: the default document setting in IIS was properly set.
How to resolve it
- If you do not have a global.asax file in your project, go ahead and add it.
- Next, make sure it inherits EPiServer.Global (this is key)
Now the links to switch between admin and edit mode in EPiServer work again: