Could not load type from assembly error

前端 未结 25 1436
温柔的废话
温柔的废话 2020-11-30 03:30

I have written the following simple test in trying to learn Castle Windsor\'s Fluent Interface:

using NUnit.Framework;
using Castle.Windsor;
using System.Col         


        
25条回答
  •  悲&欢浪女
    2020-11-30 04:10

    I was getting this error and nothing I found on StackOverflow or elsewhere solved it, but bmoeskau's answer to this question pointed me in the right direction for the fix, which hasn't been mentioned yet as an answer. My answer isn't strictly related to the original question, but I'm posting it here under the assumption that someone having this problem will find there way here through searching Google or something similar (like myself one month from now when this bites me again, arg!).

    My assembly is in the GAC, so there is theoretically only one version of the assembly available. Except IIS is helpfully caching the old version and giving me this error. I had just changed, rebuilt and reinstalled the assembly in the GAC. One possible solution is to use Task Manager to kill w3wp.exe. This forces IIS to reread the assembly from the GAC: problem solved.

提交回复
热议问题