Re: How to determine what permissions are required for an assembly

From: Hernan de Lahitte (hernan_at_lagash.com)
Date: 02/25/04


Date: Wed, 25 Feb 2004 10:44:33 -0300

Sorry, this was for another post.

"Hernan de Lahitte" <hernan@lagash.com> wrote in message
news:eZJF9S6%23DHA.916@TK2MSFTNGP10.phx.gbl...
> I think you should follow the "classic" network share guideline for this
> scenario.
>
> I recently posted a similar answer to this.
>
> 1.. On the Web server, open Administrative Tools, and then double-click
> Microsoft .NET Framework Configuration.
>
> 2.. Expand Runtime Security Policy, expand Machine, and then expand Code
> Groups.
>
> 3.. Right-click All_Code, and then click New.
>
> 4.. Select Create a new code group. Give your code group a relevant
name,
> such as the name of the applications share. Click Next.
>
> 5.. In the Choose the condition type for this code group list, select
URL.
>
> 6.. In the URL text box, type the path of the share in the following
> format (where computername is the name of the computer that is hosting the
> remote share, and sharename is the name of the share):
> file:////\\computername\sharename\*7.. Click Next.
> On the next page, select "Use an existing permission set" and then select
> FullTrust.
> Note: If your assembly does not require FullTrust it is far better to
create
> your own
> named permission set with only the required permissions to execute all the
> application. (In this case, SQL Client ans Security (Execution)
permissions
> might be used).
>
> 8.. Click Next, and then click Finish.
> I hope this help.
>
>
> "surya" <suryanarayanan.varadarajan@honeywell.com> wrote in message
> news:%234hTcP5%23DHA.3184@TK2MSFTNGP09.phx.gbl...
> > Hi,
> >
> > I need an application to load signed assemblies from the network share.
> The
> > assembly in the network share connects to SQL Server database using the
> SQL
> > Server .Net provider. Because it is loaded from the share folder, the
> > assembly gets "Local_Intranet" permissions. The Local_Intranet
permissions
> > does not have enough permissions to connect to the SQL Server DB. What
> > permissions should I add to allow this assembly connect to the DB?
> >
> > Help is greatly appreciated
> >
> > Regards
> > Surya
> >
> >
>
>



Relevant Pages

  • Re: Altering .NET Security policy across domain
    ... caspol.exe to create a code group, but it can also be done using the .NET ... permissions you grant the signed assemblies. ... >>> all machines in the domain. ...
    (microsoft.public.dotnet.security)
  • Re: Is there a script which makes an assembly trusted on the client?
    ... The following applies to a managed executable program that executes ... permissions other than those normally granted to applications running in the ... signing and creating a custom code group are not ... >>> used to sign your assemblies, rather than on the details of the assembly>> itself. ...
    (microsoft.public.dotnet.security)
  • Re: How to determine what permissions are required for an assembly
    ... On the Web server, open Administrative Tools, and then double-click ... named permission set with only the required permissions to execute all the ... > I need an application to load signed assemblies from the network share. ...
    (microsoft.public.dotnet.security)
  • Re: SiteMembershipCondition mysteriously quick working
    ... Below is a short article on setting up security for running assemblies on ... mapped network drive is, by default, in the Local Intranet zone and operates ... permissions other than those normally granted to applications running in the ... signing and creating a custom code group are not ...
    (microsoft.public.dotnet.security)
  • Re: Security.Exception
    ... > The project is in a server folder and I run from my computer, ... the code group for the ... >> Have you ever made any changes to the CAS policy on this machine, ... >> adding a code group that grants full trust to assemblies signed with the ...
    (microsoft.public.dotnet.framework.aspnet)