Modern cv - WinEdt and MikTex - after Installation on Windows 7 - do not work

I have installed yesterday MikTex and WinEdt 10.3 version on my computer. I have opened my file which I want to generate, however it always reports a mistake:

! LaTeX Error: Option clash for package inputenc.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
...

l.21 \usepackage
{comment}
? h
[utf8]
There has now been an attempt to load it with options
[ansinew]
utf8,ansinew
to your \documentclass declaration may fix this.
Try typing  <return>  to proceed.
?



The tex file worked on my old computer where I had Microsoft 10 (two days ago), however on new computer not. Is it maybe because of Microsoft 7?

Here is the beginning of my tex file:


%\documentclass[11pt,a4paper]{moderncv}

\documentclass[sans]{moderncv}

\moderncvstyle[left]{casual}

\moderncvcolor{grey}

\usepackage[utf8]{inputenc}

% character encoding

\usepackage[english,ngerman]{babel}

\usepackage[ansinew]{inputenc}

\usepackage{comment}

\usepackage{textcomp}

\usepackage[version=3]{mhchem}

\usepackage[scale=0.84]{geometry}

\recomputelengths

\usepackage{graphicx}

%\usepackage{paralist}

\usepackage{enumitem}

%\usepackage{xcolor}

\usepackage{color}

\usepackage{wrapfig}

\setlength{\hintscolumnwidth}{3.0cm}

\AtBeginDocument{\recomputelengths}



.........................

I would be very happy if someone could help me with this issue.

• As the error says, you can try to remove the line with \usepackage[ansinew]{inputenc} --- That should have errored out anyway... (Your preamble is strange... are you sure is not the result of pasting two different ones together?) – Rmano Jun 30 at 7:45
• Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – dexteritas Jun 30 at 8:08