[Tex/LaTex] error message in beamer

beamererrors

I am making slides for a presentation on beamer and everything was going perfect. However,
all of a sudden I cannot compile and I get the following error messsage:
"! Text line contains an invalid character.
l.1"

Please help, my presentation is in 5 days!!! Everything was fine until my computer made a an automatic windows update

Best Answer

In (plain)TeX one of ASCII character has category code 15 (invalid). Probably such a characters appears somewhere in you files. Please try to add \catcode`\^^?=12 just after \begin{document}, as it is shown below.

\documentclass{article}

\begin{document}
\catcode`\^^?=12 % Comment this line to see the difference
AAA ^^?

\end{document}

If the problem still remains, please try to comment all lines before \begin{document} and write down them again. It should solve the problem temporary and give you time for searching the place of the invalid character in your file(s).