1
Answer

Error message: Whitespace is not allowed at this location

Sam

Sam

13y
4.7k
1

Hi,
While hoovering over a function name in a C# code, I get the following tooltip message:

"XML comment contains invalid XML: Whitespace is not allowed at this location".

I can not find a way to locate that whitespace location, while running the function gives me 'object reference not set' exception message.

I am not sure if those are related to each other, but clearly I would like to fix the error.
Can anyone help?
Answers (1)
0
Vulpes

Vulpes

NA 98.3k 1.5m 13y
The chances are that you've got some character in there that XML has difficulty with such as: &, > or <.

If so, I'd replace them with  &amp;  ,  &gt; and &lt;  respectively and see if that's any better.
Next Recommended Forum