Microsoft MVP성태의 닷넷 이야기
VS2005의 스마트 클라이언트에서 웹브라우저 예제 질문입니다. [링크 복사], [링크+제목 복사],
조회: 10161
글쓴 사람
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

... 76  77  78  79  80  81  82  83  84  85  86  87  88  [89]  90  ...
NoWriterDateCnt.TitleFile(s)
205김종욱 6/12/20056639com+ 에서 서버 소켓을 열고 싶고요... com+에서 thread는 어떻게 돌리는지 알고 싶습니다
209정성태6/14/20056826    답변글 [답변]: com+에서 서버 소켓을 열고 싶고요... com+에서 thread는 어떻게 돌리는지 알고 싶습니다
204정현일6/9/20056879Smart Client 실행시 SecurityException파일 다운로드1
208정성태6/14/20057372    답변글 [답변]: Smart Client 실행시 SecurityException [1]
203나그네6/9/20057021태오 사이트 Smart Client 강좌중에서요
207정성태6/14/20056583    답변글 [답변]: 태오 사이트 Smart Client 강좌중에서요
210나그네6/15/20056680        답변글 [답변]: [답변]: 태오 사이트 Smart Client 강좌중에서요파일 다운로드1
198이지훈6/2/200562002003이랑 2005랑 함께 사용하는 방법이 없을까요?
201정성태6/6/20056530    답변글 [답변]: 2003이랑 2005랑 함께 사용하는 방법이 없을까요?
197이지훈6/2/200567942005 에서 컴포넌트 제작
200정성태6/6/20056338    답변글 [답변]: 2005 에서 컴포넌트 제작
196김종욱5/24/20057333익스플러 툴 벤드 제작... for .NET [1]파일 다운로드1
199정성태6/6/20057049    답변글 [답변]: 익스플러 툴 벤드 제작... for .NET
202김종욱6/9/20057252        답변글 [답변]: [답변]: 익스플러 툴 벤드 제작... for .NET [1]
194홍지철5/18/20056778IE에서 Winform control embedded작성시 문제점
195정성태5/19/20057171    답변글 [답변]: IE에서 Winform control embedded작성시 문제점
192헤헤5/13/20056852이것좀봐주세요
193정성태5/13/20056125    답변글 [답변]: 이것좀봐주세요
186기범5/9/20056645안녕하세요2
187정성태5/9/20057005    답변글 [답변]: 안녕하세요2
184기범5/9/20056599안녕하세요
185정성태5/9/20056904    답변글 [답변]: 안녕하세요
1815/8/20056409// 꼭쫌 답변해 주세요~~~클라이언트 서버 ... 내용, 이점 들...
183정성태5/9/20056278    답변글 [답변]: // 꼭쫌 답변해 주세요~~~클라이언트 서버 ... 내용, 이점 들...
180최성우5/7/20056749[Q] POST 형식의 데이터 훅킹?
182정성태5/9/20057301    답변글 [답변]: [Q] POST 형식의 데이터 훅킹?
... 76  77  78  79  80  81  82  83  84  85  86  87  88  [89]  90  ...