An exception thrown in a layout (or for that matter anything that is a rendering time exception) is not bubbling to the end user. The reason is that the StreamWrite is flushing because it's in a dispose pattern. The solution is to wrap the stream and prevent writes/flushes if an exception has been thrown. At the same time we stop writing BOM out to html files by default. Also specified charset explicitly - so there is matches the encoding of the page. |
||
|---|---|---|
| samples/MvcSample.Web | ||
| src | ||
| test | ||
| .gitattributes | ||
| .gitignore | ||
| NuGet.Config | ||
| WebFx.sln | ||
| build.cmd | ||
| build.sh | ||
| global.json | ||
| makefile.shade | ||