The conventional open string theory is cast into the Becchi-Rouet-Stora (BRS) formulation of Fradkin and Vilkovisky. Upon quantizing this theory, the nilpotency condition ${\stackrel{^}{Q}}^{2}=0$ of the BRS charge requires $D=26$ and ${\ensuremath{\alpha}}_{0}=1$ for the space-time dimension $D$ and intercept parameter ${\ensuremath{\alpha}}_{0}$. Unitarity is proved by relating this theory to the old covariant quantization. The string theory is then generalized as suggested by Polyakov, taking into account the conformal or trace anomaly by $\mathcal{L}={\mathcal{L}}_{\mathrm{string}}+C{\mathcal{L}}_{1}$, where ${\mathcal{L}}_{1}$ yields the Liouville equation in the orthonormal gauge. Under the assumption that the exact quantization of Liouville's equation does not yield any additional anomalies, we show that the condition ${\stackrel{^}{Q}}^{2}=0$ implies $C=\frac{(D\ensuremath{-}26)}{48\ensuremath{\pi}}$, in agreement with Polyakov's result, and the "intercept parameter" $\ensuremath{\beta}=\frac{(D\ensuremath{-}2)}{24}$.