Tool
Tool

Reputation: 12488

Can't load project after pulling: "Expected 'ENCODING' but found 'utf-8'."

After pulling the project (WPF application) from git,

I get this error:

enter image description here

What could be causing it? It worked fine before pulling it (someone else commited on the project).

Upvotes: 22

Views: 8277

Answers (5)

danigitman
danigitman

Reputation: 750

Look at your .csproj extension file search for: <<<<<< or ====== or >>>>>>>> and remove it.

also check your web.config file for those symbols and remove them too if they exist there.

Upvotes: 5

heb89
heb89

Reputation: 11

I had the same issue, I was just missing a closing tag.

http://www.w3schools.com/xml/xml_validator.asp < try this

edit - Try to open your .csproj in an editor and look for the missing tags. You can do this via Visual Studio if you unload your project then edit your project.

Upvotes: 1

Ziggler
Ziggler

Reputation: 3500

This forum really helped me. Thank you very much. In my case my team mate merged the code and in .csproj there was end tag missing for we had >. I opened .csproj in visual studio. Edited end tag to /> and saved the file and reloaded the project and it was fine.

Upvotes: 0

daniel_aren
daniel_aren

Reputation: 1924

I had some strange underscore lines, I am using the tool Git Extensions, maybe this tool added this lines.. I compared a older version in notepad++ and saw this. It didn´t show in Visual Studio.

Upvotes: 0

Tool
Tool

Reputation: 12488

It appears there were some unclosed tags in my .csproject file.

Strangely though, the error above was reported instead.

Upvotes: 30

Related Questions