The result you obtain when calculating sums like
$$S=\sum_{n=1}^\infty T_n$$
depends on how you define them. Here $T_n$ denotes anything that we may want to insert there.
The most intuitive way to define an infinite sum is by using partial sums. The idea is to introduce a sequence of sums
$$S_N=\sum_{n=1}^N T_n$$
and then define the infinite sum $S$ as the following limit
$$S=\lim_{N\to \infty}S_N.$$
Obviously, each partial sum $S_N$ is finite, however the problem is in this limit, that may diverge. For your example, evidently, this limit diverges and doesn't give anything useful.
To deal with this kind of sums people invented another approach called analytical continuation, that was described in the answer by Vibert. Not to repeat it I'll just say, that intuitively the idea is to consider a convergent sum instead of our divergent one. Then replace this sum by an analytical function (say Riemann zeta function). Finally, we take a limit of this analytical function in that region, where the initial sum diverges.
An example of analytical continuation is the well-known gamma function $\Gamma(n)$, that coincides with the function $(n-1)!$ when $n\in \mathbb{Z}$. However, $\Gamma(z)$ is defined for any complex $z\in\mathbb{C}$.