0 votes
by (120 points)

1 Answer

0 votes
by (75.8k points)

<add key="webRootDir" value="wwwroot" />

<add key="webRootDir" value="./wwwroot" />

<add key="webRootDir" value="../wwwroot" />

<add key="webRootDir" value="c:\data\wwwroot" />

<add key="webRootDir" value="z:\data\wwwroot" />
by
Hi Lukas - I have the same problem as Pierre-Yves. This is the line in the config file that I changed to point to my directory: <add key="webRootDir" value="C:\Users\gerry\Documents\TestHome\index.html" />

When I access localhost on my Windows 11 machine, I get a long series of error messages that start: "Handler terminated abnormally: System. Timeout Exception..."

The app worked perfectly on my old Windows 10 machine.

Any ideas? Thanks in advance, Lukas.

Cheers
Gerry
by (75.8k points)
Hi Gerry, the key is named "webRootDir" which means path to a directory. However, it seems you are giving path to a file: ...\index.html

Please try to change the value to:

<add key="webRootDir" value="C:\Users\gerry\Documents\TestHome" />
...