Could not load type from assembly error

前端 未结 25 1428
温柔的废话
温柔的废话 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:01

    I had this issue after factoring a class name:
    Could not load type 'Namspace.OldClassName' from assembly 'Assembly name...'.

    Stopping IIS and deleting the contents in Temporary ASP.NET Files fixed it up for me.

    Depeding on your project (32/64bit, .net version, etc) the correct Temporary ASP.NET Files differs:

    • 64 Bit
      %systemroot%\Microsoft.NET\Framework64\{.netversion}\Temporary ASP.NET Files\
    • 32 Bit
      %systemroot%\Microsoft.NET\Framework\{.netversion}\Temporary ASP.NET Files\
    • On my dev machine it was (Because its IIS Express maybe?)
      %temp%\Temporary ASP.NET Files

提交回复
热议问题