파일 또는 어셈블리 'Microsoft.VisualStudio.Web.PageInspector.Loader를로드 할 수 없습니다.
파일 또는 어셈블리 'Microsoft.VisualStudio.Web.PageInspector.Loader, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a'또는 해당 종속성 중 하나를로드 할 수 없습니다. 모듈은 어셈블리 매니페스트를 포함 할 것으로 예상되었습니다. 어셈블리 관리자 : C : \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ clr.dll 실행 가능한 C : \ Program Files (x86) \ Common Files \ Microsoft Shared \ DevServer \ 11.0 \ WebDev.WebServer40.exe에서 실행 --- 자세한 오류 로그는 다음과 같습니다. === 사전 바인딩 상태 정보 === 로그 : 사용자 = TTLWIN2K \ miralp 로그 : DisplayName = Microsoft.VisualStudio.Web.PageInspector.Loader, 버전 = 1.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a (완전히 지정됨) 로그 : Appbase = file : /// C : / SVN / temp / components / src / MasterpassProxy / src / Webservice / 로그 : 초기 PrivatePath = C : \ SVN \ temp \ components \ src \ MasterpassProxy \ src \ Webservice \ bin 어셈블리 호출 : (알 수 없음). === LOG :이 바인딩은 기본로드 컨텍스트에서 시작됩니다. 로그 : 응용 프로그램 구성 파일 사용 : C : \ SVN \ temp \ components \ src \ MasterpassProxy \ src \ Webservice \ web.config 로그 : 호스트 구성 파일 사용 : 로그 : C : \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ config \ machine.config에서 컴퓨터 구성 파일 사용. 로그 : 정책 후 참조 : Microsoft.VisualStudio.Web.PageInspector.Loader, 버전 = 1.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a
방금 동일한 문제가 발생했고 그 원인은 Visual Studio Express 2012 제거였습니다 . 이 답변에 대한 의견은 Visual Studio 2019 에서 문제가 계속 발생 함을 나타내므로 모든 버전의 Visual Studio 일 수 있습니다 . 내 전반적인 작업 순서는 다음과 같습니다.
- Visual Studio Express 2012 설치 (오래 전)
- Visual Studio Express 2012를 수개월 동안 즐겁게 사용했습니다.
- Visual Studio 2013 Premium 설치
- Visual Studio 2013 Premium을 몇 주 동안 즐겁게 사용했습니다.
- Visual Studio Express 2012를 제거했습니다.
- 오류
그 원인이나 Visual Studio 버전의 어떤 조합이이 동작을 나타낼 지 100 % 확실하지 않습니다. 하지만 저에게 해결책 web.config
은 프레임 워크 디렉토리에서 루트 파일 을 편집하는 것이 었습니다 .
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\web.config
(다른 프레임 워크 버전의 경우 폴더가 다를 수 있습니다.)
그리고 노드를 제거하십시오.
<remove assembly="Microsoft.VisualStudio.Web.PageInspector.Loader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="Microsoft.VisualStudio.Web.PageInspector.Loader, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
이들과 같은 줄에있는 여는 / 닫는 부모 노드를 제거하지 않도록주의하십시오 .
이것은 나를 위해 문제를 해결했습니다.
해당 줄을 제거 할 필요가 없습니다 . 관리자 권한으로
Visual Studio를 닫았다가 다시 엽니 다 .
동일한 문제가 발생했지만 개발 시스템이 아니라 호스팅 서버에서 발생했습니다.
C : \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Config \ web.config C : \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Config \ web.config
web.config에 아래 코드를 추가하여 수정할 수있었습니다.
<compilation targetFramework="4.5">
<assemblies>
<remove assembly="Microsoft.VisualStudio.Web.PageInspector.Loader,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</assemblies>
</compilation>
또는 프레임 워크 디렉터리의 web.config 파일에서이 어셈블리에 대한 참조를 제거합니다.
나는 거기에 VS를 설치하지 않았고 PageInspector를 설치하지 않았습니다. 해당 구성이 왜 참조하는지 아십니까?
업데이트 : 이 페이지 에 따라 Visual Studio 2019 버전 16.0.3에서 수정되었습니다 .
Visual Studio 2019 RC로 업그레이드 한 후이 문제가 발생하면 다음 해결 방법이 도움이되었습니다.
- 다운로드 캐시 디렉토리 찾기
- Explorer 이상을 사용하여이 디렉터리에서 AspNetDiagnosticPack.msi를 찾습니다.
- AspNetDiagnosticPack.msi 파일을 실행 (두 번 클릭)합니다. 그러면이 MSI가 강제로 설치됩니다.
여기서 끝날 수있는 사람들을 위해 디버깅하는 동안 프로젝트의 Web.Config 파일에서 다음 줄을 제거하십시오. <identity impersonate="true" userName="blah" password="blah">
마침내 다음 스레드를 발견 할 때까지 시간이 걸렸습니다. 파일이나 어셈블리 또는 종속성 중 하나를로드 할 수 없습니다. 접근이 불가합니다. 문제는 무작위이지만 한 번 발생하면 계속됩니다.
I've ran into this error while trying to run an ASP.NET project in VS2013 after having uninstalled a VS2015 preview. Repairing the VS2013 installation seems to have solved the problem.
I had this issue after installing Visual Studio 2019 (whilst 2017 was still installed). It's caused by a missing component - AspNetDiagnosticPack.msi
- that fails to install a required package into C:\ProgramData\Microsoft\VisualStudio\Packages\
The solution that worked for me was this:
Close Visual Studio
Download the package from:
- Run the installer and install.
This should fix it.
More information can be be found: https://developercommunity.visualstudio.com/content/problem/398640/could-not-load-file-or-assembly-microsoftvisualstu-7.html
I removed the dll from gac and it started working. I am not sure where those dlls came from. If you have 2 or more versions of visual studio, reinstall the last version.
Try updating your Microsoft.ApplicationInsights nuget package. This also installs other dependencies. I ran into this problem when I had to change my Target Framework.
- Tools > NuGet Package Manager > Manage NuGet Packages for Solution...
- search for "applicationinsights"
or run
Install-Package Microsoft.ApplicationInsights
Had a similar problem (another assembly) and for me it was a missing line in the web.config on the machine. A line that I think lets the web server load (any?) dll. I had to add "*" to the compilation-assemblies list in the web.config:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\web.config
Like this
<compilation>
<assemblies>
...
<add assembly="*" />
</assemblies>
</compilation>
To find it I had to compare the file with one from a working server. So it seems to me that It really is a load failure, but to determine why it fails, we need to be Sherlook H.. Normally I use a tool like ProcessMonitor to find out why I get a Load Failure, but this time, of course, it gave me no useful output.. IIS never tried to load the assembly!
If you don't see web.config in both of paths: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\web.config
file "Web" is in "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\
" what I really want to show you, It's Web.config
, you should open it with: notepad++... and remove:
//<remove assembly="Microsoft.VisualStudio.Web.PageInspector.Loader,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />"
I finish my problem with them.
우리 프로젝트는 오랫동안 GAC의 PageInspector.Loader.dll에 대한 참조를 잘못했습니다.
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.Web.PageInspector.Loader">
<HintPath>..\..\..\..\..\..\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Loader\v4.0_1.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Loader.dll</HintPath>
</Reference>
</ItemGroup>
한동안 작동했지만 최근 Azure에 배포하면 "Microsoft.VisualStudio.Web.PageInspector.Loader 패키지의 컴파일 라이브러리 위치를 찾을 수 없습니다"라는 오류가 발생했습니다.
.csproj 파일에서 참조를 찾아서 삭제 했으며 문제가 해결되었습니다.
이 스레드에서 승인 된 솔루션을 적용하여 결국 문제를 해결했습니다.
다음 두 파일을 수정하고 제거 Microsoft.VisualStudio.Web.PageInspector.Loader
하면 문제가 해결되었습니다.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\web.config
'Nice programing' 카테고리의 다른 글
적절한 오류 메시지와 함께 Capybara를 사용하여 요소 수를 주장하는 방법은 무엇입니까? (0) | 2020.10.06 |
---|---|
Apache httpd 설정 및 설치 (0) | 2020.10.06 |
.NET에 문자열 수학 평가 기가 있습니까? (0) | 2020.10.06 |
Dart로 날짜를 포맷하려면 어떻게합니까? (0) | 2020.10.06 |
ReactJS의 동적 속성 (0) | 2020.10.06 |