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)
5425정유경12/10/20205647[왕초보] (4) [1]
5423정유경12/8/20206004[왕초보] (3) [2]
5422이승준12/7/20209429VisualStudio 2019의 인텔리센스가 느려지는 경우가 있나요? [4]
5421정유경12/6/20207061[왕초보] (2) [4]
5420정유경12/5/20206580[왕초보] 랜덤 숫자와 배열에 관한 질문 [1]
5419종범12/4/20207029[WPF] Threadpool사용 시 크리티컬 섹션 대응 질문 입니다. [4]
5418한예지 donator11/27/20207253클래스, 인터페이스 크기를 구하고 싶은데 어떻게 해야 될까요? [1]
5417한예지 donator11/27/20205935인터페이스와 추상클래스에 대해 궁금증이 있습니다. [1]
5416한예지 donator11/27/20205771Object 질문 있어요. [1]
5415한예지 donator11/25/20205878교재 213쪽 예제 4.25 질문드립니다. [1]
5414한예지 donator11/23/20206751제네릭 리스트 출력하는 방법이 궁금합니다. [1]
5413민석11/20/20207282C# minidump를 프로그램이 중단 될 때 만들고 싶습니다. [1]파일 다운로드2
5411원격11/20/20205805visualstdio로 웹 사이트로 만들었을때 원격 디버깅이 가능한가요? [1]
5410최성재11/16/20206163vcpkg로 GDCM 내려받을 때 USE_VTK 설정하는 방법-2번째 질문 [1]파일 다운로드1
5409민성11/16/20209160혹시 다른 질문이긴 한데요 [1]
5408최성재11/16/20206446vcpkg로 GDCM 내려받을 때 USE_VTK 설정하는 방법 [1]
5407민성11/11/20205778안녕하세요 yield return에 대해서 [1]
5406질문자11/10/20206234안녕하세요 wcf nettcpbinding의 timeout에 관해서 질문이 있습니다. [2]
5405민성11/9/20206972안녕하세요 이번에도 또 어려운 질문 같습니다. [1]
5404박진우11/6/20207329안녕하세요. SqlParameter 생성자 관련 질문 있습니다. [1]
5403민성11/5/20207403그리고 한가지만 죄송하지만 더 질문 드리겠습니다. [1]
5402민성11/5/20207588안녕하세요 책을 보고 질문하나만 드릴깨요 [2]
5401민성11/3/20206670안녕하세요 이번에도 질문 하나만 드리겠습니다. [2]
5400진우10/29/20206353SQL Server 관련 몇가지 문의 [2]
5399Wpf개...10/21/20206548Binding 된 항목의 갱신 시 간헐적 끊어짐 발생 문제. [2]
5397나그네10/15/20206051.net Core 3.1 에서 Entity Framework 와 ADO.NET 선택에 관해 여쭤봅니다. [2]
... 16  17  18  19  [20]  21  22  23  24  25  26  27  28  29  30  ...