2014-05-25 4 views
0

이 표시되지 않습니다. Markweb에서 Mark.DAL.CartInitializer을로드 할 수 없습니다.ASP.NET MVC 5 사용자 지정보기를 실행할 때 예외가 발생했습니다.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.TypeLoadException: Could not load type 'Mark.DAL.MarkInitializer' from assembly 'Markweb1'. 

오류 자료 :

public ActionResult Index() 
{ 
    return View(db.mark.ToList()); 
} 

답변

0

이것은 일반적으로로드되는 잘못된 조립의 결과입니다. 한 프로젝트에서 다른 프로젝트 (예 : '클래스 라이브러리'를 참조하는 'Windows 응용 프로그램'유형)를 참조하고 둘 다 동일한 어셈블리 이름을 사용하면이 오류가 발생합니다. 참조하는 프로젝트의 어셈블리 이름을 바꿉니다. 또는 오류로 지정된 어셈블리를 설치하지 않았을 수 있습니다. 또는 DLL이 다른 DLL의 작업을 완료하는 데 의존하고 복사하거나 설치하지 않은 경우 실제로이 오류 메시지가 나타납니다.

관련 문제