Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Jason-Li644 · Nov 04, 2016 at 08:33 AM · imageplugin.netframeworkphoto

Trying to use SDK as plugin that compiled with .NET Framework 4.0 in Unity

Hello! I am trying to use Canon's ED-SDK in Unity for remote control the camera (It will be our Interactive Photo Booth) to take picture, which is written in C# and compile with .NET framework 4.0. However, Unity and MonoDeveloper is not support .NET framework 4.0 and following Error Message will be showed :

 Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
 
 
   at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
 
 
   at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0 
 
 
   at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in <filename unknown>:0 
 
 
   at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in <filename unknown>:0 
 
 
   at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in <filename unknown>:0 
 
 
   at Mono.CSharp.Driver.LoadReferences () [0x00000] in <filename unknown>:0 
 
 
   at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 
 
 
   at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0 
 
 
 Missing method .ctor in assembly C:\Users\Jason\Documents\((MM))\Canon\New Unity Project 5\Assets\Plugins\Canon\EDSDKNode.dll, type System.Runtime.Versioning.TargetFrameworkAttribute
 The class System.Runtime.Versioning.TargetFrameworkAttribute could not be loaded, used in EDSDKNode
 Can't find custom attr constructor image: C:\Users\Jason\Documents\((MM))\Canon\New Unity Project 5\Assets\Plugins\Canon\EDSDKNode.dll mtoken: 0x0a000004
 
 
 

This is a mini project so I have full control of the PC's hardware and software. I think the problem could be solved easily but I just don't know how, I am still too fresh to the IT stuff.

Comment
Add comment · Show 2
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 JScotty · Nov 04, 2016 at 10:03 AM 0
Share

As far as I know does Unity only support 2.0 .NET Frameworks.

avatar image huyakinemota · Sep 15, 2017 at 12:17 PM 0
Share

Hey, did you launched Canon EDSD$$anonymous$$ within Unity successfuly? I was trying to do the same, but had faced problem with saving photos on PC.

1 Reply

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

Answer by Cynikal · Nov 04, 2016 at 11:17 AM

Unity can support 2.0 and 3.5 DLL's. Do they have those options? Do they allow you to compile the dll yourself? just retarget them.

Also, you'll need to put the 2.0/3.5 dll in a "Plugins" folder (if you havent already).

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 Jason-Li644 · Nov 07, 2016 at 03:46 AM 0
Share

Thank you for your reply. As my english is pretty bad I will try to ask the question again in another way at a new question.

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

6 People are following this question.

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

Related Questions

Image Gallery 2 Answers

Advantages of .NET framework 4.6 upgrade? 1 Answer

Unity 2021.2 .Net Framework 4.7.2 0 Answers

Scripting Generic stat modifiers. 0 Answers

Getting SSH.NET to work in Unity 1 Answer


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