c# - Need help with NHibernate assembly version issue. Error with loading the correct assembly version -
note I stopped localizing my second ticket.
I have a problem like I see that after using a newgate to set up FluentNewernet near another poster:
Error < / P>
The file or assembly could not be loaded 'clear definition of assembly located in one of NHibernate, version = 3.0.0.2001, culture = neutral, public key token = AAFFFFFX 777DDDA4' or its dependency Assembly does not match reference . (HRESULT: Exception from 0x80131040) I saw that the stack overlays answered and answered on other blogs:
add-binding redirect < / Pre> However, it has not resolved my problem and all the results of running that command are:
PM> Ed-Binding Redirection Name Oldversion Newversion ---- ---------- ---------- NHibernate 0.0.0.0-3.0.0.4000 3.0.0.4000 When I am setting up Fluent Enhnernet from Newgate, it says that its dependencies are 3.0.0.2001 Nhibernate but it installs Nhibernate 3.0.0.4000
What am I doing wrong?
I can not comment on the specific problem with NuGet but you can redirect your app to an assembly binding Should be able to get the error by adding .config or web.config.
You may be able to check public key points.
& lt; Configuration & gt; & Lt; Order & gt; & Lt; Assembly binding xmlns = "karash: schema-microsoft-com: asm.v1" & gt; & Lt; DependentAssembly & gt; & Lt; Assembly Identification Name = "Nurbinate" PublicKoken = "AAMFFFXX" /> & lt; Compulsive redirects older version = "3.0.0.2001" newVersion = "3.0.0.4000" /> & Lt; / DependentAssembly & gt; & Lt; / AssemblyBinding & gt; & Lt; / Order & gt; & Lt; / Configuration & gt; Redirect all requests from 2001 to 4000
Comments
Post a Comment