Re: Safely Running a Web Application that works with WSS Objects

From: Bob Mixon (bob.mixon_at_vixcorp.com)
Date: 09/13/04


Date: Mon, 13 Sep 2004 13:37:23 -0700

Eric,

This sounds as though it could be a Code Access Security (CAS) problem. Not
being completely familiar with your application, specifically what it is
trying to accomplish and your current configuration, I would highly
recommend reading the following articles. These are from a gentleman named
Maxim Karpov, and are well worth taking the time to read.

http://ipattern.com/simpleblog/PermLink.aspx?entryId=43
http://ipattern.com/simpleblog/PermLink.aspx?entryid=48

------------------------
Bob Mixon
http://attunesystems.mywsssite.com

Do You Collaborate?

"Eric" <schmittes06@yahoo.com> wrote in message
news:eRPoWfamEHA.2504@TK2MSFTNGP14.phx.gbl...
> I wrote a web application that uses the Sharepoint DLL. The application
> displays a view of the top level and sub level sites that a user is a
member
> of. The application makes one query into the SQL database. The rest of
the
> information is pulled from Sharepoint objects. When run under a user that
> has been authenticated as a Machine Administrator the application runs
fine.
> Otherwise it breaks. At first it had a SQL security problem performing
the
> query which was fixed by giving authenticated users select permissions on
> that table. After the application executes the SQL query it gets the WSS
> error "Access denied. You do not have permission to perform this action
or
> request this resource". On Page Load I added :
> Dim sharePointPermissions as new
> systems.security.permissions.permissionState
> To assert the permissions:
> sharePointPermissions = 1
>
> This did not work. Does anyone know how I can safely give the web
> application sufficient permissions to use the Sharepoint objects? Any
help
> would be greatly appreciated.
>
> Thanks,
>
> Eric
>
>
>



Relevant Pages

  • Re: Safely Running a Web Application that works with WSS Objects
    ... change the trust element in the web.config file located in ... The application makes one query into the SQL database. ... > information is pulled from Sharepoint objects. ... > query which was fixed by giving authenticated users select permissions on ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Permissions granted based on assembly and user
    ... setting the Policy for specific assemblies through the ... > You can set impersonation ON and use NTFS permissions on the files. ... > should also use Code Access Security to specify what folders the plugin ...
    (microsoft.public.dotnet.security)
  • Re: project security issue
    ... This is because of .NET's Code Access Security which is configured to ... share and assign appropiate permissions. ... > The project location is not fully trusted by the .NET runtime. ... This is> usually because it is either a network share or mapped to a network> share not on the local machine. ...
    (microsoft.public.dotnet.framework)
  • Re: FxCop App Security
    ... yes, the FxCop is surely applying to all .net code, not specify to ASP.NET, ... And if you're focus on ASP.NET specific .NET CODE Access security, ... | Subject: Re: FxCop App Security ... |> permissions while refusing all other permissions the runtime otherwise ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Authentication problem
    ... It appears that you are accessing the Object Model with having permissions ... the SPS SDK under "Code Access Security". ... changing it for just this web part, and using impersonation within the web ...
    (microsoft.public.sharepoint.portalserver.development)