Home All Groups Group Topic Archive Search About

½º¸¶Æ® Ŭ¶óÀÌ¾ðÆ®¿¡¼­ÀÇ °­·ÂÇÑ À̸§ ÀÎÁõ ¹®Á¦

Author
15 Sep 2005 9:46 AM
virgo81
¾È³çÇϼ¼¿ä? ½º¸¶Æ® Ŭ¶óÀÌ¾ðÆ®¸¦ °³¹ßÇϰí ÀÖ½À´Ï´Ù. °­·ÂÇÑ À̸§ Ű snk Çϳª¸¦ ¸¸µé°í, AssemblyInfo.cs ÆÄÀÏ¿¡ ¾Æ·¡¿Í °°ÀÌ Å° ÆÄÀÏÀ» Ãß°¡Çϰí, ºÎºÐ ½Å·Ú È£ÃâÀÚ°¡ Á¢±ÙÇÒ ¼ö ÀÖ°Ô ¼³Á¤Çß½À´Ï´Ù. [assembly: AssemblyKeyFile(@"..\..\mykey.snk")] [assembly: AllowPartiallyTrustedCallers] ±×¸®°í ³ª¼­ ·±Å¸ÀÓ º¸¾È Á¤Ã¥¿¡ ÄÄÇ»ÅÍ¿¡ ÄÚµå±×·ì¿¡ All_Code ¾Æ·¡¿¡ Internet_Zone ¾Æ·¡¿¡ »õ ÄÚµå ±×·ìÀ» ¸¸µé°í, ¸â¹ö Á¶°ÇÀ» °­·ÂÇÑ À̸§À¸·Î ¼³Á¤Çϰí, °­·ÂÇÑ À̸§À¸·Î Á¦°¡ ¸¸µç ½º¸¶Æ® Ŭ¶óÀ̾ðÆ®ÀÇ °ø°³Å° °ªÀ» ºÒ·¯¿Â ÈÄ, ±ÇÇÑÁýÇÕÀº FullTrust ·Î Çß½À´Ï´Ù. ±×¸®°í³ª¼­ ¿Ã¸®°í ºê¶ó¿ìÁ®·Î ¿­¸é Internet_Zone º¸¾È Á¤Ã¥¿¡ À§¹ÝµÇÁö ¾Ê´Â°ÍÀº Àß Ç¥½ÃµË´Ï´Ù. ÇÏÁö¸¸, Process.Start()¸¦ Çϸé SecurityPermissionExceptionÀÌ ³ª°í, WebClient ¿¡¼­ÀÇ ´Ù¸¥ »çÀÌÆ® Á¢±ÙÇÏ·ÁÇϸé, WebPermissionException ÀÌ ³ª°í, ¸¶ÀÌÅ©·Î¼ÒÇÁÆ® À¥ºê¶ó¿ìÁ® COM - AxWebbrowser À» ¿Ã¸®¸é UIPermissionException À̳ª, SecurityPermissionExceptionÀÌ ³³´Ï´Ù. ±×·¡¼­ Namespace ¹Ù·Î ¾Æ·¡¿¡ [PermissionSet(SecurityAction.Assert, Name = "FullTrust")] ÀÌ·¸°Ô ÇØÁÖ¸é, Process.Start() ³ª WebClient ÂÊÀº Exception ÀÌ ¾È³ª´Âµ¥, AxWebbrowser ÂÊÀº º¸¾È°ü·Ã Exception ÀÌ ³³´Ï´Ù. ±×¸®°í [PermissionSet(SecurityAction.Assert, Name = "FullTrust")] ÀÌ°É ¾²¸é ·±Å¸ÀÓ º¸¾È Á¤Ã¥¿¡ FullTrust ¸¦ ¾ÈÁáÀ» ¶§, Assembly ·ÎµùºÎÅÍ Â÷´ÜµÇ¾î¼­ È­¸é¿¡ ¿ÀºêÁ§Æ® Ç¥½Ã¸¸ ³ª¿Í¼­, Ŭ·¡½º Àü¿ª ¸â¹ö º¯¼ö·Î private PermissionSet permissionSet = new PermissionSet(PermissionState.Unrestricted); ÀÌ·¸°Ô ¸¸µé°í, Process.Start()³ª WebClient ÂÊ ½ÇÇà ¹Ù·Î Àü¿¡ permissionSet.Assert(); ÇÏ¸é º¸¾È Exception ¾øÀÌ ¼öÇàµÇÁö¸¸, AxWebbrowser ´Â ¸¶Âù°¡Áö·Î ¾ÈµË´Ï´Ù. µµ´ëü ¾î¶»°Ô Çϸé SmartClient ÀÇ UserControl ÀÌ ·ÎµùµÇ¸é¼­ ºÎÅÍ FullTrust ·Î ¸ðµç Äڵ带 ½ÇÇàÇÒ ¼ö ÀÖÀ»±î¿ä? ¶Ç FullTrust ±ÇÇÑÀÌ µî·Ï µÇ¾îÀÖÁö ¾ÊÀ¸¸é ¾È³»¸¦ ÇØÁÖ°í ½ÍÀºµ¥, [PermissionSet(SecurityAction.Assert, Name = "FullTrust")] ÀÌ ¹æ¹ýÀ¸·Î ¾ÈµÉ°Å °°Àºµ¥ ¾î¶»°Ô ÇØ¾ßÇϳª¿ä? ´äº¯ ºÎʵ右´Ï´Ù.¤Ñ¤Ì

