Microsoft MVP성태의 닷넷 이야기
글쓴 사람
익명
홈페이지
첨부 파일
 
(연관된 글이 1개 있습니다.)

CefSharp 패키지를 사용해서 개발했거든요.

개발 컴퓨터에서 릴리즈해서 실행해보면 아주 잘 사용되는데,

어째서 다른 컴퓨터에서 실행시



"'CefSharp.Core.dll' 또는 여기에 종속되어 있는 파일이나 어셈블리 중 하나를 로드할 수 없습니다"



라고 뜬 다음 뭔가 무지막지한 내용을 뿜어내더군요..ㅠㅠ



구글링해서

https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions#Runtime_dependencies

이 자료를 찾아내긴 했는데...

c#과 비주얼 스튜디오를 접한지 얼마 되지도 않아서

도통 뭘 어떻게 하란건지 감조차 잡히질 않습니다.

도와주세요 ㅠㅠ...

그리고 아래는 에러내용이에요 ㅠㅠ...





처리되지 않은 예외: System.Windows.Markup.XamlParseException: 지정된 바인딩 제약 조건과 일치하는 'cefShar.MainWindow' 형식에 대한 생성자 호출에서 예외가 throw되었습니다. ---> System.IO.FileNotFoundException: 파일이나 어셈블리 'CefSharp.Core.dll' 또는 여기에 종속되어 있는 파일이나 어셈블리 중 하나를 로드할 수 없습니다. 지정된 모듈을 찾을 수 없습니다.

   위치: cefShar.MainWindow.InitBrowder()

   --- 내부 예외 스택 추적의 끝 ---

   위치: System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)

   위치: System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)

   위치: System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)

   위치: System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)

   위치: System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)

   위치: System.Windows.Application.DoStartup()

   위치: System.Windows.Application.<.ctor>b__1_0(Object unused)

   위치: System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   위치: System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

   위치: System.Windows.Threading.DispatcherOperation.InvokeImpl()

   위치: MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)

   위치: System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   위치: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   위치: System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   위치: MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)

   위치: System.Windows.Threading.DispatcherOperation.Invoke()

   위치: System.Windows.Threading.Dispatcher.ProcessQueue()

   위치: System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   위치: MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   위치: MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

   위치: System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   위치: System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

   위치: System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

   위치: MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

   위치: MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)

   위치: System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)

   위치: System.Windows.Application.RunDispatcher(Object ignore)

   위치: System.Windows.Application.RunInternal(Window window)

   위치: cefShar.App.Main()


[연관 글]






[최초 등록일: ]
[최종 수정일: 5/4/2018]


비밀번호

댓글 작성자
 



2018-05-04 04시09분
WPF로 만든 응용 프로그램의 실행 파일(exe)이 위치한 폴더에 "CefSharp.Core.dll" 파일이 없어서 나오는 오류입니다. 또는, CefSharp.Core.dll 파일이 참조하고 있는 다른 DLL이 없어서 발생할 수도 있고.
정성태
2018-05-04 04시12분
[익명] CefSharp과 관련된 dll 파일들은 다 같은 디렉토리에 있어요ㅠㅠ..
그냥 단순히 CefSharp 패키지를 사용해서 간단한 화면만 출력하는 코드로
디버깅, 릴리즈해서 그 결과물을 다른 컴퓨터에 옮겨서 실행하면
저 코드가 떠요..ㅠㅠ.. 아.... 왜그럴까요...ㅠㅠ 빠른 답변 고마워요...
[guest]
2018-05-04 04시21분
[작성자] 참고로 코드의 내용은
public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            InitBrowder();
        }

        public ChromiumWebBrowser browser;
        public void InitBrowder()
        {    
            Cef.Initialize(new CefSettings());
        }
    }

이것밖에 없습니다...
[guest]
2018-05-04 04시30분
알려주신 링크를 보니, 대상 PC에 VC++ 2013/2015 Redistributable Package들도 설치해야 합니다. 그에 대해서는 6번 FAQ를 참고해 사용하고 있는 CefSharp 버전에 따른 package를 선택하면 됩니다. 링크한 글의 4번도 적용해 보시고요. 3번은 ClickOnce 배포로 한 게 아니라면 무시해도 되고 2번의 경우에도 전부 동일한 DLL이 있다면 고려 대상이 아닙니다.

