Microsoft MVP성태의 닷넷 이야기
VS2005의 스마트 클라이언트에서 웹브라우저 예제 질문입니다. [링크 복사], [링크+제목 복사],
조회: 16168
글쓴 사람
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)
1343h11/2/201420884안녕하세요 [1]
1342왕초보11/1/201425394C#에서의 함수포인터 [13]
1347왕초보11/5/201420109    답변글 [답변]: C#에서의 함수포인터 [1]
1341영택10/29/201421450MFC Amazon S3 사용관련하여 질문드립니다. [2]
1344영택11/4/201417781    답변글 [답변]: MFC Amazon S3 사용관련하여 질문드립니다. [2]
1340감사합니다10/28/201422531c# wpf shdocvw internet explorer를 윈도우프레임으로 집어 넣을 수 있는지 궁금합니다. [3]파일 다운로드1
1338헬프미10/28/201423422tcp 소켓의 SYN_RECV 상태에 대하여 질문있습니다. [3]
1336이소정10/27/201418309filestream seek에 대해 질문있습니다. [1]
1337이소정10/28/201419403    답변글 [답변]: filestream seek에 대해 질문있습니다.파일 다운로드1
1339이소정10/28/201422489        답변글 [답변]: [답변]: filestream seek에 대해 질문있습니다. [2]파일 다운로드2
1335황지혜10/24/201423105psexec 관련 질문드립니다. [1]
1334dell10/24/201419004여기가 있는줄 모르고 방명록에 남겼네요 ㅠㅠ 방명록 한번만 봐주시면 안될지요? [1]
1333왕초보10/24/201419364Bitmap 질문 [5]
1332김동진10/16/201425995clickonce 와 smartscreen filter 기능에 대해서 [2]
1331궁굼합니다10/8/201419463loopback adapter 자동 설치가 가능 한가요? [2]
1330이현중10/8/201422208파일 다운로드 방법 문의 [2]파일 다운로드1
1329popo10/2/201419549싱글톤과 싱글톤 소멸자에 대해 궁금점이 있습니다. [1]
1328달쏭9/25/201420566WCF Service측에서 parameter 값이 null이 오는 이유를 알고 싶어요. [2]
1326궁굼합니다9/19/201419486VB의 Shell 기능과 완벽히 똑같은 기능의 함수 [4]
1325지현태9/18/201419292WPF 의존속성과 바인딩에 대한 질문입니다.. [1]파일 다운로드1
1324popo9/17/201418149wcf 질문 드립니다. [1]
1323Anon...9/17/201420978인스턴스와 객체의 차이 [1]
1322김영대9/16/201420812죄송하지만 .NET 관련 질문게시판이지만 혹시 ASP.NET MVC에 대해서 질문 드려도 됩니까 (__);; [2]
1321부탁드립...9/15/201423101윈도우 어플리케이션 개발 방법(?) 에대해(직접적인 코드라기보단 프로젝트 방향??) [14]
1320소켓서버...9/13/201423475서로다른 포트번호로 로컬 Socket 서버를 개설시 Close 문제 입니다. [2]
1319ㅇㅇ9/12/201423395134쪽 예제 오타 [3]
... 46  47  48  49  50  51  52  53  [54]  55  56  57  58  59  60  ...