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]