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)
55358/5/20216815안녕하세요. 초보 웹 개발자입니다. [10]파일 다운로드2
5534하영7/28/20215323clrprofiler 를 사용하여 세션정보 접근 [6]파일 다운로드1
5533함준혁7/20/20214816.net fpspread 관련 질문입니다.. [1]
5532조윤상7/15/20216167바인딩은 성공 했습니다. 그런데 브라우저에서 인증서가 없다고 나옵니다. [2]
5530ocm7/14/20215785pthread_create [7]파일 다운로드1
5529ksc7/13/20214951Source Generator 관련 질문이 있습니다. [1]
5528초심으로7/9/20216138MDI 에서 USB 연결해제 알림이 안되는 문제 질문 드려봅니다. [7]파일 다운로드1
5527wuny7/7/20215019제어관련 고민을하다가 소캣방식 선택 [2]
5526이성열 donator7/7/20216599wpf x64로 만든 메인 프로그램에서 dll로 된 UserControl 속성이 디자인타임에 잘 안보이는 문제 [10]파일 다운로드2
5525Wuny7/7/20217162제가 만든 배포파일은 window에서 막는걸까요? [2]파일 다운로드1
5524하이스컬7/2/20216468특정 이벤트에서 다른 이벤트 호출 관련 문의 [3]
5523민우7/1/202112205도커 사용시 윈도우 이미지 생성도 가능한가요? [2]
5522질문6/28/20216914WPF에서 splash screen이 나타나는 위치를 변경할 수 있나요? [3]
5521김민혁6/24/20217018.exe 파일 에러에 관한 질문 입니다. [3]
5520한예지 donator6/21/20216789랜덤함수 질문있습니다!! [2]
5519리얼킴6/19/20215727.net framwork 4.0 에서 4.8로 꼭 가야할까요?? [1]
5518한예지 donator6/18/20216442ArrayList, IList에 대해 질문 있습니다. [3]
5517wunsy6/18/20216878winform에서 Button 활성화, 비활성화 [4]
5516ocm6/15/20215882mips 어셈블리 연산 다시 질문드려요 (첨부파일 갱신됨) [2]파일 다운로드1
5515ocm6/14/20216762mips 어셈블리 연산 [6]파일 다운로드1
5514jongs6/11/20217483GethashCode와 String대한 질문 [2]
5513labe...6/11/20217210C# Winform 에서 Label에 동일한 Color를 넣었을 때 처리방법이 궁금합니다. [2]
55126/11/20217988xlwings 가 실행조차 되지 않습니다. ㅠㅠ [7]
5511Syong6/9/20216798User Control에 string array 속성 추가하는 방법 [4]
5510jay6/8/20215816string 문자열에 쌍따옴표(")를 넣고 싶습니다. [1]파일 다운로드1
5509한예지 donator6/3/20215764ExeccuteNonQuery 질문있습니다! [2]
... [16]  17  18  19  20  21  22  23  24  25  26  27  28  29  30  ...