I think a lot of people have been confused by the "well known property" that you are mentioning, so I am going to elaborate a little bit.
First of all, it is not true that
$$
1+2+3+\dots = -\frac{1}{12}.
$$
And the above shouldn't be true. After all, it doesn't make any sense!
I will briefly explain why you see this identity in a lot of places. Basically, there is a function known as the zeta function which is of particular importance in number theory. For all numbers $s>1$, the zeta function is given by the formula
$$
\zeta(s) = \frac{1}{1^s} + \frac{1}{2^s} + \frac{1}{3^s} + \cdots
$$
If you were to pick $s\leq 1$, the the above sum would be divergent and $\zeta$ would not be well defined.
On the other hand, the function $\zeta$ can be extended to the real line in a meaningful way (this is known as analytic continuation and if taught in undergraduate complex analysis courses). So, we have function $\zeta$ which is defined for all numbers $s$ and such that
$$
\zeta(s) = \frac{1}{1^s} + \frac{1}{2^s} + \frac{1}{3^s} + \cdots
$$
whenever $s>1$.
Now, it turns out that $\zeta(-1) = -1/12$. Plugging $s=-1$ into
$$
\frac{1}{1^s} + \frac{1}{2^s} + \frac{1}{3^s} + \cdots
$$
one would obtain
$$
1+2+3+\dots
$$
This is where your "well known identity" comes from.