Microsoft MVP성태의 닷넷 이야기
VS2005의 스마트 클라이언트에서 웹브라우저 예제 질문입니다. [링크 복사], [링크+제목 복사],
조회: 14725
글쓴 사람
futurewave (futurewave at gmail.com)
홈페이지
첨부 파일
 

2004년 3월에 연재하신 스마트클라이언트에서 웹브라우저관련 예제의

샘플을 다운로드한후 테스트해보았더니 아래와 같은 에러가 나네요...

WebApp 폴더를 웹공유하여 가상폴더로 잡고 익명접근도 해놓았는데

해당사이트 http://localhost/WebApp/WebForm1.aspx를 띄우면 퍼미션 에러가 나네요..

이 대화 상자 대신 JIT(Just-in-time) 디버깅을 호출하는
방법에 대한 자세한 내용은 이 메시지의 뒷부분을 참조하십시오.

************** 예외 텍스트 **************
System.Security.SecurityException: System.Security.Permissions.SecurityPermission
   위치: SmartClient.TreeControl.TreeControl_Load(Object sender, EventArgs e)
   위치: System.Windows.Forms.UserControl.OnLoad(EventArgs e)
   위치: System.Windows.Forms.UserControl.OnCreateControl()
   위치: System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   위치: System.Windows.Forms.Control.CreateControl()
   위치: System.Windows.Forms.Control.WmShowWindow(Message& m)
   위치: System.Windows.Forms.Control.WndProc(Message& m)
   위치: System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   위치: System.Windows.Forms.ContainerControl.WndProc(Message& m)
   위치: System.Windows.Forms.UserControl.WndProc(Message& m)
   위치: System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   위치: System.Windows.Forms.Control.ActiveXImpl.System.Windows.Forms.IWindowTarget.OnMessage(Message& m)
   위치: System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   위치: System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
실패한 첫 번째 권한 형식:
System.Security.Permissions.SecurityPermission
실패한 어셈블리의 영역:
MyComputer


************** 로드된 어셈블리 **************
mscorlib
    어셈블리 버전: 2.0.0.0
    Win32 버전: 2.0.50727.42 (RTM.050727-4200)
    코드베이스: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
System
    어셈블리 버전: 2.0.0.0
    Win32 버전: 2.0.50727.42 (RTM.050727-4200)
    코드베이스: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
SmartClient
    어셈블리 버전: 1.0.0.1
    Win32 버전: N/A
    코드베이스: http://localhost/WebApp/SmartClient.dll
----------------------------------------
System.Windows.Forms
    어셈블리 버전: 2.0.0.0
    Win32 버전: 2.0.50727.42 (RTM.050727-4200)
    코드베이스: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    어셈블리 버전: 2.0.0.0
    Win32 버전: 2.0.50727.42 (RTM.050727-4200)
    코드베이스: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Accessibility
    어셈블리 버전: 2.0.0.0
    Win32 버전: 2.0.50727.42 (RTM.050727-4200)
    코드베이스: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Microsoft.mshtml
    어셈블리 버전: 7.0.3300.0
    Win32 버전: 7.0.3300.0
    코드베이스: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------
System.Windows.Forms.resources
    어셈블리 버전: 2.0.0.0
    Win32 버전: 2.0.50727.42 (RTM.050727-4200)
    코드베이스: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_ko_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** JIT 디버깅 **************
JIT(Just In Time) 디버깅을 사용하려면 이 응용 프로그램 또는 컴퓨터의
config 파일(machine.config)의 jitDebugging 값을
system.windows.forms 섹션에 설정해야 합니다.
또한 응용 프로그램은 디버깅할 수 있도록 컴파일되어야
합니다.

예:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

JIT 디버깅을 사용하면 처리되지 않은 모든 예외는
이 대화 상자에서 처리되지 않고 컴퓨터에 등록된 JIT
디버거에 보내집니다.


조언 부탁드립니다.








[최초 등록일: ]
[최종 수정일: 2/17/2007]


비밀번호

댓글 작성자
 



2007-02-23 09시51분
위의 오류라면... 어셈블리 다운로드가 정상적으로 되고 TreeControl_Load에서 실행중에 오류가 났다는 것인데...

Load 메서드안에서 Debug.Break 메서드 호출 코드를 넣어두시고, 실행시에 디버깅을 한번 해보셔야 할 것 같습니다. 어느 라인에서 오류가 나는지를!
kevin25

... 46  47  48  [49]  50  51  52  53  54  55  56  57  58  59  60  ...
NoWriterDateCnt.TitleFile(s)
3641힘참도약11/9/201519225c# log file 관련해서 질문드립니다. [5]
3638윤창선11/4/201520601사설IP가 부여된 무선라우터간 영상전송 관련 문의 [8]
3634Hyun...11/2/201517656c# 에서 webkit browser에서 webgl을 이용하는 사이트에 접속이 안됩니다. [1]
3633힘찬도약10/31/201518127mysql insert where not exists [6]
3632힘찬도약10/27/201518478C# Lock 관련해서 질문드립니다. [6]
3655iwc11/30/201516547    답변글 [답변]: C# Lock 관련해서 질문드립니다.
3631강준10/26/201519962iis 8.5 preload 기능에 대해 질문이 있습니다. [9]
3630김정훈10/25/201518236몬티홀 게임 관련 질문 [1]
3629pooq10/23/201518798리플렉션 관련해서 질문 입니다. [3]
3628최영민10/22/201517309스마트 클라이언트 로딩속도 문의입니다. [3]
3627양주호10/22/201517084C#으로 컨버팅 하려고 하는데요... [1]
3626조성진10/21/201518185책보고 첫번째 예제부터 문제가 생기네요 ^^; [4]파일 다운로드1
3623Bere...10/19/201518511질문이라기 보단... [2]
3625Bere...10/20/201517720    답변글 [답변]: 질문이라기 보단... [2]파일 다운로드1
3621힘찬도약10/18/201517753[C# 6.0]multi threading과 ui control [9]
3624힘찬도약10/19/201517789    답변글 [답변]: [C# 6.0]multi threading과 ui control [6]파일 다운로드1
3620popo10/13/201516539WPF의 datagrid, listview 컨트롤 관련 질문 입니다. [1]
3619링크의 ...10/12/201521308OCX 로드 관련 질문입니다. [5]파일 다운로드1
3616수요일밥...10/7/201522211몇 가지 오류 (2) [6]
3615김응규10/7/201516913다시한번 질문 드립니다. (이번엔 자세하게 기술했습니다.) [1]
3614김응규10/6/201516154안녕하세요. wcf net.tcp 관련 질문 하나만 올려요~~ [4]
3613강준10/5/201520889IIS Application Pool 시작/중단 에 대한 이벤트 로그는 어디에 남나요??? [2]
3612심심한일...10/4/201522780몇 가지 오류 [4]
3611나그네9/30/201517082안녕하세요 답글을 이제 보았습니다. [3]
3608기차니9/21/201517547컬럼이 많은 데이터그리드에서 정렬 할 때 속도가 느립니다. [3]
3609기차니9/22/201517311    답변글 [답변]: 컬럼이 많은 데이터그리드에서 정렬 할 때 속도가 느립니다. [1]파일 다운로드1
... 46  47  48  [49]  50  51  52  53  54  55  56  57  58  59  60  ...