Author
15 Sep 2005 7:59 PM
Lady_A
Michael,
I feel that what you wrote is something very interesting!
However I did not find any way to read it and I have no idea what you
were tyring to say.
No encoding/decoders could help.
I must find out what you wrote! :)
Please please please write it again in a world known encoding :)
Thank you !!!

"Michael \(michka\) Kaplan [MS]" wrote:
>¾È³çÇϼ¼¿ä?
>
>½º¸¶Æ®
Ŭ¶óÀÌ¾ðÆ®¸¦
°³¹ßÇϰí ÀÖ½À´Ï´Ù.
>
>°­·ÂÇÑ À̸§ Ű snk
Çϳª¸¦ ¸¸µé°í,
>
>AssemblyInfo.cs ÆÄÀÏ¿¡ ¾Æ·¡¿Í
°°ÀÌ Å° ÆÄÀÏÀ»
Ãß°¡Çϰí,
>ºÎºÐ ½Å·Ú È£ÃâÀÚ°¡
Á¢±ÙÇÒ ¼ö ÀÖ°Ô
¼³Á¤Çß½À´Ï´Ù.
>
>[assembly: AssemblyKeyFile(@"..\..\mykey.snk")]
>[assembly: AllowPartiallyTrustedCallers]
>
>
>±×¸®°í ³ª¼­ ·±Å¸ÀÓ
º¸¾È Á¤Ã¥¿¡
ÄÄÇ»ÅÍ¿¡
>ÄÚµå±×·ì¿¡ All_Code
¾Æ·¡¿¡
>Internet_Zone ¾Æ·¡¿¡ »õ ÄÚµå
±×·ìÀ» ¸¸µé°í, ¸â¹ö
>Á¶°ÇÀ» °­·ÂÇÑ
À̸§À¸·Î ¼³Á¤Çϰí,
°­·ÂÇÑ À̸§À¸·Î
>Á¦°¡ ¸¸µç ½º¸¶Æ®
Ŭ¶óÀ̾ðÆ®ÀÇ
°ø°³Å° °ªÀ» ºÒ·¯¿Â
>ÈÄ, ±ÇÇÑÁýÇÕÀº FullTrust
·Î Çß½À´Ï´Ù.
>
>±×¸®°í³ª¼­ ¿Ã¸®°í
ºê¶ó¿ìÁ®·Î ¿­¸é Internet_Zone
º¸¾È
>Á¤Ã¥¿¡ À§¹ÝµÇÁö
¾Ê´Â°ÍÀº Àß
Ç¥½ÃµË´Ï´Ù.
>ÇÏÁö¸¸, Process.Start()¸¦ Çϸé
SecurityPermissionExceptionÀÌ
>³ª°í,
>WebClient ¿¡¼­ÀÇ ´Ù¸¥
»çÀÌÆ®
Á¢±ÙÇÏ·ÁÇϸé,
>WebPermissionException ÀÌ ³ª°í,
>¸¶ÀÌÅ©·Î¼ÒÇÁÆ®
À¥ºê¶ó¿ìÁ® COM - AxWebbrowser À»
¿Ã¸®¸é
>UIPermissionException À̳ª,
>SecurityPermissionExceptionÀÌ ³³´Ï´Ù.
>
>±×·¡¼­ Namespace ¹Ù·Î
¾Æ·¡¿¡
>
>[PermissionSet(SecurityAction.Assert, Name = "FullTrust")]
>
>ÀÌ·¸°Ô ÇØÁÖ¸é, Process.Start()
³ª WebClient ÂÊÀº Exception ÀÌ
>¾È³ª´Âµ¥, AxWebbrowser ÂÊÀº
º¸¾È°ü·Ã Exception ÀÌ
³³´Ï´Ù.
>
>±×¸®°í [PermissionSet(SecurityAction.Assert, Name =
"FullTrust")]
>ÀÌ°É ¾²¸é ·±Å¸ÀÓ
º¸¾È Á¤Ã¥¿¡ FullTrust ¸¦
¾ÈÁáÀ» ¶§,
>Assembly ·ÎµùºÎÅÍ
Â÷´ÜµÇ¾î¼­ È­¸é¿¡
¿ÀºêÁ§Æ® Ç¥½Ã¸¸
>³ª¿Í¼­,
>
>Ŭ·¡½º Àü¿ª ¸â¹ö
º¯¼ö·Î
>private PermissionSet permissionSet = new
>PermissionSet(PermissionState.Unrestricted);
>
>ÀÌ·¸°Ô ¸¸µé°í,
>
>Process.Start()³ª WebClient ÂÊ ½ÇÇà
¹Ù·Î Àü¿¡
>permissionSet.Assert(); ÇÏ¸é º¸¾È Exception
¾øÀÌ ¼öÇàµÇÁö¸¸,
>AxWebbrowser ´Â ¸¶Âù°¡Áö·Î
¾ÈµË´Ï´Ù.
>
>µµ´ëü ¾î¶»°Ô Çϸé
SmartClient ÀÇ UserControl ÀÌ
>·ÎµùµÇ¸é¼­ ºÎÅÍ
>
>FullTrust ·Î ¸ðµç Äڵ带
½ÇÇàÇÒ ¼ö
ÀÖÀ»±î¿ä? ¶Ç
>FullTrust ±ÇÇÑÀÌ µî·Ï
µÇ¾îÀÖÁö ¾ÊÀ¸¸é
¾È³»¸¦ ÇØÁÖ°í
>½ÍÀºµ¥, [PermissionSet(SecurityAction.Assert, Name =
"FullTrust")]
>ÀÌ ¹æ¹ýÀ¸·Î ¾ÈµÉ°Å
°°Àºµ¥ ¾î¶»°Ô
ÇØ¾ßÇϳª¿ä?
>
>´äº¯
ºÎʵ右´Ï´Ù.¤Ñ¤Ì



