Error compiling Razor Template: Index and length must refer to a location within the string. Parameter name: length (check logs for more details)