x


MonoDevelop Error while trying to load the project. Invalid character was found.

Hello, having some trouble here.

When I double click a script in Unity and it opens in MonoDevelop, a dialog box pops up with an error.

Error while trying to load the project '/Volumes/Projects....': Invalid character was found. Line 298, position 37.

Then, MonoDevelop shows the message (Load failed) in red next to the Assembly-UnityScript entry in the solution tree.

This just started happening all of a sudden. I'm not able to search or open files through MonoDevelop now. The entire UnityScript tree is missing.

more ▼

asked Jun 04 '12 at 09:12 AM

3duser gravatar image

3duser
20 1 1 1

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Solved the problem after some trial and error.

I opened Assembly-UnityScript.unityproj in textedit.

Edit/Find/Select Line.

The line referenced a script in my Unity project.

Went into Unity and deleted the script from my project. That fixed it.

As a test, I dropped the same script back into the Unity project and got the same error with a different line number and position. The script had about 5 lines of code in it and no syntax errors. I'm still not sure why this happened but its fixed. Hope this helps someone.

more ▼

answered Jun 05 '12 at 03:00 AM

3duser gravatar image

3duser
20 1 1 1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1944
x377
x17

asked: Jun 04 '12 at 09:12 AM

Seen: 633 times

Last Updated: Jun 05 '12 at 03:00 AM