3
카시니 웹 서버를 사용하여 배포 테스트 호스트를 만들려고합니다. 일종의 임베디드 웹 서버로 앱 배포 문제에서 웹 서버 구성 문제를 격리합니다.ApplicationManager를 사용하여 GACing을 사용하여 객체를로드하는 방법은 무엇입니까?
// physical path points to the bin folder with the dll
_host = (Host)_appManager.CreateObject(appId, typeof(Host),
_virtualPath, _physicalPath,
false /*failIfExists*/);
을 위 FileNotFoundException이 실패 - 그냥 수 있어야 Cassini.dll
을 찾기 위해 노력하는 것처럼 : 내가 GAC에 카시니을 넣을 때까지 좋아, 그럼이 코드 줄이 불면 ApplicationManager에게 GAC에 넣는 극단적 인 조치없이 어디를 볼 수 있습니까?
저는 Cassini 2.1과 source code is here을 사용하고 있습니다.
그게 전부입니다. Cassini는 c : \ foo \ bin에서 시작 했으므로 casinni가 gac없이 다시 자체 어셈블리에 클래스를로드하려면 c : \ foo \ bin \ bin에서로드해야합니다. – MatthewMartin