Re: assign socket permission to NTD winform

From: Rob Teixeira [MVP] (RobTeixeira_at_@msn.com)
Date: 09/30/04


Date: Thu, 30 Sep 2004 00:49:32 -0400

You can -

1) wait for Visual Studio 2005, which has built-in tools to help you with
this, or
2) use evidence in your exe assembly and give more permission to it on the
client machine

On the client machine, you can go to Cotrol Panel -> Admin -> .NET Wizards
and Trust your assembly. You can give more trust (raise permissions) to an
assembly based on an identity. That identity can be the assembly location
(like the url you are launching it from) or a public key. I suggest a public
key, because then you can assign keys based on permission sets to your apps
and not have to configure for each one.

If you don't want to go to each client machine, you can generate a setup
program and programatically adjust the permissions. Your clients will just
have to run the setup once, and then you can update your program to your
hearts content without affecting this. The setup wouldn't really install the
EXE, but it would adjust the permission sets for your app, and can also do
things like add a shortcut for the URL.

More info here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/winforms11122002.asp

-Rob Teixeira

"zbcong" <congzhebin@capinfo.com.cn> wrote in message
news:OtQonRfpEHA.1272@TK2MSFTNGP09.phx.gbl...
> hello
> i write a smtp client winform (using socket 25 connect to smtp server),and
> deploy it to iis by NTD (no-touch deployment),i can launch the form from
the
> client machine,when i want connect to the smtp server,the security
exception
> is thrown,i know that i have not assigned the socket permission in the
> client side to the downloaded assembly,but i don't know how to do that,who
> can give me a step-by-step instruction.
>
> any help will be appreciated.
>
>



Relevant Pages

  • RE: how to write a text file in a web server
    ... client) compiles a code dynamically (Basically a vb class in a text file. ... > permission right at client side. ... > our application as the code group condition, ... > You can get more information about .Net Code Access Security in the article ...
    (microsoft.public.dotnet.framework.windowsforms)
  • domain users cannot access printer
    ... I have a Domain Controller running 2000 Advanced Server. ... printer on the server and shared it, granting print permission to ... I have 30 client machines running XP Professional. ... Is there a permission, Active Directory setting, or registry setting I ...
    (microsoft.public.win2000.printing)
  • RE: Client Config SBS2003 Installation
    ... Thank you for posting to the SBS Newsgroup. ... The client users do not have the permission to install the applications. ...
    (microsoft.public.windows.server.sbs)
  • Re: Security Exception when downloading Assembly from IIS
    ... The following applies to a managed user control intended to execute with greater permissions than would normally be granted to the zone the assembly belongs to, most likely either Internet, Local Intranet or Trusted Sites. ... The client has a code group that the assembly resolves to that grants the permissions the assembly requires. ... > permission. ... when I grant the assembly the FullTrust permission set. ...
    (microsoft.public.dotnet.security)
  • Re: ics-no permissions
    ... There are 3 things for permission that you must be aware of in windows xp. ... Limit local account use of blank passwords to console... ... If A Guest Account is disabled than simple file sharing must ... > the client can access the internet,msn as can the sever. ...
    (microsoft.public.windowsxp.network_web)