Access denied error in feature receiver code when deploying-activating custom timer job feature

hi,
am creating a sp timer job for a updating a list.when i write this code in a  the event receiver featureactivated  method, and when i activate this feature , am getting access denied error.
but, when i deploy this timer job [ without feature receiver] through powershell, it works.
i didnt run  this feature receiver with runwithelevatedprivileges delegate - i think this wlll NOT solve the issue.
from one of the posts i seen that, current logedin user needs to be part of config database roles. i didnt understand this point. how can i add my current loge din user into the sp_config database roles? is it through SSMS 2012?
or
is there any way to achieve without feature event receiver?
otherwise i will be forced to write my business logic in a console appln and add this exe in a windows scheduler.!  
help is appreciated! 

hi Waqas,
i have ran that powershell script you have pointed to me.
function Set-RemoteAdministratorAccessDenied-False()
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") > $null
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") > $null
    # get content web service
    $contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
    # turn off remote administration security
    $contentService.RemoteAdministratorAccessDenied = $false
   $contentService.Update()         
now i need to test the functionality from the event receiver after Activate feature button click.
BTW, i have written a console appln for my business  logic and created  an exe.
also, should i test it with a web application levels coped feature instead of  site collection level feature? this  thread talks abt the same:
http://social.technet.microsoft.com/Forums/en-US/f41810ec-2348-436d-a574-c29656f3a567/access-denied-error-when-running-timer-job-from-feature-activated-event?forum=sharepointgeneralprevious
thx

