Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
0
Question by flyfisher1952 · Aug 23, 2013 at 02:21 PM · error buildupgradeunity 4.2

Upgrade to 4.2 causes CS0433 error

I am trying to upgrade from 4.1.x to 4.2. When I do and then open a project created under 4.1.x I get a "Assets/Uniject/Interface/IResourceLoader.cs(8,17): error CS0433: The imported type `System.Xml.Linq.XDocument' is defined multiple times" build error. The file just contains an interface with one property being an XDocument. I've google'd about this quite a bit and don't see any explanation/solution of the problem.

The System.Xml.Linq.dll is referenced in each of the generated projects, but this solution was building prior to the upgrade without problems.

What has changed, and how do I fix this so I can use the latest version of Unity?

Thanks, Mike

Comment
Add comment · Show 7
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 sdgd · Aug 23, 2013 at 02:24 PM 0
Share

I think it's a bug, ... but I'm not sure, I've never been good at debugging.

but that's how I understand it. like it's trying to read something 2 times that's in engine itself, ...

avatar image flyfisher1952 · Aug 23, 2013 at 02:39 PM 0
Share

Yeah, I suspect it's something that has been changed in the way the project is built. One of the reasons I dug around in the references and code was to try and nail down anything on my end that could cause the issue.

avatar image meat5000 ♦ · Aug 23, 2013 at 02:42 PM 0
Share

Did you fresh install? Try uninstalling old unity first and then installing 4.2 to a blank folder

avatar image flyfisher1952 · Aug 23, 2013 at 03:06 PM 0
Share

Yep, that was my second install attempt. After the first one gave me these problems, I uninstalled all unity stuff and rebooted. I also got rid of all of the data in the \\users\\me\\appdata\\roa$$anonymous$$g\\unity folder prior to the new install. The only thing I haven't done is search the registry for unity keys to delete and I prefer not to do that.

avatar image meat5000 ♦ · Aug 23, 2013 at 03:20 PM 0
Share

Check config.xml for multiple entries of

add assembly="System.Xml.Linq,

Also I can't find System.Xml.Linq.XDocument in any of my PC builds. Is it an addon? Try removing any trace of it if it is.

Show more comments

1 Reply

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

Answer by flyfisher1952 · Aug 23, 2013 at 04:24 PM

I found the issue. Unity3D 4.1.5 didn't include the System.Xml.Linq.dll file and the original developer that added Ninject manually added it. I deleted the file and we now build properly on 4.2.

  1. now includes the DLL, hence the problem with multiple definitions.

Comment
Add comment · Show 2 · 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 Sajidfarooq · Aug 23, 2013 at 04:47 PM 0
Share

You should "accept" your own answer too, so others can tell that the question has been answered.

avatar image meat5000 ♦ · Aug 23, 2013 at 04:48 PM 0
Share

Hope I helped in pointing you in the right direction :)

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

18 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

BSoD on Build, Find Cause 0 Answers

Problem with upgrading small project from Unity3 to Unity4 0 Answers

Walls glitch in build 0 Answers

Errors on building 2 Answers

Graphic Rebuild Loop Error 2 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