Assembly resources FileNotFoundException in project upgraded to VS 2010 framework 4.0

前端 未结 2 1955
孤街浪徒
孤街浪徒 2020-12-16 22:01

I have upgraded a C# WinForms application from Visual C# 2008 (framework 3.5) to 2010 (framework 4.0) and I\'m getting runtime errors.

The application loads assembli

相关标签:
2条回答
  • 2020-12-16 22:26

    SOLUTION FOUND

    I found out that the problem was related to how the dotnet framework tried to find localized resources and after I added the following line to AssemblyInfo.cs in my assemblies it started working again.

    [assembly: NeutralResourcesLanguageAttribute("sv-SE", UltimateResourceFallbackLocation.MainAssembly)]
    
    0 讨论(0)
  • 2020-12-16 22:50

    You could try enabling logging in the the Fusion loader. I have had great success creating the DWORD value EnableLog in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion to 1. You will then get detailed loading error messages in the event log.

    0 讨论(0)
提交回复
热议问题