Foundation 404, but Episerver GUI works?

Vote:
 

Hi!

I have installed Foundation and can log in to Episerver entering edit and admin mode but all pages in preview or full url are responding with a 404.

Any ideas?

Thanks!

/Kristoffer

#272228
Feb 15, 2022 16:23
Vote:
 

Is this uisng IIS or IIS Express?

#272229
Feb 15, 2022 16:35
Vote:
 

I'm actually asking for a friend! :-)

But now that you are asking we had a discussion about him not getting the IIS Express to work and was using IIS.
How do you setup IIS to work properly? Do yo point at the root catalog or the www catalog?

Thanks Mari!

/Kristoffer

#272231
Feb 15, 2022 16:41
Vote:
 

I got IIS working by using publish to folder, I followed directions similar to these: https://www.endpointdev.com/blog/2021/09/deploying-dotnet-5-app-iis/

i also had to add 

 webBuilder.UseIIS();

in the CreateHostBuilder method.

#272232
Feb 15, 2022 16:51
Vote:
 

He is running IIS Express on Windows 11, could that have something to do with it?

#272280
Feb 16, 2022 8:54
Vote:
 

When hitting F5 the site started as Foundation and not IIS Express, that is now corrected so the site runs as https://localhost:44397.
Edit mode still works but not browsing the URL above. In edit mode there is only the All properties view showing the On-page editing is missing?

Ideas?

Thanks!

#272281
Feb 16, 2022 9:05
Vote:
 

Is he using the branch "main", or the older "net5" branch? "Main" has a lot of newer updates, including fixes to the issue that he's seeing where the Views aren't found correctly.

That should solve most of his problems, I suspect. I also have some instructions on running Foundation under IIS that I'll try to get fully written up in the next day or two.

#272284
Feb 16, 2022 13:58
- Feb 17, 2022 8:33
I tried grabbing latest net5 branch and it crashed and burned upon start. Thanks for the help!
Vote:
 

We are using the net5, and will now try the main bransch.

Thanks for the tip Daniel!

/Kristoffer

#272285
Feb 16, 2022 14:35
Daniel Isaacs - Feb 16, 2022 14:42
👍 I've also submitted a PR to update the readme on the net5 branch, to point people at the main branch.
Vote:
 

That did the trick Daniel and great with PR for updated documentation.

Thanks!

/Kristoffer

#272383
Feb 17, 2022 9:05
Vote:
 

And if you want to set it up under IIS, this might help: https://blog.danisaacs.net/running-with-foundation/

#272420
Feb 17, 2022 20:29
* 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.