Using integration by parts on:
[tex]
\int_{0}^{1}{\frac{x}{x} \, dx}[/tex]
with [itex]u = 1/x \Rightarrow du = - dx/x^{2}[/itex] and [itex]dv = x \, dx \Rightarrow v = x^{2}/2[/itex], we get:
[tex]
\int_{0}^{1}{\frac{x}{x} \, dx} = \left.\frac{1}{x} \, \frac{x^{2}}{2}\right|^{1}_{0} + \frac{1}{2} \, \int_{0}^{1}{\frac{x^{2}}{x^{2}} \, dx} = \frac{1}{2} + \frac{1}{2} \, \int_{0}^{1}{\frac{x^{2}}{x^{2}} \, dx}[/tex]
Continuing inductively:
[tex]
\int_{0}^{1}{\frac{x^{n}}{x^{n}} \, dx} = \left.\frac{1}{x^{n}} \, \frac{x^{n + 1}}{n + 1}\right|^{1}_{0} + \frac{n}{n + 1} \, \int_{0}^{1}{\frac{x^{n+1}}{x^{n + 1}} \, dx} = \frac{1}{n + 1} + \frac{n}{n + 1} \, \int_{0}^{1}{\frac{x^{n+1}}{x^{n + 1}} \, dx}[/tex]
we get:
[tex]
\int^{1}_{0}{\frac{x}{x} \, dx} = \frac{1}{2} + \frac{1}{2} \left[\frac{1}{3} + \frac{2}{3} \, \int_{0}^{1}{\frac{x^{3}}{x^{3}} \, dx}\right] = \frac{1}{2} + \frac{1}{2 \cdot 3} + \frac{1}{3} \, \int_{0}^{1}{\frac{x^{3}}{x^{3}} \, dx}[/tex]
[tex]
=\frac{1}{1 \cdot 2} + \frac{1}{2 \cdot 3} + \ldots + \frac{1}{n \cdot (n + 1)} + \frac{1}{n + 1} \, \int_{0}^{1}{\frac{x^{n + 1}}{x^{n + 1}} \, dx}[/tex]
The integral is actually always the same. Assuming it is finite, when we take the limit [itex]n \rightarrow \infty[/itex], the integral on the r.h.s. is multiplied by a factor [itex]1/(n + 1)[/itex], so that term tends to zero and we have the following identity:
[tex]
\int_{0}^{1}{dx} = \sum_{n = 1}^{\infty}{\frac{1}{n \, (n + 1)}}[/tex]
If you use partial fraction decomposition:
[tex]
\frac{1}{n \, (n + 1)} = \frac{1}{n} - \frac{1}{n + 1}[/tex]
you will see that the sum is actually:
[tex]
\sum_{n = 1}^{\infty}{\frac{1}{n \, (n + 1)}} = \sum_{n = 1}^{\infty}{\left[\frac{1}{n} - \frac{1}{n + 1}\right]} = 1[/tex]
as is the value of the integral.
So, nothing is wrong. You just found a method for evaluating some sums.