I am developing a revit plugin. This plugin allows me to export my revit file as gltf but I am getting this error. When I tried other codes that did the same thing, I got the same similar error in a different nuget package. Could this have something to do with revit? How can I fix this error?
'Could not load file or assembly 'AssimpNet, Version=4.1.0.0, Culture=neutral, PublicKeyToken=0d51b391f59f42a6' or one of its dependencies.
In the first instance it is worth checking that the properties of the AssimpNet reference dll has its CopyLocal property set to true.
Related
My program makes use of visual basic power packs. While debugging, I encountered the 'DLL not found' exception and solved it by changing the copy local property of its reference to true. I've created setup of this program but when I try to run the installed program, (independent of VS 2013) its giving the same exception and I have no idea why or how to correct it. Any help would be great. Thanks in advance!!
My Error log shows this:
Exception:Could not load file or assembly 'Microsoft.VisualBasic.PowerPacks, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
GetType:System.IO.FileNotFoundException
I've upgraded a VB6 project to C# and I'm trying to run a winforms project and I have the Interop.InetCtlsObjects.dll file in my project and I've added a reference to it, but when I'm trying to run it I'm getting this error:
Could not load file or assembly
'Interop.InetCtlsObjects, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
or one of its dependencies.
The system cannot find the file specified.
But I can see the file and I added a reference to it's exect location...
So what am I missing here ???
Delete the reference, save the project and add it in again. It is possible that you are somehow referencing a different version and the compiler cannot find the right DLL because of it. If that doesn't work, check your app.config and make sure the versions for this particular DLL match.
I'm getting the following exception when trying to use the Google Auth API:
System.IO.FileNotFoundException : Could not load file or assembly 'System.Net.Http.Primitives, Version=4.2.28.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
----> System.IO.FileNotFoundException : Could not load file or assembly 'System.Net.Http.Primitives, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
The exception happens in Google.Api.Core.dll.
If I check the /Bin folder I can see Sytem.Net.Http.Primitives.dll in there and the version is 4.2.28.0.
I have tried updating the Microsoft HTTP Client Libraries NuGet package but that didn't help.
Is the problem something to do with a mismatch of .dll versions? If so how can I resolve that? Or is it something else entirely?
Double check if the assembly file is there in the bin folder and if its there, then try removing the reference and again add it to your project.
The version should be the same as expected. Also check on your web.config too for what it has about this particular assembly.
In your error code, I can see two different versions for the same file. Means probably, you are getting a clash between the existing assembly and the referenced assembly. Check you web.config for which version is referenced there and make sure you have the same version added to your project.
This link might help :
Could not find assembly System.Net.Http.Primitives
I am adding reference to Interop.ADOX.dll in my class library project "ABCD" in C#. When I built the project it builds fine. I can also access classes and functions provided by Interop.ADOX.dll.
But when I run the exe which uses my dll "ABCD", it throw error :
"Could not load file or assembly 'Interop.ADOX, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."
I tried creating a separate sample class library and adding reference to the Interop.ADOX.dll and that works fine. No errors. So there is nothing wrong with the Interop.ADOX.dll file.
Also I know somehow in my project structure it is not able to find the Interop.ADOX.dll file and hence unable to load it.
So far I tried copying them at all the possible locations that I thought it might be
trying to access it from but that did not work...
Any suggestions that I can try out?
I found out something. In the project properties, Build Tab, when I chose platform target as any CPU then it throws error. But if I chose x86 it works fine. Why?
I downloaded an open source project written in C# and I can build that project. However, I got the error like this during run time:
Could not load file or assembly 'Interop.ComUtilitiesLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
This means it couldn't load the Interop.ComUtilitiesLib.dll file, I have checked in project root directory as well as in the Window/System32, still couldn't find the Interop.ComUtilitiesLib.dll file.
Any suggestion for me to fix this problem!
Does the project include a ComUtilities.dll file? If so, it might be a COM object that needs to be registered via the command line:
regsvr32 ComUtilities.dll