만약 그래도 안되면, 개발자 PC에서 WPF 프로그램을 CefSharp을 포함하지 않는 버전으로 실행해 보고 Process Explorer 등을 통해 로드된 DLL을 확인한 다음, CefSharp을 포함한 버전으로 실행 후 새롭게 로드된 DLL을 기록해 보세요. 그리고 그 새로운 DLL들이 문제가 되는 대상 PC에 있는지 확인해 보시면 됩니다.
정성태
2018-05-04 05시40분
[정성태님] 찾았습니다.!!! 원인은 바로
Visual C++ 2013 Redistribution
이녀석이 사용자 컴퓨터에 설치돼있지 않아서였어요!

성태님 덕분에 알아냈어요ㅠㅠㅠ
정말 너무 고맙습니다.

이 문제로만 매달린 날은 2밖에 안됐는데
이렇게 빨리 해결하게 될줄이야 ㅠㅠ...
정성태님 너무나도 고맙습니다.

그리고 만약에 다른 분들도 이 문제로 고민하고 있다면
Visual C++ 2013 Redistribution 이걸 사용자 컴퓨터에 설치한 다음에 실행 시켜보세요.

참고로 저의 개발 환경은
▶개발컴퓨터
윈도우 10, visual studio 2017
c# 플랫폼 : WPF
설치된 패키지 버전 : CefSharp.wpf x64


▶사용자 컴퓨터
vmware 2012,
윈도우 10 x64 입니다.

혹여라도 저와같은 문제로 삽질하실 분들도 있을 수도 있기때문에
자세한 사항을 적어놓습니다.

그리고 정성태님 다시한번 고맙다는 인사를 드립니다.
고맙습니다 ㅠㅠ...
[guest]

... 16  [17]  18  19  20  21  22  23  24  25  26  27  28  29  30  ...
NoWriterDateCnt.TitleFile(s)
5509한예지 donator6/3/20215737ExeccuteNonQuery 질문있습니다! [2]
5508최재남6/3/20216577마우스 이벤트 관련 질문 좀 드리겠습니다. [6]
5507한예6/2/20215718static과 스택오버플로우 질문있습니다. [5]파일 다운로드1
5506이창석6/1/20217121센서의 값을 받아서 PC를 통해 모니터링 하는 것을 만들고 있습니다. [1]
5505kss5/31/20215711.net5에서 소멸자가 어떻게 바뀐건가요? [1]
5503xing...5/24/20216073xingapinet 에 수정 요청 부탁 드립니다. [1]
5501한예지 donator5/23/20215840IProgress 사용법이 궁금합니다. [2]
5500한예ㅈ5/23/20217713비동기 코드 흐름 질문있습니다. [3]
5498곰장어5/21/20215524List에 static 변수를 추가했을때의 궁금증 [3]파일 다운로드1
5497지평선5/20/20216767윈도우 배율을 알 수 있을까요? [1]
5496cs린이5/20/20215402C# 8.0 질문입니다. [2]파일 다운로드6
5495Natie5/13/20214925객체를 생성과 동시에 초기화 하는 방법 [1]
5494지예예지5/13/20217195비동기 코드 흐름이 궁금합니다! [2]
5493xing...5/6/20215096xing api XQCSPAT00600 질문입니다 [4]파일 다운로드1
5492한예지 donator5/5/20215176FromCurrentSynchronizationContext 관련 코드 질문있습니다! [2]
5491조우성5/4/20219622WinForm과 WPF의 성능차이 비교한 자료가 있을까요? [4]
5490한예지 donator5/3/20216023UI 스레드의 Invoke 질문있습니다. [4]
5489저누4/28/20216582시작하세요 C# 9.0, 225페이지 구조체 관련 질문드립니다. [2]
5488종범4/27/20216821C# 비동기 함수 async, await 와 Task의 관계에 대해 질문 드립니다. [6]
5487진우4/27/20216249C# 엑셀 자동화 성능 향상 문의 [2]
5486지나가던...4/26/20215742닷넷 구현 코드 관련 질문 [2]
5485이재원4/17/20216128교재 315페이지 내용 질문 [3]
5484Syong4/16/20219681윈폼 기반의 응용프로그램 dll 참조와 32,64bit 빌드 관련 문의 [4]
5483한예지 donator4/15/20215192익명 형식과 var 관계 질문 있습니다. [2]
5482질문4/13/20216985WPF를 위한 MVVM toolkit 선택과 관련한 문의드립니다. [4]
5480한예지 donator4/5/20217322GetHashCode 질문있습니다! [2]
... 16  [17]  18  19  20  21  22  23  24  25  26  27  28  29  30  ...