Could not load file or assembly .... after installing with msi installler - dll

I'm trying to distribute an App but after starting it i always get the error:
System.IO.FileNotFoundException: Die Datei oder Assembly "Microsoft.Xaml.Behaviors,
Version=1.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" oder eine Abhängigkeit
davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
even though the .dll was in the correct folder before building the msi installer.
When running it in debug it works fine
It's a .Net 4.6.2 App and the problem comes from the Microsoft.Xaml.Behavior.WPF NuGet Version 1.1.39

Related

Unable to connect to remote server via FTP or SSH

I am trying to connect nvim to a remote server from a windows machiene using either FTP or SSH, but both seem to fail. Connecting using the ssh and ftp commands does work flawlessly though. Using nvim v0.9.0 and netrw v171. Trying connecting with only vim freezes, so it doesn't work as well, as it seems.
nvim --clean scp://{user}#{host}/:
Shell beendet 127
Fehler beim Ausführen von "BufReadCmd Autokommandos für "scp://*"..function netrw#Nread[4]..netrw#NetRead[109]..<SNR>22_NetrwBrowse[252]..<SNR>22_PerformListing[141]..<SNR>22_NetrwRemoteListing":
Zeile 137:
E485: Kann Datei C:\Users\{user}\AppData\Local\Temp\nvim.0\{random_6_chars}\1 nicht lesen
did not ask for the password.
nvim --clean ftp://{user}#{host}/:
Shell beendet 127
Fehler beim Ausführen von "BufReadCmd Autokommandos für "ftp://*"..function netrw#Nread[4]..netrw#NetRead[109]..<SNR>22_NetrwBrowse[252]..<SNR>22_PerformListing[141]..<SNR>22_NetrwRemoteListing[57]..<SNR>22_NetrwRemoteFtpCmd[86]..<SNR>22_NetrwExe":
Zeile 7:
E485: Kann Datei C:\Users\{user}\AppData\Local\Temp\nvim.0\{random_6_chars}\2 nicht lesen
Fehler beim Ausführen von "BufReadCmd Autokommandos für "ftp://*"..function netrw#Nread[4]..netrw#NetRead[109]..<SNR>22_NetrwBrowse[252]..<SNR>22_PerformListing[141]..<SNR>22_NetrwRemoteListing[57]..<SNR>22_NetrwRemoteFtpCmd":
Zeile 120:
# Then a buncha *undefined variable w:netrw_bannercnt* errors
did ask for the password, but then still failed.
As it seems, it can't find some files located in C:\Users\{user}\AppData\Local\Temp\nvim.0. The folders with the random 6 characters are getting created, but the 1 and/or 2 files do not, they do not exist. Also tried with administrator rights, still no luck.
Seems like a local windows problem so far, that I'm unable to solve.

System.IO.FileLoadException: Could not load file or assembly 'IBM.Data.DB2'

I am currently working on Outlook 2013 Addin Projects using visual studio 2013 and Visual Basic .Net. However, when I try to connect to DB2 Database. It shows that the dll files that I added into the project reference cannot be loaded.
What I do is add a new panes with a button in outlook which will look a windows form in outlook when the button is clicked. Onload the form, it will connect to DB2 and the below error message occur
System.IO.FileLoadException: Could not load file or assembly 'IBM.Data.DB2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7c307b91aa13d208' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)
File name: 'IBM.Data.DB2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7c307b91aa13d208'
=== Pre-bind state information ===
LOG: DisplayName = IBM.Data.DB2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7c307b91aa13d208
(Fully-specified)
LOG: Appbase = file:///C:/Users/D0259/Documents/Visual Studio 2013/Projects/OutlookAddIn3/OutlookAddIn3/bin/Debug/
LOG: Initial PrivatePath = NULL
Calling assembly : OutlookAddIn3, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: IBM.Data.DB2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7c307b91aa13d208
LOG: Attempting download of new URL file:///C:/Users/D0259/Documents/Visual Studio 2013/Projects/OutlookAddIn3/OutlookAddIn3/bin/Debug/IBM.Data.DB2.DLL.
ERR: Failed to complete setup of assembly (hr = 0x80131045). Probing terminated.
Other windows form project using the same dll is working. Really need some advice on this. Anyone face this error before? Viewers' help is highly appreciated.

Loading a DLL in the GAC

