Visiblox invalid assembly reference - c#

I am struggling with a problem regarding to visiblox. I am quite new to the WPF concept, but I am getting the hang of it. I have quite some expirence with the classic forms.
My problem is that the designer keeps telling me that the XAML contains errors. And I get the folling error in my error list:
Unable to load the metadata for assembly 'Visiblox.Charts'.
This assembly may have been downloaded from the web.
See http://go.microsoft.com/fwlink/?LinkId=179545.
The following error was encountered during load: Could not load file or assembly
'Visiblox.Charts, Version=2.1.4.31043, Culture=neutral, publicKeyToken=1543c03f04c4461b' or one of its dependencies.
I have added the reference to the project, and I have added the line:
xmlns:charts="clr-namespace:Visiblox.Charts;assembly=Visiblox.Charts"
I can build and run the project, but the designer keeps telling me that my assemblies are not correct. I tried to clean and rebuilt the project. Restarted Visual Studio and the computer, but nothing seems to work. Anyone any clue? Thank you in advance.

I'd suggest following the link it provides: http://go.microsoft.com/fwlink/?LinkId=179545
The problem is that the dll is "locked" by windows security and you need to unlock it before you can reference it. The link specified tells you how.

Related

Could not load file or assembly 'Microsoft.Windows.Design, Version=3.5.0.0, or one of its dependencies

I am trying o open a windows project and I am seeing this error, The project works fine but I am unable to see forms design due to this error.
I tried many solutions like adding assemblies, opening project from .csproj file, opening from solution file, adding all missing references but still same error on design window. Please help.
Thank you

'Could not load type 'System.Diagnostics.CodeAnalysis.SuppressMessageAttribute'

When I create a WPF project using VS2019 Community 16.9.4 I keep getting the Could not load type System.Diagnostics etc error message on Build while WPF projects I had previously created using earlier versions of VS don't give me this message.
I am at a loss to see what is causing this project to invoke this message. Does anyone have any ideas?
The full error message is:
Unknown build error, 'Could not load type
'System.Diagnostics.CodeAnalysis.SuppressMessageAttribute' from
assembly 'System.Runtime, Version=4.1.2.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'
Okay. I got to the bottom of this problem by process of elimination by comparing a project that works with one that doesn't and noticed that this issues was happening because a current day Telerik control was installed when I only have a license up to 2017. How that got translated into the above message is beyond me and completely threw me off the track.
I guess it's one to bare in mind where seemingly completely random things can happen.

How can I fix cefsharp problem after update?

I recently updated my Cefsharp.WinForms package within Nugent and it is now giving me the following error when the program tries to open a ChromiumBrowser.
System.IO.FileNotFoundException: 'Could not load file or assembly 'CefSharp.Core.Runtime.dll' or one of its dependencies. The specified module could not be found.'
I have read that this is quite a common problem so tried fixing it through the C++ Redist update and through ensuring I have all .dll files needed. I have even created a new project to test it and it works. (I then copied all the .dll files from the working project over to the one that doesn't work) but I keep getting the same problem. Any idea what next steps I can take?
ps, I have also tried to solve it by reverting back to my old version.

A specific: Could not load file or assembly 'xxxx' or one of its dependencies. The system cannot find the file specified

Inherited C# win form application - VS .NET 2008.
Project builds with no error.
Navigate to display main dialog in the IDE and error screen displays with the error.
The .dll is in the bin directory. Also, under the "References" tree in project viewer with correct path.
(All supporting files/dlls should be here.)
Any ideas how to fix this?
EDIT 1 started Fuslogvw.exe does not have anything listed. Is there something else I need to do to get this error to display here?
EDIT 2
Running "Dependency Walker" and it comes up with the error:
Error: At least one required implicit or forwarded dependency was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
unable to open 2 windows system32 dlls....
I decided to answer this question because
I'm looking for the anwser myself and this ranks high in google search yet it is unanswered, and
The "possible duplicate" do not help solving my problem.
OK, here is a recap of my situation, which you can see almost identical to OP:
C# project/solution - VS .NET 2013.
Project builds with no error.
The reference .dlls are in the pre-defined directory.
Also, under the "References" tree in project viewer, it shows the correct path.
Yet, Visual Studio complains (at run time):
Could not load file or assembly xxxxxx, Version=x.x.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxx or one of its dependencies. The system cannot find the file specified.
I found the solution from here,
http://blogs.msdn.com/b/asiatech/archive/2013/01/09/how-to-resolve-the-could-not-load-file-or-assembly-issues-on-windows-azure-web-sites.aspx
I.e., In Visual Studio,
Find the referenced assembly in “Solution Explorer”, e.g.,
Microsoft.WindowsAzure.StorageClient
In the “Properties” window, set the “Copy Local” to “True”.
It might not be the ideal fix but it solved my problem. If it helps you as well, please +1 (vote up). Thanks.

How do I fix a Binding Failure in Soap?

I reloaded an old project, and tried to run it only to run into the Binding Failure MDA Assistant:
BindingFailure was detected
Message: The assembly with display name 'SoapTest.XmlSerializers' failed to load in the
'LoadFrom' binding context of the AppDomain with ID 1. The cause of the failure was:
System.IO.FileNotFoundException: Could not load file or assembly
'SoapTest.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one
of its dependencies. The system cannot find the file specified.
After googling this, the only solution I could find was to turn off the MDA. This works, but I would prefer to solve the underlying problem (SoapTest.XmlSerializers.dll not being in the bin\Debug directory). How can I fix this? What creates the SoapTest.XmlSerializers.dll, and why is it not being created on a Rebuild? Yes, I have tried updating the Web Reference (this doesn't help). No I don't want to upgrade to WCF Soap Services.
actually yes , i went to the propensities window and set the option of "Generate serialization assembly" to "on" , by this you insure every time you build the project ,
i guess that error happens when you edit the assmbly info of the class library you are referencing without re building it
In VS.NET you can go to the project settings and try different settings for XmlSerialization - I believe there is a setting for auto that you may want to disable.
I also encountered this issue. The problem was that the project causing the Exception was created in another folder than the .exe file. I easily resolved it by changing the Deployment Path from Properties/Build settings page. No other change on "Generate serialization assembly" was necessary.

Categories

Resources