Compiler error, versioning issue

w230769's Avatar

w230769

04 Jul, 2018 08:17 PM

Hi,

How do I solve this issue?

Severity Code Description Project File Line Suppression State
Error Task "Logging": cannot instantiate the type "". An exception of type FileNotFoundException was thrown: System.IO.FileNotFoundException: Could not load file or assembly 'PostSharp.Patterns.Common, Version=6.0.17.0, Culture=neutral, PublicKeyToken=e7f631e6ce13f078' or one of its dependencies. The system cannot find the file specified.
File name: 'PostSharp.Patterns.Common, Version=6.0.17.0, Culture=neutral, PublicKeyToken=e7f631e6ce13f078' ---> System.IO.FileNotFoundException: Could not load file or assembly 'PostSharp.Patterns.Common, Version=5.0.52.0, Culture=neutral, PublicKeyToken=e7f631e6ce13f078' or one of its dependencies. The system cannot find the file specified.
File name: 'PostSharp.Patterns.Common, Version=5.0.52.0, Culture=neutral, PublicKeyToken=e7f631e6ce13f078'

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

   at PostSharp.Patterns.Diagnostics.LoggingBuildTimeConfiguration..ctor()
   at PostSharp.Patterns.Diagnostics.Weaver.Logging.LoggingTask..ctor()
   at PostSharp.Patterns.Diagnostics.Weaver.DiagnosticsProjectConfiguration.<>c.<GetProjectConfiguration>b__1_1(IExpressionEvaluator project)
   at PostSharp.Sdk.Extensibility.Configuration.TaskTypeConfiguration.^N565HL29(XElement _0, Project _1)

. TradeStation C:\Users\W2307\.nuget\packages\postsharp.patterns.diagnostics\5.0.52\tools\PostSharp.Patterns.Diagnostics.Weaver.dll

  1. 1 Posted by w230769 on 05 Jul, 2018 09:03 AM

    w230769's Avatar

    okay, I found an entry in my App.Config that did not get updated with the NuGet package, after removing this the error was gone.
     
          <dependentAssembly>
            <assemblyIdentity name="PostSharp.Patterns.Common" publicKeyToken="e7f631e6ce13f078" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-6.0.17.0" newVersion="6.0.17.0" />
          </dependentAssembly>

    I have added the "bad" config for your reference.

  2. 2 Posted by w230769 on 05 Jul, 2018 09:20 AM

    w230769's Avatar

    Hi,
    Welcome to NuGet" hell" ;-)

    I now get an issue when I open Nuget:
    Access to the path 'postsharp-x86-srv.exe' is denied.
    Failed to remove package directory 'C:\Users\W2307\source\Workspaces\TradeStation\TradeStation\packages\PostSharp.6.0.10-preview' that was marked for deletion on Visual Studio restart.
    Access to the path 'postsharp-x86-srv.exe' is denied.
    Failed to remove package directory 'C:\Users\W2307\source\Workspaces\TradeStation\TradeStation\packages\PostSharp.6.0.10-preview' that was marked for deletion on Visual Studio restart.

  3. 3 Posted by w230769 on 05 Jul, 2018 09:25 AM

    w230769's Avatar

    Hi,

    I manuell removed the PostSharp.6.0.10-preview.deleteme file and removed the folders with the packages.
    problem was gone, not sure if I find an issue later

  4. 4 Posted by w230769 on 05 Jul, 2018 10:02 AM

    w230769's Avatar

    Hi,

    A day to go swimming...
    Looks like the Nuget dependency is not referencing the right packages.

    I went from version 6 preview back to the latest supported version and put my compiler on 7.1 from 7.2
    The build log shows some errors in regards to version incompatibility.

  5. 5 Posted by w230769 on 05 Jul, 2018 01:05 PM

    w230769's Avatar

    I solved the issue by going with the latest rc and compile with 7.2 c#

  6. Support Staff 6 Posted by PostSharp Techn... on 06 Jul, 2018 09:32 AM

    PostSharp Technologies's Avatar

    Hello,

    I apologize for not answering earlier, we currently have a state holiday here. I understand you have solved above issues, is there anything we can help you with at this point?

    Best regards,
    Daniel

  7. 7 Posted by w230769 on 06 Jul, 2018 03:37 PM

    w230769's Avatar

    nope, solved, by going back to the RC. perhaps look at the corruption on a downgrade, perhaps you have similar experiences.
      enjoy the vacation

  8. Support Staff 8 Posted by PostSharp Techn... on 09 Jul, 2018 10:25 AM

    PostSharp Technologies's Avatar

    Hello,

    thank you for updating us. For your information, the issue with uninstalling PostSharp 6.0.10 is solved in the latest RC.

    We are going to close this request as we believe it was solved. Please feel free to reopen the discussion if you need more help.

    Best regards,
    -tony

  9. PostSharp Technologies closed this discussion on 09 Jul, 2018 10:25 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac