[Asp.net] 프로젝트를 실행하면 "파일 또는 어셈블리 "Newtonsoft.Json" 또는 해당 종속성 중 하나를 로드하지 못했습니다. 발견된 어셈블리 매니페스트 정의가 어셈블리 참조와 일치하지 않습니다" 솔루션 프롬프트가 표시됨(해결됨)

1. web.config를 열고 <configuration> 아래에 추가합니다.

	<runtime>
		<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
			<dependentAssembly>
				<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
				<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="4.0.0.0" />
			</dependentAssembly>
		</assemblyBinding>
	</runtime>

2. newVersion="4.0.0.0"의 버전 번호를 시스템의 버전 ​​번호로 변경합니다. 버전 번호 검색은 매우 간단합니다. 프로젝트를 생성하면 아래 그림의 위치에 프롬프트가 표시됩니다.

추천

출처blog.csdn.net/dxnn520/article/details/123256353