Bit hard to tell without knowing what is going on in the code, but assume you 
are trying to read from and/or update an object (site, list, list item) that 
the user who is using your feature does not have access to.
 
The SPSecurity class can be used for running code under elevated privledges 
(google, there's plenty around on it - Ishai's blog contains a saga about it :) 
but note that this will run the code under the context of the WebAppPool user - 
so that user must have the necessary rights to access the objects your code is 
using.
 
Cheers,
 
Nigel Witherdin
SharePoint Technical Lead 
Eversheds
 
Direct Dial: +44 (0) 84 549 754 17
Mobile: +44 (0) 7738 553256
 
www.eversheds.com <http://www.eversheds.com/> 
 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rogério Cruzeiro
Sent: 18 September 2008 14:14
To: [email protected]
Subject: [OzMOSS] "Access is denied" issue


Hi all,

I'm getting this error when I try to execute a custom solution that I develop.

My solution calls and aspx page and creates and item on an normal list.

When I'm logged with administrator privileges I can execute the feature and the 
everything it's working fine.

But this feature was designed to be used by users only with "Contribute" 
privileges, and that's where I get the error.

I try some tricks but with no results:
 - Give maximum privileges to an user and try to execute the task with him. 
Same error.
 - I raise the trust level on web.config to "Full"
 - Recycle app pools and reset iis.

I don't know what else to do.

Please help, any suggestions are more than welcome.

Thanks,
Roger

 

------------------------------------------------------------------- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.
Powered by mailenable.com 



****** This email is sent for and on behalf of Eversheds LLP ******

This email is sent for and on behalf of Eversheds LLP which is a limited 
liability partnership, registered in England and Wales, registered number 
OC304065. Registered office One Wood Street, London. EC2V 7WS.  Registered VAT 
number GB820704559. A list of the members' names and their professional 
qualifications is available for inspection at the above office. Regulated by 
the Solicitors Regulation Authority (see www.sra.org.uk). 

Confidentiality:  This email and its attachments are intended for the above 
named only and may be confidential.  If they have come to you in error you must 
take no action based on them, nor must you copy or show them to anyone; please 
reply to this email and highlight the error.

************* [ www.eversheds.com ] *************



------------------------------------------------------------------- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.

Powered by mailenable.com

Reply via email to