Ask a questionAsk a question
 

QuestionThe located assembly's manifest definition does not match the assembly reference.

  • Tuesday, October 02, 2007 10:31 PMkriau Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hello community,

     

    One of solution project has user control and XAML form with this control in the same project.

     

    Code Block

    <Window x:Class="Pulsatrix.Framework.Visualizers.VisualizerWindow"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    xmlns:SmartParts="clr-namespace:Pulsatrix.Framework.SmartParts;assembly=" >

    <SmartParts:TabWorkspace x:Name="MainWorkspace" />

    </< FONT>Window>

     

    WPF designer shows form in design mode without any warnings or errors. I compile application, run it and application encounters error at form's constructor on InitializeComponent() line

    Code Block

    public VisualizerWindow()

    {

    InitializeComponent();

    }

     

    Error description:

     

    Code Block

    Could not load file or assembly 'Pulsatrix.Framework, Version=1.0.2832.475, Culture=neutral, PublicKeyToken=7391b53b94c15bbe' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

     

     

     

    But indeed Pulsatrix.Framework file version is 1.0.2832.477

     

    So, question is why Visual Studio 2008 beta 2 after compile sets one version number to assembly but XAML form constructor requests another assembly version number?

     

    How to solve this error?

     

    One of workaround is to create TabWorkspace in code and assign it to Window.Content. But this is only workaround, I want gracefully solve this problem. 

     

    AssemblyInfo.cs file has AssemblyVersion setting (there is no AssemblyFileVersion setting) and Neutral Resources Language setting.

    Code Block

    [assembly: NeutralResourcesLanguage("en")]

    [assembly: AssemblyVersionAttribute("1.0.*")]

     

    Below is detailed crash report. Report is long enough, but it shows detailed exception, Fusion log and loaded assembly list with version numbers.

     

    Code Block

    Pulsatrix crash report:

     

    Date: 2007-10-03 01-16-09
    User: Tetis@Z96J

     

    Operating System Version: Microsoft Windows NT 5.1.2600 Service Pack 2
    Common Language Runtime Version: 2.0.50727.1378

     

    Exception Source: mscorlib
    Exception TargetSite: System.Object _InvokeMethodFast(System.Object, System.Object[], System.SignatureStruct ByRef, System.Reflection.MethodAttributes, System.RuntimeTypeHandle)

     

    Marshal.GetHRForException(exception): -2146232828

     

    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Windows.Markup.XamlParseException:  Could not load file or assembly 'Pulsatrix.Framework, Version=1.0.2832.475, Culture=neutral, PublicKeyToken=7391b53b94c15bbe' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)  Error at object 'Pulsatrix.Framework.Visualizers.VisualizerWindow' in markup file 'Pulsatrix.Framework;component/visualizers/visualizerwindow.xaml' Line 7 Position 3. ---> System.IO.FileLoadException: Could not load file or assembly 'Pulsatrix.Framework, Version=1.0.2832.475, Culture=neutral, PublicKeyToken=7391b53b94c15bbe' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

     

    File name: 'Pulsatrix.Framework, Version=1.0.2832.475, Culture=neutral, PublicKeyToken=7391b53b94c15bbe'
       at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
       at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
       at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       at System.Reflection.Assembly.Load(String assemblyString)
       at System.Windows.Markup.ReflectionHelper.LoadAssemblyHelper(String assemblyGivenName, String assemblyPath)
       at System.Windows.Markup.ReflectionHelper.LoadAssembly(String assemblyName, String assemblyPath)
       at System.Windows.Markup.BamlMapTable.GetAssemblyFromAssemblyInfo(BamlAssemblyInfoRecord assemblyInfoRecord)
       at System.Windows.Markup.BamlMapTable.GetTypeFromTypeInfo(BamlTypeInfoRecord typeInfo)
       at System.Windows.Markup.BamlMapTable.GetTypeFromId(Int16 id)
       at System.Windows.Markup.BamlRecordReader.GetElementAndFlags(BamlElementStartRecord bamlElementStartRecord, Object& element, ReaderFlags& flags, Type& delayCreatedType, Int16& delayCreatedTypeId)
       at System.Windows.Markup.BamlRecordReader.BaseReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
       at System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
       at System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)

     

    === Pre-bind state information ===
    LOG: User = Z96J\Tetis

     

    LOG: DisplayName = Pulsatrix.Framework, Version=1.0.2832.475, Culture=neutral, PublicKeyToken=7391b53b94c15bbe
     (Fully-specified)

     

    LOG: Appbase = file:///D:/SVN/Visual Studio Projects/Pulsatrix_CodePlex/Pulsatrix/bin/Debug/

     

    LOG: Initial PrivatePath = NULL

     

    Calling assembly : WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.

     

    ===

     

    LOG: This bind starts in default load context.

     

    LOG: Using application configuration file: D:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix\bin\Debug\Pulsatrix.exe.Config

     

    LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.

     

    LOG: Post-policy reference: Pulsatrix.Framework, Version=1.0.2832.475, Culture=neutral, PublicKeyToken=7391b53b94c15bbe

     

    LOG: Attempting download of new URL file:///D:/SVN/Visual Studio Projects/Pulsatrix_CodePlex/Pulsatrix/bin/Debug/Pulsatrix.Framework.DLL.

     

    WRN: Comparing the assembly name resulted in the mismatch: Revision Number

     

    ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

     

       --- End of inner exception stack trace ---
       at System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType)
       at System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext, Int32 lineNumber, Int32 linePosition, String message, Exception innerException)
       at System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)
       at System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord)
       at System.Windows.Markup.TreeBuilderBamlTranslator.ParseFragment()
       at System.Windows.Markup.TreeBuilder.Parse()
       at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
       at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
       at Pulsatrix.Framework.Visualizers.VisualizerWindow.InitializeComponent() in d:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.Framework\Visualizers\VisualizerWindow.xaml:line 1
       at Pulsatrix.Framework.Visualizers.VisualizerWindow..ctor() in D:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.Framework\Visualizers\VisualizerWindow.xaml.cs:line 21

     

       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeConstructorInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
       at Pulsatrix.ObjectBuilder.CreationStrategy.InitializeObject(IBuilderContext context, Object existing, String id, ICreationPolicy policy) in d:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.ObjectBuilder\Strategies\Creation\CreationStrategy.cs:line 100
       at Pulsatrix.ObjectBuilder.CreationStrategy.BuildUpNewObject(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild) in d:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.ObjectBuilder\Strategies\Creation\CreationStrategy.cs:line 76
       at Pulsatrix.ObjectBuilder.CreationStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild) in d:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.ObjectBuilder\Strategies\Creation\CreationStrategy.cs:line 39
       at Pulsatrix.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild) in d:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.ObjectBuilder\BuilderStrategy.cs:line 24
       at Pulsatrix.ObjectBuilder.ReflectionStrategy`1.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild) in d:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.ObjectBuilder\Strategies\ReflectionStrategy.cs:line 40
       at Pulsatrix.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild) in d:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.ObjectBuilder\BuilderStrategy.cs:line 24
       at Pulsatrix.ObjectBuilder.ReflectionStrategy`1.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild) in d:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.ObjectBuilder\Strategies\ReflectionStrategy.cs:line 40
       at Pulsatrix.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild) in d:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.ObjectBuilder\BuilderStrategy.cs:line 24
       at Pulsatrix.ObjectBuilder.ReflectionStrategy`1.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild) in d:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.ObjectBuilder\Strategies\ReflectionStrategy.cs:line 40
       at Pulsatrix.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild) in d:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.ObjectBuilder\BuilderStrategy.cs:line 24
       at Pulsatrix.ObjectBuilder.SingletonStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild) in d:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.ObjectBuilder\Strategies\Singleton\SingletonStrategy.cs:line 39
       at Pulsatrix.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild) in d:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.ObjectBuilder\BuilderStrategy.cs:line 24
       at Pulsatrix.ObjectBuilder.TypeMappingStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild) in d:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.ObjectBuilder\Strategies\TypeMapping\TypeMappingStrategy.cs:line 35
       at Pulsatrix.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild) in d:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.ObjectBuilder\BuilderStrategy.cs:line 24
       at Pulsatrix.ObjectBuilder.LifetimeStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild) in d:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.ObjectBuilder\Strategies\Lifetime\LifetimeStrategy.cs:line 9
       at Pulsatrix.ObjectBuilder.Builder.BuildUp(IReadWriteLocator locator, ILifetimeContainer lifetime, PolicyList policies, IStrategyChain strategies, Type typeToBuild, String idToBuild, Object existing) in d:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.ObjectBuilder\Builder.cs:line 28
       at Pulsatrix.Framework.WorkItems.ManagedObjectCollection`1.BuildFirstTimeItem(Type typeToBuild, String idToBuild, Object item) in D:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.Framework\WorkItems\ManagedObjectCollection.cs:line 461
       at Pulsatrix.Framework.WorkItems.ManagedObjectCollection`1.Build(Type typeToBuild, String idToBuild, Object item) in D:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.Framework\WorkItems\ManagedObjectCollection.cs:line 446
       at Pulsatrix.Framework.WorkItems.ManagedObjectCollection`1.AddNew(Type typeToBuild, String id) in D:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.Framework\WorkItems\ManagedObjectCollection.cs:line 252
       at Pulsatrix.Framework.WorkItems.ManagedObjectCollection`1.AddNew[TTypeToBuild](String id) in D:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.Framework\WorkItems\ManagedObjectCollection.cs:line 275
       at Pulsatrix.Framework.Visualizers.WindowsVisualizer.CreateVisualizationShell() in D:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.Framework\Visualizers\WindowsVisualizer.cs:line 46
       at Pulsatrix.Framework.Visualizers.Visualizer.Initialize(WorkItem cabRootWorkItem) in D:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.Framework\Visualizers\Visualizer.cs:line 87
       at Pulsatrix.Framework.CabApplication.Run() in D:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix.Framework\CabApplication.cs:line 111
       at Pulsatrix.Launcher.StartThread() in D:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix\Launcher.cs:line 31
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

     

     

    mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

     

    Pulsatrix, Version=1.0.2832.479, Culture=neutral, PublicKeyToken=0d7624eedfb44fb8

     

    Pulsatrix.Framework, Version=1.0.2832.477, Culture=neutral, PublicKeyToken=7391b53b94c15bbe

     

    PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

     

    PresentationCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

     

    System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

     

    WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

     

    Pulsatrix.Base, Version=1.0.2832.478, Culture=neutral, PublicKeyToken=76f8a4ec0c6b261c

     

    Pulsatrix.ObjectBuilder, Version=1.0.2831.41399, Culture=neutral, PublicKeyToken=7b65bd837fce98dd

     

    Pulsatrix.Diagnostics, Version=1.0.2831.41399, Culture=neutral, PublicKeyToken=195f18d4004874d7

     

    System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

     

    System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

     

    PresentationFramework.Luna, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

     

    Pulsatrix.ObjectBuilder.Configuration, Version=1.0.2831.41399, Culture=neutral, PublicKeyToken=cb93b114df871fc9

     

     

    File:             C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll
    InternalName:     mscorlib.dll
    OriginalFilename: mscorlib.dll
    FileVersion:      2.0.50727.1378 (REDBITSB2.050727-1300)
    FileDescription:  Microsoft Common Language Runtime Class Library
    Product:          Microsoft® .NET Framework
    ProductVersion:   2.0.50727.1378
    Debug:            False
    Patched:          False
    PreRelease:       False
    PrivateBuild:     False
    SpecialBuild:     False
    Language:         English (United States)

     

    File:             D:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix\bin\Debug\Pulsatrix.exe
    InternalName:     Pulsatrix.exe
    OriginalFilename: Pulsatrix.exe
    FileVersion:      1.0.2832.479
    FileDescription:  Pulsatrix
    Product:          Pulsatrix
    ProductVersion:   1.0.2832.479
    Debug:            False
    Patched:          False
    PreRelease:       False
    PrivateBuild:     False
    SpecialBuild:     False
    Language:         Language Neutral

     

    File:             D:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix\bin\Debug\Pulsatrix.Framework.dll
    InternalName:     Pulsatrix.Framework.dll
    OriginalFilename: Pulsatrix.Framework.dll
    FileVersion:      1.0.2832.477
    FileDescription:  Pulsatrix Framework
    Product:          Pulsatrix.Framework
    ProductVersion:   1.0.2832.477
    Debug:            False
    Patched:          False
    PreRelease:       False
    PrivateBuild:     False
    SpecialBuild:     False
    Language:         Language Neutral

     

    File:             C:\WINDOWS\assembly\GAC_MSIL\PresentationFramework\3.0.0.0__31bf3856ad364e35\PresentationFramework.dll
    InternalName:     PresentationFramework
    OriginalFilename: PresentationFramework.dll
    FileVersion:      3.0.6920.1005 (lh_tools_devdiv_wpf_beta2(avdrt).061020-1904)
    FileDescription:  Windows Presentation Foundation Framework Library
    Product:          Microsoft® Windows® Operating System
    ProductVersion:   3.0.6920.0
    Debug:            False
    Patched:          False
    PreRelease:       False
    PrivateBuild:     False
    SpecialBuild:     False
    Language:         English (United States)

     

    File:             C:\WINDOWS\assembly\GAC_32\PresentationCore\3.0.0.0__31bf3856ad364e35\PresentationCore.dll
    InternalName:     PresentationCore
    OriginalFilename: PresentationCore.dll
    FileVersion:      3.0.6920.1005 (lh_tools_devdiv_wpf_beta2(avdrt).061020-1904)
    FileDescription:  Windows Presentation Foundation Core Components Library
    Product:          Microsoft® Windows® Operating System
    ProductVersion:   3.0.6920.0
    Debug:            False
    Patched:          False
    PreRelease:       False
    PrivateBuild:     False
    SpecialBuild:     False
    Language:         English (United States)

     

    File:             C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll
    InternalName:     System.dll
    OriginalFilename: System.dll
    FileVersion:      2.0.50727.1378 (REDBITSB2.050727-1300)
    FileDescription:  .NET Framework
    Product:          Microsoft® .NET Framework
    ProductVersion:   2.0.50727.1378
    Debug:            False
    Patched:          False
    PreRelease:       False
    PrivateBuild:     False
    SpecialBuild:     False
    Language:         English (United States)

     

    File:             C:\WINDOWS\assembly\GAC_MSIL\WindowsBase\3.0.0.0__31bf3856ad364e35\WindowsBase.dll
    InternalName:     WindowsBase
    OriginalFilename: WindowsBase.dll
    FileVersion:      3.0.6920.1005 (lh_tools_devdiv_wpf_beta2(avdrt).061020-1904)
    FileDescription:  Windows Presentation Foundation Base Library
    Product:          Microsoft® Windows® Operating System
    ProductVersion:   3.0.6920.0
    Debug:            False
    Patched:          False
    PreRelease:       False
    PrivateBuild:     False
    SpecialBuild:     False
    Language:         English (United States)

     

    File:             D:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix\bin\Debug\Pulsatrix.Base.dll
    InternalName:     Pulsatrix.Base.dll
    OriginalFilename: Pulsatrix.Base.dll
    FileVersion:      1.0.2832.478
    FileDescription:  Pulsatrix Base Module
    Product:          Pulsatrix.Base
    ProductVersion:   1.0.2832.478
    Debug:            False
    Patched:          False
    PreRelease:       False
    PrivateBuild:     False
    SpecialBuild:     False
    Language:         Language Neutral

     

    File:             D:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix\bin\Debug\Pulsatrix.ObjectBuilder.dll
    InternalName:     Pulsatrix.ObjectBuilder.dll
    OriginalFilename: Pulsatrix.ObjectBuilder.dll
    FileVersion:      1.0.2831.41399
    FileDescription:  Pulsatrix Dependency Injection Library
    Product:          Pulsatrix.ObjectBuilder
    ProductVersion:   1.0.2831.41399
    Debug:            False
    Patched:          False
    PreRelease:       False
    PrivateBuild:     False
    SpecialBuild:     False
    Language:         Language Neutral

     

    File:             D:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix\bin\Debug\Pulsatrix.Diagnostics.dll
    InternalName:     Pulsatrix.Diagnostics.dll
    OriginalFilename: Pulsatrix.Diagnostics.dll
    FileVersion:      1.0.2831.41399
    FileDescription:  Pulsatrix Diagnostics
    Product:          Pulsatrix.Diagnostics
    ProductVersion:   1.0.2831.41399
    Debug:            False
    Patched:          False
    PreRelease:       False
    PrivateBuild:     False
    SpecialBuild:     False
    Language:         Language Neutral

     

    File:             C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll
    InternalName:     System.Xml.dll
    OriginalFilename: System.Xml.dll
    FileVersion:      2.0.50727.1378 (REDBITSB2.050727-1300)
    FileDescription:  .NET Framework
    Product:          Microsoft® .NET Framework
    ProductVersion:   2.0.50727.1378
    Debug:            False
    Patched:          False
    PreRelease:       False
    PrivateBuild:     False
    SpecialBuild:     False
    Language:         English (United States)

     

    File:             C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
    InternalName:     System.Configuration.dll
    OriginalFilename: System.Configuration.dll
    FileVersion:      2.0.50727.1378 (REDBITSB2.050727-1300)
    FileDescription:  System.Configuration.dll
    Product:          Microsoft® .NET Framework
    ProductVersion:   2.0.50727.1378
    Debug:            False
    Patched:          False
    PreRelease:       False
    PrivateBuild:     False
    SpecialBuild:     False
    Language:         English (United States)

     

    File:             C:\WINDOWS\assembly\GAC_MSIL\PresentationFramework.Luna\3.0.0.0__31bf3856ad364e35\PresentationFramework.Luna.dll
    InternalName:     PresentationFramework.Luna
    OriginalFilename: PresentationFramework.Luna.dll
    FileVersion:      3.0.6920.1005 (lh_tools_devdiv_wpf_beta2(avdrt).061020-1904)
    FileDescription:  Windows Presentation Foundation Luna Theme
    Product:          Microsoft® Windows® Operating System
    ProductVersion:   3.0.6920.0
    Debug:            False
    Patched:          False
    PreRelease:       False
    PrivateBuild:     False
    SpecialBuild:     False
    Language:         English (United States)

     

    File:             D:\SVN\Visual Studio Projects\Pulsatrix_CodePlex\Pulsatrix\bin\Debug\Pulsatrix.ObjectBuilder.Configuration.dll
    InternalName:     Pulsatrix.ObjectBuilder.Configuration.dll
    OriginalFilename: Pulsatrix.ObjectBuilder.Configuration.dll
    FileVersion:      1.0.2831.41399
    FileDescription:  Pulsatrix ObjectBuildernConfiguration
    Product:          Pulsatrix.ObjectBuilder.Configuration
    ProductVersion:   1.0.2831.41399
    Debug:            False
    Patched:          False
    PreRelease:       False
    PrivateBuild:     False
    SpecialBuild:     False
    Language:         Language Neutral


     

     

All Replies

  • Wednesday, October 03, 2007 6:33 PMMatt Galbraith - MSFT Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    Couple ideas:

     

    1) If your application is ClickOnce deployed, you may be hitting issues with publishing.  Disabling "Automatically increment revision with each publish" or explicitly setting the assembly version to a known value may help.

     

    2) If you are referencing the .dll of PulsatrixFramework directly, try referencing the project instead.  This will cause rebuild at compile time for the dependent project, and should help with versioning problems.

     

    3) Check the make sure that the old version of Pulsatrix.Framework.dll is not in the GAC. (Gacutil /l from an SDK command prompt).  If there is a copy gac-ed, this will be honored before any other copies of the assembly. 

     

    Hope any of this helps!

    Matt Galbraith

     

     

  • Wednesday, October 03, 2007 7:45 PMkriau Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    Hello Matt,

     

    Regarding your ideas:

     

    1) I do not use ClickOnce. This project is under development and all that I do is simply compile and run from VS inside or from command line in Debug folder. I'll try to explicity set the assembly version, but this is only workaround, not a solution Sad

     

    2) All solution relations between projects are through project references not the dlls directly. But in this particular case, the usercontrol and form with this control is in the same project.

     

    3) This is also not the case, cause xaml form tries to find the dll (btw, this form sits in the same dll !!) with different version that actually dll is. This long crash report also shows Fusion log, where you can find that this is not a case.

     

     

    Anyway thank you for you ideas and time,

    Arturas

  • Thursday, October 04, 2007 3:48 AMYi-Lun LuoMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    This looks more like a Visual Studio problem. Moving from WPF forum.

     

  • Thursday, November 01, 2007 12:44 PMMarlon GrechMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     


    The problem is basically the Assembly info

    [assembly: AssemblyVersion("1.0.*")]   should be [assembly: AssemblyVersion("1.0.0")]

    This should work fine....

    regards