--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
Fix windows and pc errors, click for free system scan

Author
16 Sep 2005 2:27 AM
virgo81
Show quote Hide quote
hi~ I made smartclient. First, I made a StrongNamed Key(snk file). I add my key file and set allow partiallytrustedcllers. [assembly: AssemblyKeyFile(@"..\..\mykey.snk")] [assembly: AllowPartiallyTrustedCallers] I add new code group under All_Code -> Internet_Zone. Member condition = strong named. Strong named key value = my smartclient strong named key value. Permission Set = FullTrust and so, I opened my smart client page by internet explorer. It's so good, if the control isn't against the rules of Internet_Zone security policy. but, I executed Process.Start(), it raise SecurityPermissionException. I accessed another site by WebClient, it raised WebPermissionException. AxWebbrowser, it raised UIPermissionException or SecurityPermissionException. so I added that code under namespace. [PermissionSet(SecurityAction.Assert, Name = "FullTrust")] so, Process.Start() or WebClient didn't raise Exception. but AxWebbrowser still raise Exception, it related security. and I used this code. [PermissionSet(SecurityAction.Assert, Name = "FullTrust")] If I didn't set FullTrust at runtime security policy , Assembly loading was blocked. so I edit it to class internal member variable. private PermissionSet permissionSet = new PermissionSet(PermissionState.Unrestricted); before execute Process.Start() or WebClient, I do permissionSet.Assert(); Security Exception didn't raise. but AxWebbrowser still raise Security Exception. How can I run my full code by FullTrust by from smart client loading time? I wish to inform my customer, if they haven't full trust permission at runtime security policy. but it's impossible by [PermissionSet(SecurityAction.Assert, Name = "FullTrust")] How do I inform it? Please reply my question... Lady_A 작성: > Michael, > I feel that what you wrote is something very interesting! > However I did not find any way to read it and I have no idea what you > were tyring to say. > No encoding/decoders could help. > I must find out what you wrote! :) > Please please please write it again in a world known encoding :) > Thank you !!! > > "Michael \(michka\) Kaplan [MS]" wrote: > >¾È³çÇϼ¼¿ä? > > > >½º¸¶Æ® > Ŭ¶óÀÌ¾ðÆ®¸¦ > °³¹ßÇϰí ÀÖ½À´Ï´Ù. > > > >°­·ÂÇÑ À̸§ Ű snk > Çϳª¸¦ ¸¸µé°í, > > > >AssemblyInfo.cs ÆÄÀÏ¿¡ ¾Æ·¡¿Í > °°ÀÌ Ű ÆÄÀÏÀ» > Ãß°¡Çϰí, > >ºÎºÐ ½Å·Ú È£ÃâÀÚ°¡ > Á¢±ÙÇÒ ¼ö ÀÖ°Ô > ¼³Á¤Çß½À´Ï´Ù. > > > >[assembly: AssemblyKeyFile(@"..\..\mykey.snk")] > >[assembly: AllowPartiallyTrustedCallers] > > > > > >±×¸®°í ³ª¼­ ·±Å¸ÀÓ > º¸¾È Á¤Ã¥¿¡ > ÄÄÇ»ÅÍ¿¡ > >ÄÚµå±×·ì¿¡ All_Code > ¾Æ·¡¿¡ > >Internet_Zone ¾Æ·¡¿¡ »õ ÄÚµå > ±×·ìÀ» ¸¸µé°í, ¸â¹ö > >Á¶°ÇÀ» °­·ÂÇÑ > À̸§À¸·Î ¼³Á¤Çϰí, > °­·ÂÇÑ À̸§À¸·Î > >Á¦°¡ ¸¸µç ½º¸¶Æ® > Ŭ¶óÀ̾ðÆ®ÀÇ > °ø°³Å° °ªÀ» ºÒ·¯¿Â > >ÈÄ, ±ÇÇÑÁýÇÕÀº FullTrust > ·Î Çß½À´Ï´Ù. > > > >±×¸®°í³ª¼­ ¿Ã¸®°í > ºê¶ó¿ìÁ®·Î ¿­¸é Internet_Zone > º¸¾È > >Á¤Ã¥¿¡ À§¹ÝµÇÁö > ¾Ê´Â°ÍÀº Àß > Ç¥½ÃµË´Ï´Ù. > >ÇÏÁö¸¸, Process.Start()¸¦ Çϸé > SecurityPermissionExceptionÀÌ > >³ª°í, > >WebClient ¿¡¼­ÀÇ ´Ù¸¥ > »çÀÌÆ® > Á¢±ÙÇÏ·ÁÇϸé, > >WebPermissionException ÀÌ ³ª°í, > >¸¶ÀÌÅ©·Î¼ÒÇÁÆ® > À¥ºê¶ó¿ìÁ® COM - AxWebbrowser À» > ¿Ã¸®¸é > >UIPermissionException À̳ª, > >SecurityPermissionExceptionÀÌ ³³´Ï´Ù. > > > >±×·¡¼­ Namespace ¹Ù·Î > ¾Æ·¡¿¡ > > > >[PermissionSet(SecurityAction.Assert, Name = "FullTrust")] > > > >ÀÌ·¸°Ô ÇØÁÖ¸é, Process.Start() > ³ª WebClient ÂÊÀº Exception ÀÌ > >¾È³ª´Âµ¥, AxWebbrowser ÂÊÀº > º¸¾È°ü·Ã Exception ÀÌ > ³³´Ï´Ù. > > > >±×¸®°í [PermissionSet(SecurityAction.Assert, Name = > "FullTrust")] > >À̰É ¾²¸é ·±Å¸ÀÓ > º¸¾È Á¤Ã¥¿¡ FullTrust ¸¦ > ¾ÈÁáÀ» ¶§, > >Assembly ·ÎµùºÎÅÍ > Â÷´ÜµÇ¾î¼­ È­¸é¿¡ > ¿ÀºêÁ§Æ® Ç¥½Ã¸¸ > >³ª¿Í¼­, > > > >Ŭ·¡½º Àü¿ª ¸â¹ö > º¯¼ö·Î > >private PermissionSet permissionSet = new > >PermissionSet(PermissionState.Unrestricted); > > > >ÀÌ·¸°Ô ¸¸µé°í, > > > >Process.Start()³ª WebClient ÂÊ ½ÇÇà > ¹Ù·Î Àü¿¡ > >permissionSet.Assert(); Çϸé º¸¾È Exception > ¾øÀÌ ¼öÇàµÇÁö¸¸, > >AxWebbrowser ´Â ¸¶Âù°¡Áö·Î > ¾ÈµË´Ï´Ù. > > > >µµ´ëü ¾î¶»°Ô Çϸé > SmartClient ÀÇ UserControl ÀÌ > >·ÎµùµÇ¸é¼­ ºÎÅÍ > > > >FullTrust ·Î ¸ðµç Äڵ带 > ½ÇÇàÇÒ ¼ö > ÀÖÀ»±î¿ä? ¶Ç > >FullTrust ±ÇÇÑÀÌ µî·Ï > µÇ¾îÀÖÁö ¾ÊÀ¸¸é > ¾È³»¸¦ ÇØÁÖ°í > >½ÍÀºµ¥, [PermissionSet(SecurityAction.Assert, Name = > "FullTrust")] > >ÀÌ ¹æ¹ýÀ¸·Î ¾ÈµÉ°Å > °°Àºµ¥ ¾î¶»°Ô > ÇØ¾ßÇϳª¿ä? > > > >´äº¯ > ºÎʵ右´Ï´Ù.¤Ñ¤Ì > > > > -- > Sent via .NET Newsgroups > http://www.dotnetnewsgroups.com
Author
16 Sep 2005 2:34 AM
Lady_A
Michael,
Somehow this is getting posted under the wrong thread.
I have asked a question and this somehow got to be the reply of my
question, while, of course, there is no connection.
Unfortunately I have no answer re your question.
However I think you need to make sure that your question got posted to
the newsgroups you intented it to be posted and not a a reply to someone
else'e question.
I hope someone would be able to help you!
Thank you,
Alexandra.

