Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by 3duser · Jun 04, 2012 at 09:12 AM · errormonodevelopinvalid

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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

7 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by 3duser · Jun 05, 2012 at 03:00 AM

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.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image drawcode · Dec 18, 2014 at 08:38 PM 0
Share

Typically the error is correct, if you follow it down. I had a folder called 'Item⪻ops Pack' and the '&' was throwing this. If you are getting it do as 3duser said and find the line and usually you have to rename it if there is a special symbol.

avatar image
2

Answer by 216830_Jwolf · Jul 15, 2014 at 04:11 AM

I had the same problem when the project folder was named "C&C", but the problem only seemed to come up once I had added a Photon networking package.

I opened the offending files in notepad and found the error in this line:

C:/Users/Jeremy/Dropbox/Unity Projects/C&C/Assets/Photon Unity Networking/Editor/PhotonNetwork/Newtonsoft.Json.dll

The error was right after the "&". I changed the project name and the errors disappeared. ,I had the same problem when my project folder was "C&C", but it only seemed to show up once I

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by William Burroughs · Apr 13, 2014 at 07:13 AM

This problem occurs when the project folder name contains whitespaces. I solved it by removing whitespaces from project folder name.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image cbarba · Oct 06, 2015 at 03:24 AM 0
Share

This was not my exact solution but I did have an "&" character in my project folder name. After rena$$anonymous$$g it the errors went away.

avatar image
1

Answer by HybridMind · Aug 19, 2014 at 05:54 PM

Found another solution to when you might get this error! I had put two different imported plugins into a directory called "Plugins" which apparently is a special Unity folder. This broke the ability for monodevelop to sync my project and it only provided the very unhelpful error message that lead me to this post. Moving my plugins into a folder called "External" solved this. You can name it whatever you want, but just realize that if you are trying to organize your imported plugins (NGUI, inControl, etc) DON'T put them in "Plugins".

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image BORUSSIA · Nov 11, 2015 at 05:47 PM 0
Share

That did work for me, thank you very much!

avatar image
0

Answer by swiftest · Nov 22, 2015 at 06:06 PM

A project directory had an "&" ampersand character and that isn't allowed in XML apparently. I replaced it with "&" and that did the trick.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image swiftest · Nov 22, 2015 at 06:02 PM 0
Share

It should be replaced with:

& amp ;

(no spaces). $$anonymous$$y reply above just converted that sequence to the ampersand.

  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

MonoDevelop shows invalid characters 1 Answer

MonoDevelop TODO task won't clear. 2 Answers

Invalid File Error 2 Answers

Really need help for my code! 2 Answers

NSIS Error for Unity 4.0.0 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges