Nhibernate.Xmlserializers - Isn’t there?

Asked

Viewed 257 times

3

Unable to load file or Assembly 'Nhibernate.Xmlserializers, Version=4.0.0.4000, Culture=neutral, Publickeytoken=aa95f207798dfdb4' or one of its dependencies. The system cannot find specified file.

My application started requesting a DLL that does not exist before it was minhaapp.dll.XmlSerializers so I added this code to the project and the error changed from "address" to Nhibernate’s DLL

<Target Name="AfterBuild" DependsOnTargets="AssignTargetPaths;Compile;ResolveKeySource" Inputs="$(MSBuildAllProjects);@(IntermediateAssembly)" Outputs="$(OutputPath)$(_SGenDllName)">
    <!-- Delete the file because I can't figure out how to force the SGen task. -->
    <Delete
      Files="$(TargetDir)$(TargetName).XmlSerializers.dll"
      ContinueOnError="true" />
    <SGen
      BuildAssemblyName="$(TargetFileName)"
      BuildAssemblyPath="$(OutputPath)"
      References="@(ReferencePath)"
      ShouldGenerateSerializer="true"
      UseProxyTypes="false"
      KeyContainer="$(KeyContainerName)"
      KeyFile="$(KeyOriginatorFile)"
      DelaySign="$(DelaySign)"
      ToolPath="$(TargetFrameworkSDKToolsDirectory)"
      Platform="$(Platform)">
      <Output
       TaskParameter="SerializationAssembly"
       ItemName="SerializationAssembly" />
    </SGen>
  </Target>

Does anyone have any suggestions?

  • The error only happens in Debug?

  • No, it happens in release as well. If you implement static void CurrentDomain_FirstChanceException(object sender, System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs e)&#xA; {&#xA; FileLog.GravarLog(e.Exception, "CurrentDomain_FirstChanceException");&#xA; } it is possible to capture the error.

  • According to Ayende, this error should be disregarded: https://groups.google.com/forum/#! topic/nhusers/d07afiAPRRM

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.