Last post Aug 28, 2019 02:27 PM by Jamal Alkelani
Aug 19, 2019 07:54 AM|Jamal Alkelani|LINK
I've published my app into release Version in order to host it on locally IIS server, the app is published correctly and is hosted on the server, but when I open the url in the browser for the hosted app it shows me the list of files in that directory instead
of my app Home page.
here's a screen shot of my problem
and this is the code for my web.config file
<?xml version="1.0" encoding="UTF-8"?>
<directoryBrowse enabled="true" />
<add value="index.html" />
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="iisstart.htm" />
<add value="default.aspx" />
can you help me please
Aug 19, 2019 08:09 AM|AddWeb Solution|LINK
Hi, Jamal Aleklani
in your finally forlder or controller use their index method and return than page from controller return view and that page return view(--you can pass model or directory files for display on view--);
Aug 19, 2019 08:12 AM|Jamal Alkelani|LINK
I'm afraid that I don't understand !
the app works 100% on Visual studio when I start it in Debug Mode.
the finally folder is the released version of my app I don't know what to do !
Aug 19, 2019 10:34 PM|bruce (sqlwork.com)|LINK
what are you hosting with?
if IIS then you need to install the AspNetCore core module and follow the configuration instructions.
Aug 20, 2019 08:06 AM|Rena Ni|LINK
First,Please check if you have installed the .NET Core Hosting Bundle package,you could refer to:
Then you need to check your web.config file like below.Actually if you follow the official document and publish correctly,it would automatically add these code:
<location path="." inheritInChildApplications="false">
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
<aspNetCore processPath="dotnet" arguments=".\YourProjectName.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="InProcess" />
Aug 26, 2019 09:20 AMfirstname.lastname@example.org|LINK
What is the version of core you use?
Aug 28, 2019 02:27 PM|Jamal Alkelani|LINK
thank you bro, it worked