why does dotnet some times throw errors for .html file extensions