Similar Messages

  • Receive "Access Denied" error message when attempting to install iTunes

    Receive "Access Denied" error message when attempting to install iTunes. 

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • Access denied error when starting DIAdem from LabVIEW

    We are using the DIAdem Connectivity Toolkit in our application.  Our application starts a DIAdem session to handle querying and datasheet creation.  On a recent installation at a customer, our application was not able to communicate with DIAdem, i.e. we get an Access Denied error when our application tries to start up DIAdem.
    The location of the error is in the DIAdem Open Connection.vi.  I believe it is when the Automation Open is run.
    Is there some system setting that could be blocking communication between the two, i.e. ActiveX setting, etc?  If so, where could we control these settings from?

    Hello Derrick,
    While cBauer is away from the office, I will be working with this case on his behalf.  I will try to answer your questions as best I can to determine what might be causing this failure.
    1. The error which we encounter is an "Access Denied" error (as stated above).  I am currently investigating the error code, and will update this post accordingly when I have it.
    2. Our application is a built (.exe) application using LabVIEW 8.5 and DIAdem 10.2
    3. We do not install the toolkit directly on the customers machine as this is a built application.  We install the FULL LabVIEW 8.5 Runtime engine, as well as a licensed copy of the DIAdem 10.2 Basic edition.
    4. The error occurs in run-time environment at a customer site.  We have been unable to duplicate the error in development.
    5. We're using the "DIAdem Open Connection.vi" from the DIAdem.dll library to initialize the connection (this is the VI which appears to be producing the error via the "Automation Open" node), and we're using the "DIAdem Close Reference.vi" from the same library to close the reference.
    6. I will instrument a simple application which performs these tasks and post the results when we have tried this operation.
    7. I am unsure whether the repair operation has been attempted.  I will verify this behavior and again post the results to this forum.
    Thank you for your help.  Please let me know if you require additional information.  Hopefully we can discover a solution to our problem.
    Ken

  • "Access Denied" error when attempting to update HP w2207h monitor drivers

    CPU Product Name and Number:  HP Pavillion a6700y
    Monitor: HP w2207h 
    Operating system: Windows Vista 64-bit. SP2
    Error Message:  I receive an "Access Denied" error screen when attempting to update drivers for my HP w2207h monitor.  HP solution of deleting monitor(s) from Device Driver and reloading did not work.  Patch file called DRVFix download can not be opened by WINZIP.  I have tried reloading from the original w2207h monitor disk but receive the same error.  Attempting to download from Windows Update results in the same error.  Any suggestions?   ; 
    Recent Changes: Installed new hard drive to replace an "imminent failure" drive; used system recovery disks and am now reloading all software.  All works week except fro this driver issue with the monitor.  All Microsoft and Windows security and hotfix updates have been installed.  System is wireless.

    Hi,
    I solved the issue of Access Denied by installing the driver (inf file) manually. 
    Go to Device Manager and locate the Monitor
    Right mouse click and select update driver software
    Browse my computer
    Select let me pick from a list
    Select have Disk
    Browse to C:\swsetup\monitors\HP_2159_2.0\files\
    Select HP_2159.inf
    Click to install from disk
    Next
    You might even be able to just navigate directly to the HP folder, locate the .inf file, right mouse click on it and select install.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • Access Denied error (code 5)

    Hi
    I am using server 2008 r2 sp1 while installing any windows update or my sql I am getting error code 5 access denied
    and i am installing with Admin ID. What can be the reason?

    Checked this ? 
    https://social.technet.microsoft.com/Forums/en-US/522a1177-22eb-458b-a113-d1958e0b991e/sql-express-access-denied-error-code-5?forum=sqlexpress
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • Access Denied Error Opens when Installing HP Monitor Software (Windows 7)

    im getting the following error trying to upgrade my screen driver.
    "Access Denied Error Opens when Installing HP Monitor Software (Windows 7)"
    I found this error in the help area but it doesnt address the problem, it simply describes the device manager instalation procedure, which I am using , and which results in the error.

    Hi debgibson,
    What is the monitor model number and what is the PC model number?
    ...an HP employee just trying to help where I can, but not speaking on behalf of HP.

  • Publishing cancels with "access denied" error when publishing updates to desktop layout

    Hello, all,
    Wondering if anyone else has run into this issue: we update and republish our help projects frequently. We're currently using a layout based on the desktop layout (colors, fonts, and some other screen elements have changed). The project generates successfully. We publish via file transfer and have the "republish all" setting selected. Sometimes when we publish our multiscreen HTML5 layout, it cancels about halfway through the estimated time with a "publishing cancelled - access denied" error. If we delete the layout folder ("desktop" in this case) from the publishing location and retry publishing, it succeeds.
    Has anyone else encountered this issue? If so, what fixes (other than deleting content and republishing) have you found?
    FYI, we also publish the same projects to the WebHelp Pro layout without any issues.
    Thanks in advance for your help.

    This problem used to occur with Publishing from Rh but I have not seen it for a long time, either myself or in posts.
    Maybe Item 5 at http://www.grainge.org/pages/snippets/snippets.htm#webhelp will help.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Access Denied Error when Installing Suitcase

    I am encountering an Access Denied Error when installing Suitcase X1 on a 600 MHz G3 ibook running 10.4.3 with all updates and it gets to 2 items remaining to be installed and I get access denied error and then another screen pops up and says "You do not have enough access privileges for this installation". I am logged in as an administrator, I tried creating a new Administrator account, I have repaired permissions, I have tried downloading a new file, all with no luck and now I am stuck. Any ideas?
    G3 Pismo, G4 Desktop   Mac OS X (10.4.3)  

    Hi,
    Firstly, please let us know if it is a workgroup or domain environment.
    Also, please let us know more details about the configurations of the server and clients.
    Meanwhile, you can check the settings by referring to the following:
    Allow someone to connect to your computer using Remote Desktop Connection
    http://windows.microsoft.com/en-HK/windows7/allow-someone-to-connect-to-your-computer-using-remote-desktop-connection
    Remote Desktop Connection: frequently asked questions
    http://windows.microsoft.com/en-hk/windows/remote-desktop-connection-faq#1TC=windows-8
    If issue persists, please provide us the unedited error message or screenshot for further research.
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • HT4623 Iphone 4s access denied error message when importing photos

    ok got iphone 4s in feb have used windows live photo gallery to import since i got the phone and never had any problems    started having problems with itunes not working say it was on a locked disk and/or didint have write permissions fixed this with a total uninstall and reinstall of itunes and now that works fine  but at the same time the itunes stopped working i started getting an access denied error when importing photos via usb via windos live photo gallery    i was however able to import my husbands photos from his ipad three days ago the same way i do my iphone and it worked fine with the ipad but not my iphone   so here is what i do click for click  i plug in the iphone via usb and the autoplay and itunes starts. i close itunes and go to autoplay click on import using windows live photo gallery than the pops open i check the folder to import too (which is on an exterial hard drive) and then i click import and it starts to import and on the very first photo and all photos the access is denied error message pops up   help please this is driving me crazy that it worked fine one day and now it doesnt work

    Good afternoon
    There seem to be a number of possibilities.
    Here is a thread that conatins a number of solutions.  The most common one is to load 50 pics at a time.
    https://discussions.apple.com/thread/3947440?start=0&tstart=0
    Hope this helps

  • After spring break as of March 26th we are receiving access denied errors

    After spring break as of March 26th we are receiving access denied errors with faculty and students attempt to access private courses on our CWU on iTunes U site.  Anyone else have this problem?

    Hi,
    How many Domain Controllers are in the domain? Are they using static IP addresses? If not, please assign static IP addresses on DCs.
    In addition, would you please run DCdiag on a Domain Controller then post out the results?
    Best Regards,
    Amy

  • SAP GUI710 installation error like Access Denied (error code -2147024891)

    Hi Guys,
    im getting error while SAP GUI710 installing, error like "Access Denied (error code -2147024891)"
    pls help me if any one know.

    Hi,
    One of the reson for this may be the login ID which you are using is not the owner or the does not have the Admin. rights... Please check it.
    Patil

  • I get an access denied error when logging into extension builder 2.1 on Flash Builder 4.6

    I get an access denied error when logging into extension builder. The error is: You are not eligible to use CSIDE1 services due to the Service Eligibility Requirements.. Very frustrating since there is no other option than to read the adobe legal docs.
    Before this started happening I was prompted to put in my birthday (WHO KNOWS WHY ADOBE NEEDS MY BIRTHDAY). I filled it in wrong and now this....
    PLEASE HELP

    Ok this problem is fixed.
    Info for anyone else who faces this problem.
    Apparently when adobe designed the extension builder installer package, they decided to get cute and try to figure out what version of the software, the extension builder package files should be installed into. So if you have FB4, FB4.6, and FB.7 there is no telling where it will go. Also if you try moving these folders somewhere else out of the applications directory, the installer will still find them on the system. I finally figured this out by watching my system log and seeing
    11/22/13 12:13:46.258 AM cp[70909]: Cannot make directory /Applications/Adobe Flash Builder 4.6/Adobe Flash Builder 4.6.app
          Location: /Users/myuser/Downloads/Adobe Flash Builder 4.6-adobegarbage/plugins/com.adobe.cside.ui_2.1.0.201304282312/icons: No such file or directory
    After removing every single instance of places the package installer was trying to use. It finally resolved to the correct FB4.6 location. Why adobe could'nt spend a little extra time add a destination selector in the package installer is beyond me, but hey i only wasted 3 days trying to figure this out.... Sadly it isnt the first time i've wasted copius amounts of time fighting Flashbuilder problems.
    Halligrimur, thank you for your help. It did lead to me solving the problem.

  • I cannot get iTunes or QuickTime to install. I receive an "access denied" error even after uninstalling both completely.

    I cannot get iTunes to install on my Windows 7 PC. I have uninstalled iTunes and QuickTime completely, and downloaded the newest versions. On installation, I receive an "access denied" error for both. I am on an administrator account, run as administrator, deleted my temp folder, everything. I cannot get either to install. Any suggestions? Very frustrating.

    I am am seeing exactly the same scenario being played out as  phitzdisco, on a Dell running Windows 7, and normally a very stable install at that. Steps followed
    Uninstalled all the software correctly, following instructions, in the Program & program(x86) folders
    Rebooted
    Cleaned out the \appdata\local\temp directory
    Download the latest iTunes
    Run as user and a second time through after repeating the steps above as administrator
    Three "Access is Denied" messages in the install
    Log file iTunes64SetupD2C.log shows
         fdintCLOSE_FILE_INFO
            file name in cabinet = Bonjour64.msi
         fdintCOPY_FILE
           file name in cabinet = SetupAdmin.exe
           uncompressed file size = 77136
         fdintCLOSE_FILE_INFO
            file name in cabinet = SetupAdmin.exe
    Executing: "C:\Windows\system32\msiexec.exe" /i "C:\Users\Paul\AppData\Local\Temp\IXP322.TMP\iTunes64.msi" INSTALL_SUPPORT_PACKAGES=1
    Returning: 1603
    In the SetupAdmin1B84.log we see
    MessageType: INSTALLMESSAGE_ACTIONSTART
    Message: Action 09:05:24: AllocateRegistrySpace. Allocating registry space
    Returning:   1L
    MessageType: INSTALLMESSAGE_INFO
    Message: Action start 09:05:24: AllocateRegistrySpace.
    Returning:   1L
    MessageType: INSTALLMESSAGE_INFO
    Message: Action ended 09:05:24: AllocateRegistrySpace. Return value 1.
    Returning:   1L
    MessageType: INSTALLMESSAGE_ACTIONSTART
    Message: Action 09:05:24: ProcessComponents. Updating component registration
    Returning:   1L
    MessageType: INSTALLMESSAGE_INFO
    Message: Action start 09:05:24: ProcessComponents.
    Returning:   1L
    MessageType: INSTALLMESSAGE_ERROR
    Message: Access is denied.
    Returning:   1L
    MessageType: INSTALLMESSAGE_INFO
    Message: Action ended 09:05:33: ProcessComponents. Return value 3.
    Returning:   1L
    MessageType: INSTALLMESSAGE_COMMONDATA
    Message: Message type: 2, Argument: 0
    Returning:   1L
    MessageType: INSTALLMESSAGE_COMMONDATA
    Message: Message type: 2, Argument: 1
    Returning:   1L
    MessageType: INSTALLMESSAGE_INFO
    Message: Action ended 09:05:33: INSTALL. Return value 3.
    Returning:   1L
    MessageType: INSTALLMESSAGE_INFO
    Message: Property(S): UpgradeCode = {529316F8-601C-48AB-BAF6-D9E09938D8D3}
    Returning:   1L
    MessageType: INSTALLMESSAGE_INFO
    Message: Property(S): INSTALLDIR = C:\Program Files (x86)\Common Files\Apple\Apple Application Support\
    Returning:   1L
    The other 6 logs files are also present, but somewhat large to post unless required.
    I hope this can potential help us both find the issue

  • Access denied error when Loading document library for "contribute" users : Unknown SPRequest error occurred. More information: 0x80070005

    Hi,
    We are facing a very strange issue on a SharePoint Publishing portal. Domain users (contribute level access) have access to document libraries under specific sub sites. Every morning if they try to access the document library pages, users complain about "Access Denied" issue on document library page. But if a SP Farm admin account login on site, and browse to document library page, access denied issue seems to disappear for end users also. For whole day it works fine. But next day access denied error occurs again. I am not sure why this is happening. I have looked into Event Log and SharePoint Logs, found following information useful, but not sure what to do next.
    Please help.
    Event log Details:
    Server: WFE01
    Event Type: Error
    Event Source: Office SharePoint Server
    Event Category: Publishing
    Event ID: 5169
    Date:  17/11/2009
    Time:  07:47:31
    User:  N/A
    Computer: SPWFE01
    Description:
    Console Configuration File Error: XML Exception: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    SP Log files:
    All logs are for process: w3wp.exe (0x031C)                        0x17F4 Windows SharePoint Services  
    ·     Begin OnLoad of XmlConsoleDataSource from file "EditingMenu".
    ·     Attempting to load XML from config file "EditingMenu".
    ·     PermissionMask check failed. asking for 0x00010000, have 0x00000000
    ·     Unknown SPRequest error occurred. More information: 0x80070005
    ·     Access Denied for /Projects/LFB/03 Bid Stage 1/Forms/AllItems.aspx.
    ·     StackTrace: Microsoft.SharePoint.Utilities.SPUtility:Void HandleAccessDenied(System.Exception), Microsoft.SharePoint.SPGlobal:Void HandleUnauthorizedAccessException(System.UnauthorizedAccessException), Microsoft.SharePoint.Library.SPRequest:Void OpenWeb(System.String, System.String ByRef, System.String ByRef, System.String ByRef, System.Guid ByRef, System.String ByRef, UInt32 ByRef, System.Guid ByRef, UInt32 ByRef, UInt32 ByRef, UInt32 ByRef, UInt16 ByRef, Boolean ByRef, Int16 ByRef, UInt32 ByRef, Int16 ByRef, Int16 ByRef, Int16 ByRef, Boolean ByRef, Int16 ByRef, UInt32 ByRef, Int16 ByRef, Int16 ByRef, Int16 ByRef, Int16 ByRef, Int32 ByRef, Boolean ByRef, System.String ByRef, System.String ByRef, Int32 ByRef, Int16 ByRef, ...
    ...System.String ByRef, System.String ByRef, System.String ByRef, System.String ByRef, System.String ByRef, System.String ByRef, System.String ByRef, System.String ByRef, System.String ByRef, System.String ByRef, System.Object ByRef, Boolean ByRef, UInt64 ByRef, Boolean ByRef, Boolean ByRef, System.Guid ByRef, System.Guid ByRef, Int32 ByRef, System.DateTime ByRef, System.DateTime ByRef, System.String ByRef), Microsoft.SharePoint.SPWeb:Void InitWeb(), Microsoft.SharePoint.SPWeb:Microsoft.SharePoint.SPSecurableObjectImpl get_SecurableObjectImpl(), Microsoft.SharePoint.SPWeb:Microsoft.SharePoint.SPRoleAssignmentCollection get_RoleAssignments(), Microsoft.SharePoint.Publishing.WebControls.ConsoleXmlUtilities:System.String ConfigurationXml(System.String, Boolean), Microsoft.SharePoint.Publishing.W...
    ...ebControls.ConsoleXmlUtilities:Microsoft.SharePoint.Publishing.WebControls.ConsoleNode GetConsoleNodeCollectionFromXmlFile(System.String, Boolean), Microsoft.SharePoint.Publishing.WebControls.XmlConsoleDataSource:Void LoadTreeFromConfigXml(), Microsoft.SharePoint.Publishing.WebControls.XmlConsoleDataSource:Void OnLoad(System.EventArgs), System.Web.UI.Control:Void LoadRecursive(), System.Web.UI.Control:Void LoadRecursive(), System.Web.UI.Control:Void LoadRecursive(), System.Web.UI.Control:Void LoadRecursive(), System.Web.UI.Control:Void LoadRecursive(), System.Web.UI.Control:Void LoadRecursive(), System.Web.UI.Control:Void LoadRecursive(), System.Web.UI.Control:Void LoadRecursive(), System.Web.UI.Control:Void LoadRecursive(), System.Web.UI.Control:Void LoadRecursive(), System.Web.UI.Page:Vo...
    ...id ProcessRequestMain(Boolean, Boolean), System.Web.UI.Page:Void ProcessRequest(Boolean, Boolean), System.Web.UI.Page:Void ProcessRequest(), System.Web.UI.Page:Void ProcessRequestWithNoAssert(System.Web.HttpContext), System.Web.UI.Page:Void ProcessRequest(System.Web.HttpContext), System.Web.HttpApplication+CallHandlerExecutionStep:Void System.Web.HttpApplication.IExecutionStep.Execute(), System.Web.HttpApplication:System.Exception ExecuteStep(IExecutionStep, Boolean ByRef), System.Web.HttpApplication+ApplicationStepManager:Void ResumeSteps(System.Exception), System.Web.HttpApplication:System.IAsyncResult System.Web.IHttpAsyncHandler.BeginProcessRequest(System.Web.HttpContext, System.AsyncCallback, System.Object), System.Web.HttpRuntime:Void ProcessRequestInternal(System.Web.HttpWorkerReque...
    ...st), System.Web.HttpRuntime:Void ProcessRequestNoDemand(System.Web.HttpWorkerRequest), System.Web.Hosting.ISAPIRuntime:Int32 ProcessRequest(IntPtr, Int32),
    ·     Releasing SPRequest with allocation Id {E3BC24ED-F243-4DBD-8625-EE7CF9FDA039}
    ·     Exception: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    ·     Console Configuration File Error: XML Exception: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    ·     Releasing SPRequest with allocation Id {D1A87724-6FB6-4009-B6D1-D7E15918E213}
    Pryank Rohilla
    MCTS, MCAD

    Hi pryank,
    From the log, it seems that the users don’t have permission on this page:
    /Projects/LFB/03 Bid Stage 1/Forms/AllItems.aspx
    Does the sub site have unique permission instead of inheriting permission from the parent site? If no, you need to make the sub site to inherit permission from the site collection so that master page also inherits the right. If this is not allowed in your organization, please go to “Site Actions”à “Site Settings” à “Master Pages and Page Layouts” to give users permissions on this document library.
    Hope this helps.
    Lu Zou

  • "access denied" error when using data bindings in region

    Whenever I use data boundings in a region jspx or even in a subview page, I got "access denied" error in other page that uses this region or subview.
    Anybody know if there is any workaround?
    Thanks a lot!

    Thanks Frank.
    I tried to copy all the bindings in subpage pageDef to mainpage pageDef - no luck.
    I was trying to use region to implement tile like templating following this nice article
    http://technology.amis.nl/blog/?p=1709
    Because of this access denied issue, seems this nice article is not that useful.

Maybe you are looking for