Show quoteHide quote
"Michael \(michka\) Kaplan [MS]" wrote:
>hi~
>
>I made smartclient.
>
>First, I made a StrongNamed Key(snk file).
>
>I add my key file and set allow partiallytrustedcllers.
>
>[assembly: AssemblyKeyFile(@"..\..\mykey.snk")]
>[assembly: AllowPartiallyTrustedCallers]
>
>I add new code group under All_Code -> Internet_Zone.
>Member condition = strong named.
>Strong named key value = my smartclient strong named key value.
>Permission Set = FullTrust
>
>and so, I opened my smart client page by internet explorer.
>It's so good, if the control isn't against the rules of Internet_Zone
>security policy.
>but,
>I executed Process.Start(), it raise SecurityPermissionException.
>I accessed another site by WebClient, it raised WebPermissionException.
>AxWebbrowser, it raised UIPermissionException or
>SecurityPermissionException.
>
>so I added that code under namespace.
>
>[PermissionSet(SecurityAction.Assert, Name = "FullTrust")]
>
>so, Process.Start() or WebClient didn't raise Exception.
>
>but AxWebbrowser still raise Exception, it related security.
>
>and I used this code.
>
>[PermissionSet(SecurityAction.Assert, Name = "FullTrust")]
>
>If I didn't set FullTrust at runtime security policy
>, Assembly loading was blocked.
>
>so I edit it to class internal member variable.
>
>private PermissionSet permissionSet = new
>PermissionSet(PermissionState.Unrestricted);
>
>before execute Process.Start() or WebClient, I do
>permissionSet.Assert();
>
>Security Exception didn't raise.
>but AxWebbrowser still raise Security Exception.
>
>How can I run my full code by FullTrust by from smart client loading
>time?
>
>I wish to inform my customer, if they haven't full trust permission at
>runtime security policy.
>
>but it's impossible by
>
>[PermissionSet(SecurityAction.Assert, Name = "FullTrust")]
>
>How do I inform it?
>
>Please reply my question...
>



--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com

Bookmark and Share