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)
5451예지1/14/20215300for문의 초기식에 대해 질문드립니다. [3]
5450예지1/13/20215347Action 델리게이트 사용법 질문있습니다! [2]
5449김성민1/13/20216025Winform UserControl 상속 vs 감싸기? [2]
5448서형주1/13/20215770안녕하세요~~ DataGridView에 데이터를 표시하는 동작방법이 궁금합니다. [2]
5447종범1/11/20217427[WPF/OpenCV] 이미지->영상 저장에 대해서 질문 드립니다!! [5]파일 다운로드1
5446민우1/11/20215420닷넷 런타임을 dll 파일로 포함시킬수 있나요? [2]
5445정도현1/8/20215191directShow RenderFile 관련 재질문드립니다 [5]파일 다운로드1
5444정도현1/8/20215163directShow RenderFile 관련 질문드립니다 [3]
5443윤영호1/7/20215547xml 파일에서 데이터를 가지고 와서 list에 넣는 것을 질문드리고 싶습니다. [1]파일 다운로드1
5442진우1/4/20215384DB연결 객체나 파일 등은 GC 에서 관리해주지 않는 이유가 궁금합니다. [2]
5441한예지 donator1/4/20215806DB 연결 방법 질문 있습니다. [1]
5440한예지 donator1/1/20216417추상클래스로와 new [4]
5439이상호12/31/20207984VC 프로젝트 에서 _main 함수에서 참조되는 확인할 수 없는 외부 기호 [4]파일 다운로드1
5438김윤12/29/202010128C# winform using으로인한 메모리 해제 타이밍과 변수 복사 타이밍 [2]
5437한예지 donator12/25/20207213for문 안에 있는 지역변수의 생성 및 유지 기간에 대해 질문드립니다! [6]
5436영귤12/24/20205943fixed는 자동으로 stackalloc이 되는 건가요? [1]
5435한예지 donator12/24/20205764ArraySegment, Span, ReadOnlySpan 질문있습니다! [1]
5434한예지 donator12/23/20206327ToString 재정의 질문있습니다! [8]
5433한예지 donator12/23/20206300List<ArrarySegment<int>> 사용법 질문드립니다! [2]
5431한예지 donator12/17/20208118비동기 소켓 서버 질문 드립니다! [1]
5430종범12/16/20207256[WPF] Task 관련 재질문 드립니다. [2]파일 다운로드1
5429종범12/16/20207187[WPF] Task 관련 질문 드립니다. [1]파일 다운로드1
5428최선호 donator12/14/20206771성태님 ㅠ.ㅠ 소켓 서버 작동이 이상합니다 ㅠ.ㅜ [1]파일 다운로드1
542712/11/20207374LPBOOL Win32 마샬링 질문이 있습니다. [6]
5426하태12/11/20205642안녕하세요 정성태님! C# winform Calendar 컨트롤 질문 드리겠습니다!. [1]
5425정유경12/10/20205701[왕초보] (4) [1]
... 16  17  18  [19]  20  21  22  23  24  25  26  27  28  29  30  ...