<sgllc98@gmail.com> wrote in message
news:1154099940.093310.270240@i42g2000cwa.googlegroups.com...
> here are the error message
>
>
> just-in-time (JIT) debugging instead of this dialog box.
> ************** Exception Text **************
> System.Security.SecurityException: Request failed.
> at
> System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly
> asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle
> rmh, SecurityAction action, Object demand, IPermission permThatFailed)
> at
> System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object
> assemblyOrString, PermissionSet granted, PermissionSet refused,
> RuntimeMethodHandle rmh, SecurityAction action, Object demand,
> IPermission permThatFailed)
> at
> System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet
> grants, PermissionSet refused, PermissionSet demands,
> RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction
> action, Boolean throwException)
> at
> System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack
> cs, PermissionSet grants, PermissionSet refused, PermissionSet demands,
> RuntimeMethodHandle rmh, Assembly asm, SecurityAction action)
> at signin.frmsignin.btnsignin_Click(Object sender, EventArgs e)
> at System.Windows.Forms.Control.OnClick(EventArgs e)
> at System.Windows.Forms.Button.OnClick(EventArgs e)
> at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
> at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
> button, Int32 clicks)
> at System.Windows.Forms.Control.WndProc(Message& m)
> at System.Windows.Forms.ButtonBase.WndProc(Message& m)
> at System.Windows.Forms.Button.WndProc(Message& m)
> at
> System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
> at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&
> m)
> at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
> msg, IntPtr wparam, IntPtr lparam)
> The action that failed was:
> LinkDemand
> The type of the first permission that failed was:
> System.Security.PermissionSet
> The Zone of the assembly that failed was:
> Intranet
>
>
>
> Nicole Calinoiu wrote:
>> Could you please post the full exception details (including call stack
>> listing), as returned from the exception's ToString method?
>>
>>
>> <sgllc98@gmail.com> wrote in message
>> news:1154011156.498397.292570@p79g2000cwp.googlegroups.com...
>> > Thanks Nicole,
>> >
>> > Yes this exe will run across the network. I made some change as you
>> > said, use clickonce and give the application a full trust. But it seems
>> > the same. exe file works fine. just cann't open the browser.
>> >
>> > Nicole Calinoiu wrote:
>> >> Is the executable being run from the local machine or across the
>> >> network?
>> >> The Process class has a link demand for unrestricted CAS permissions
>> >> (aka
>> >> "full trust"), which is not granted to non-local assemblies under
>> >> default
>> >> CAS policy. (See
>> >>
http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx for more
>> >> info.)
>> >> There are three basic approaches to addressing this:
>> >>
>> >> 1. Run a local copy of the app,
>> >> 2. Use ClickOnce to deploy your application with an extended CAS
>> >> permission
>> >> grant, or
>> >> 3. Adjust the CAS policy on the individual client machines.
>> >>
>> >>
>> >>
>> >> <sgllc98@gmail.com> wrote in message
>> >> news:1153945340.467727.154250@m79g2000cwm.googlegroups.com...
>> >> > Hi gurus,
>> >> >
>> >> > I wrote a small exe file using vs 2005. the exe file is pretty
>> >> > simple.
>> >> > just open a web site using
>> >> > System.Diagnostics.Process.Start("http://website"). The exe file
>> >> > works
>> >> > fine in my machine. But it can not open the website if I run it in
>> >> > another machine. I got an error box say, The application attempted
>> >> > to
>> >> > perform an operation not allowed by the security policy. To grant
>> >> > this application the required permission please contact your system
>> >> > administrator or using .net framwork configuration tool.....
>> >> >
>> >> > how to grant the application the required permission? Thanks,
>> >> >
>> >> > Ben
>> >> >
>> >
>