currently I have a problem with getting a DLL into the Windows GAC. I tried to follow the steps of creating a DLL and loading it as described in this blog post:
http://blogs.technet.com/b/cloudpfe/archive/2014/02/01/how-to-create-a-custom-authentication-provider-for-active-directory-federation-services-3-0-part-2.aspx
At the point where I try calling the following command:
[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7514a164b89fa979")
I get an error which tells me that System.EnterpriseServices could not be found:
Exception calling "Load" with "1" argument(s): "Could not load file or
assembly 'System.EnterpriseServices, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=7514a164b89fa979' or one of its dependencies. The
system cannot find the file specified."
The specified DLL (System.EnterpriseServices) does exist* on the machine.
So now my question is, why can't this method find the DLL and what do I have to do/change to get this command to work?
NOTE: I Tried this on a vanilla Windows Server 2012 R2 with just ADFS parts installed; And I've called the command from the Powershell.
*UPDATE: The System.EnterpriseServices DLL resides in
C:\Windows\Microsoft.NET\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a
and
C:\Windows\WinSxS\amd64_system.enterpriseservices_b03f5f7f11d50a3a_4.0.9600.1638‌​4_none_53a3f9b13fac0ba5\
So it should be available from the GAC.
I think your public Key token is incorrect, you found your own answer with your update :) .
It should be
[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
Give this a try.

Where do I put the keystore file on JBoss AS 7.1

Where do I put the keystore file on JBoss AS 7.1 ?
If i put it into: %JBOSS_HOME%/standalone/configuration/ and reference it simply by:
<ssl key-alias="JBoss" password="JBo$$" certificate-key-file="/JBoss.keystore" cipher-suite="ALL" protocol="TLS"/>
I get an:
ERROR [org.apache.tomcat.util.net.jsse.JSSESocketFactory] (MSC service thread 1-1) Failed to load keystore type JKS with path JBoss.keystore due to JBoss.keystore (Das System kann die angegebene Datei nicht finden): java.io.FileNotFoundException: \JBoss.keystore (Das System kann die angegebene Datei nicht finden)
at java.io.FileInputStream.open(Native Method) [rt.jar:1.7.0_10]
If I use an absoulute path for as reference to the keystore file, everything works fine. Is there a workaround so that I an use a relative path?
Use one of the predefined folder variables: jboss.home.dir, jboss.server.base.dir, jboss.server.config.dir, etc. for standalone configuration or jboss.domain.base.dir, jboss.domain.config.dir for managed domain (see full list).
Usage example: certificate-key-file="${jboss.server.config.dir}/JBoss.keystore" for a file copied to JBoss config folder.

crm developer tools integrated in visualstudio

I'm trying to get crm-explorer and developer tools integrated and running within visual studio
I suceeded in having the crm explorer integrated, but don t know how to simple build
I read about devbuild but when triggering it from a visualstudio command line I get:
c:\Projects\MyCrmSolution>ECHO OFF
Welcome to the Developer Build
Starting Build soluton files Microsoft
(R)-Buildmodul, Version 3.5.30729.1
[Microsoft .NET Framework, Version
2.0.50727.3620] Copyright (C) Microsoft Corporation 2007. Alle
Rechte vorbehalten.
Das Erstellen wurde am 06.06.2011
10:39:30 gestartet. Projekt
"c:\Projects\MyCrmSolution\BuildScripts\tfsbuild.proj"
auf Knoten 0 (Standardziele).
c:\Projects\MyCrmSolution\BuildScripts\tfsbuild.proj
: error MSB4057: Das Projekt enthält
kein DesktopBuild-Ziel. Die Erstellung
von Projekt
"c:\Projects\MyCrmSolution\BuildScripts\tfsbuild.proj"
ist abgeschlossen (Standardziele) --
FEHLER.
Fehler beim Erstellen.
"c:\Projects\MyCrmSolution\BuildScripts\tfsbuild.proj"
(Standardziel) (1) ->
c:\Projects\MyCrmSolution\BuildScripts\tfsbuild.proj
: error MSB4057: Das Projekt enthält
kein DesktopBuild-Ziel.
0 Warnung(en)
1 Fehler
Vergangene Zeit 00:00:00.06
straight tips would be nice
Based on the error, it sounds to me like the build script is unable to find the desktop build target file. I would open up the build script that you are executing first and look for external scripts that it references. My guess is that one of these references will be missing or named differently. That is what I would investigate first.