Access denied error on updating list through custom webpart

hi
I have created one webpart having multiple view option.
On selection of items from one view user is clicking on next button to get 2nd view (THis is causing postback) and on selection of 2nd view items user is clicking on next buton for 3rd view.
On third view he can see the submit button. On click on submit button the selected items are updateing in one list and also updating data in other lists.
The list in which we are updating data have limited access to all users. But previously user were able to upate the list.
But after implimenting this multiple view with next button which  postbacks on click user are getting access denied error while updating the list. If i provide contribute access to that list then they able to submit the changes properly. But even after
that they got the error at first time.
Any body got this type of issue?
Is the post back on custom webpart cause access denied error?
i have written my code like this to updat list,
protected void btnUpdate_Click(object sender, EventArgs e)
try
SPSite site = new SPSite(SPContext.Current.Site.ID);
SPWeb myWeb = site.OpenWeb(SPContext.Current.Web.ID);
SPSecurity.RunWithElevatedPrivileges(delegate()
using (SPSite ElevatedSite = new SPSite(site.ID))
using (SPWeb ElevatedWeb = ElevatedSite.OpenWeb(myWeb.ID))
ElevatedSite.AllowUnsafeUpdates = true;
ElevatedWeb.AllowUnsafeUpdates = true;
//code to update multiple lists
catch (Exception ex)
Please suggest any solution for this.

Yes I checked with ULS log viewer.
Its very helpfull as reading that text log file is very difficuelt.
I found that if user spend more time on that webpart then session veriables on that webpart gets expired and at the time of redirection of user to newly created list using below code currentNewList becomes empty and its redirection to wrong list(_abc) which
is dummy list and user dont have any access.
currentNewList = NewListName+ "_abc"
SPUtility.Redirect(currentNewList.DefaultViewUrl, SPRedirectFlags.Default, HttpContext.Current);
So I modified the code to reload the session data when user clisk on submit button.

Similar Messages

  • 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

  • "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

  • 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

  • EFS Encrypted Files over home workgroup network via WebDAV avoiding Active Directory fixing Access Denied errors

    This is for information to help others
    KEYWORDS:
      - Sharing EFS encrypted files over a personal lan wlan wifi ap network
      - Access denied on create new file / new fold on encrypted EFS network file share remote mapped folder
      - transfer encryption keys / certificates
      - set trusted delegation for user + computer for EFS encrypted files via
    Kerberos
      - Windows Active Directory vs network file share
      - Setting up WinDAV server on Windows 7 Pro / Ultimate
    It has been a long painful road to discover this information.
    I hope sharing it helps you.
    Using EFS on Windows 7 pro / ultimate is easy and works great. See
    here and
    here
    So too is opening + editing encrypted files over a peer-to-peer Windows 7 network.
    HOWEVER, creating a new file / new folder over a peer-to-peer Windows 7 network
    won't work (unless you follow below steps).
    Typically, it is only discovered as an issue when a home user wants to use synchronisation software between their home computers which happens to have a few folders encrypted using windows EFS. I had this issue trying to use GoodSync.
    Typically an "Access Denied" error messages is thrown when a \\clientpc tries to create new folder / new file in an encrypted folder on a remote file share \\fileserver.
    Why such a EFS drama when a network is involved?
    Assume a home peer-to-peer network with 2pc:  \\fileserver  and  \\clientpc
    When a \\clientpc tries to create a new file or new folder on a \\fileserver (remote computer) it fails. In a terribly simplified explanation it is because the process on \\fileserver that is answering the network requests is a process working for a user on
    another machine (\\clientpc) and that \\fileserver process doesn't have access to an encryption certificate (as it isn't a user). Active Directory gets around this by using kerberos so the process can impersonate a \\fileserver user and then use their certificate
    (on behalf of the clienpc's data request).
    This behaviour is confusing, as a \\clientpc can open or edit an existing efs encrypted file or folder, just can't create a new file or folder. The reason editing + opening an encrypted file over a network file share is possible is because the encrypted
    file / folder already has an encryption certificate, so it is clear which certificate is required to open/edit the file. Creating a new file/folder requires a certificate to be assigned and a process doesn't have a profile or certificates assigned.
    Solutions
    There are two main approaches to solve this:
         1) SOLVE by setting up an Active Directory (efs files accessed through file shares)
              EFS operations occur on the computer storing the files.
              EFS files are decrypted then transmitted in plaintext to the client's computer
              This makes use of kerberos to impersonate a local user (and use their certificate for encrypt + decrypt)
         2) SOLVE by setting up WebDAV (efs files accessed through web folders)
               EFS operations occur on the client's local computer
               EFS files remain encrypted during transmission to the client's local computer where it is decrypted
               This avoids active directory domains, roaming or remote user profiles and having to be trusted for delegation.
               BUT it is a pain to set up, and most online WebDAV server setup sources are not for home peer-to-peer networks or contain details on how to setup WebDAV for EFS file provision
             READ BELOW as this does
    Create new encrypted file / folder on a network file share - via Active Directory
    It is easily possible to sort this out on a domain based (corporate) active directory network. It is well documented. See
    here. However, the problem is on a normal Windows 7 install (ie home peer-to-peer) to set up the server as part of an active directory domain is complicated, it is time consuming it is bulky, adds burden to operation of \\fileserver computer
    and adds network complexity, and is generally a pain for a home user. Don't. Use a WebDAV.
    Although this info is NOT for setting up EFS on an active directory domain [server],
    for those interested here is the gist:
    Use the Active Directory Users and Computers snap-in to configure delegation options for both users and computers. To trust a computer for delegation, open the computer’s Properties sheet and select Trusted for delegation. To allow a user
    account to be delegated, open the user’s Properties sheet. On the Account tab, under Account Options, clear the The account is sensitive and cannot be delegated check box. Do not select The account is trusted for delegation. This property is not used with
    EFS.
    NB: decrypted data is transmitted over the network in plaintext so reduce risk by enabling IP Security to use Encapsulating Security Payload (ESP)—which will encrypt transmitted data,
    Create new encrypted file / folder on a network file share - via WebDAV
    For home users it is possible to make it all work.
    Even better, the functionality is built into windows (pro + ultimate) so you don't need any external software and it doesn't cost anything. However, there are a few hotfixes you have to apply to make it work (see below).
    Setting up a wifi AP (for those less technical):
       a) START ... CMD
       b) type (no quotes): "netsh  wlan set hostednetwork mode=allow ssid=MyPersonalWifi key=12345 keyUsage=persistent"
       c) type (no quotes): "netsh  wlan start hostednetwork"
    Set up a WebDAV server on Windows 7 Pro / Ultimate
    -----ON THE FILESERVER------
       1  click START and type "Turn Windows Features On or Off" and open the link
           a) scroll down to "Internet Information Services" and expand it.
           b) put a tick in: "Web Management Tools" \ "IIS Management Console"
           c) put a tick in: "World Wide Web Services" \ "Common HTTP Features" \ "WebDAV Publishing"
           d) put a tick in: "World Wide Web Services" \ "Security" \ "Basic Authentication"
           e) put a tick in: "World Wide Web Services" \ "Security" \ "Windows Authentication"
           f) click ok
           g) run HOTFIX - ONLY if NOT running Windows 7 / windows 8
    KB892211 here ONLY for XP + Server 2003 (made in 2005)
    KB907306 here ONLY for Vista, XP, Server 2008, Server 2003 (made in 2007)
      2 Click START and type "Internet Information Services (IIS) Manager"
      3 in IIS, on the left under "connections" click your computer, then click "WebDAV Authoring Rules", then click "Open Feature"
           a) on the right side, under Actions, click "Enable WebDAV"
      4 in IIS, on the left under "connections" click your computer, then click "Authentication", then click "Open Feature"
           a) on the "Anonymous Authentication" and click "Disable"
           b) on the "Windows Authentication" and click "Enable"
          NB: Some Win 7 will not connect to a webDAV user using Basic Authentication.
            It can be by changing registry key:
               [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient\Parameters]
               BasicAuthLevel=2
           c) on the "Windows Authentication" click "Advanced Settings"
               set Extended Protection to "Required"
           NB: Extended protection enhances the windows authentication with 2 security mechanisms to reduce "man in the middle" attacks
      5 in IIS, on the left under "connections" click your computer, then click "Authorization Rules", then click "Open Feature"
           a) on the right side, under Actions, click "Add Allow Rule"
           b) set this to "all users". This will control who can view the "Default Site" through a web browser
           NB: It is possible to specify a group (eg Administrators is popular) or a user account. However, if not set to "all users" this will require the specified group/user account to be used for logged in with on the
    clientpc.
           NB: Any user account specified here has to exist on the server. It has a bug in that it usernames specified here are not validated on input.
      6 in IIS, on the left under "connections" click your computer, then click "Directory Browsing", then click "Open Feature"
           a) on the right side, under Actions, click "Enable"
    HOTFIX - double escaping
      7 in IIS, on the left under "connections" click your computer, then click "Request Filtering", then click "Open Feature"
           a) on the right side, under Actions, click "Edit Feature Settings"
           b) tick the box "Allow double escaping"
         *THIS IS VERY IMPORTANT* if your filenames or foldernames contain characters like "+" or "&"
         These folders will appears blank with no subdirectories, or these files will not be readable unless this is ticked
         This is safe btw. Unchecked (default) it filters out requests that might possibly be misinterpreted by buggy code (eg double decode or build url's via string-concat without proper encoding). But any bug would need to be in IIS basic
    file serving and this has been rigorously tested by microsoft, so very unlikely. Its safe to "Allow double escaping".
      8 in IIS, on the left under "connections" right click "Default Web Site", then click "Add Virtual Directory"
           a) set the Alias to something sensible eg "D_Drive", set the physical path
           b) it is essential you click "connect as" and set
    this to a local user (on fileserver),
           if left as "pass through authentication" a client won't be able to create a new file or folder in an encrypted efs folder (on fileserver)
                 NB: the user account selected here must have the required EFS certificates installed.
                            See
    here and
    here
            NB: Sharing the root of a drive as an active directory (eg D:\ as "D_Drive") often can't be opened on clientpcs.
          This is due to windows setting all drive roots as hidden "administrative shares". Grrr.
           The work around is on the \\fileserver create an NTFS symbollic link
              e.g. to share the entire contents of "D:\",
                    on fileserver browse to site path (iis default this to c:\inetpub\wwwroot)
                    in cmd in this folder create an NTFS symbolic link to "D:\"
                    so in cmd type "cd c:\inetpub\wwwroot"
                    then in cmd type "mklink /D D_Drive D:\"
            NB: WebDAV will open this using a \\fileserver local user account, so double check local NTFS permissions for the local account (clients will login using)
             NB: If clientpc can see files but gets error on opening them, on clientpc click START, type "Manage Network Passwords", delete any "windows credentials" for the fileserver being used, restart
    clientpc
      9 in IIS, on the left under "connections" click on "WebDAV Authoring Rules", then click "Open Feature"
           a) click "Add authoring rules". Control access to this folder by selecting "all users" or "specified groups" or "specified users", then control whether they can read/write/source
           b) if some exist review existing allow or deny.
               Take care to not only review the "allow access to" settings
               but also review "permissions" (read/write/source)
           NB: this can be set here for all added virtual directories, or can be set under each virtual directory
      10 Open your firewall software and/or your router. Make an exception for port 80 and 443
           a) In Windows Firewall with Advanced Security click Inbound Rules, click New Rule
                 choose Port, enter "80, 443" (no speech marks), follow through to completion. Repeat for outbound.
              NB: take care over your choice to untick "Public", this can cause issues if no gateway is specified on the network (ie computer-to-computer with no router). See "Other problems+fixes"
    below, specifically "Cant find server due to network location"
           b) Repeat firewall exceptions on each client computer you expect to access the webDAV web folders on
    HOTFIX - MAJOR ISSUE - fix KB959439
      11 To fully understand this read "WebDAV HOTFIX: RAW DATA TRANSFERS" below
          a) On Windows 7 you need only change one tiny registry value:
               - click START, type "regedit", open link
               -browse to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\MRxDAV\Parameters]
               -on the EDIT menu click NEW, then click DWORD Value
               -Type "DisableEFSOnWebDav" to name it (no speech marks)
               -on the EDIT menu, click MODIFY, type 1, then click OK 
               -You MUST now restart this computer for the registry change to take effect.
          b) On Windows Server 2008 / Vista / XP you'll FIRST need to
    download Windows6.0-KB959439 here. Then do the above step.
             NB microsoft will ask for your email. They don't care about licence key legality, it is more to keep you updated if they modify that hotfix
      12 To test on local machine (eg \\fileserver) and deliberately bypass the firewall.
            a) make sure WebClient Service is running
                (click START, type "services" and open, scroll down to WebClient and check its status)
            b) Open your internet software. Go to address "http://localhost:80" or "http://localhost:80"
                It should show the default "IIS7" image.
                If not, as firewall and port blocking are bypassed (using localhost) it must be a webDAV server setting. Check "Authorization Rules" are set to "Allow All Users"           
            c) for one of the "virtual directories" you added (8), add its "alias" onto "http://localhost/"
                    e.g. http://localhost/D_drive
                If nothing is listed, check "Directory Browsing" is enabled
      13 To test on local machine or a networked client and deliberately try and access through the firewall or port opening of your router.
            a) make sure WebClient Service is running
                (click START, type "services" and open, scroll down to WebClient and check its status)
            b) open your internet software. Go to address "http://<computer>:80" or "http://<computer>:80".
                  eg if your server's computer name is "fileserver" go to "http://fileserver:80"
                  It should show the default "IIS7" image. If not, check firewall and port blocking. 
                  Any issue ie if (12) works but (13) doesn't,  will indicate a possible firewall issue or router port blocking issue.
           c) for one of the "virtual directories" you added (8), add its "alias" onto "http://<computername>:80/"
                   eg if alias is "C_driver" and your server's computer name is "fileserver" go to "http://fileserver:80/C_drive"
                   A directory listing of files should appear.
    --- ON EACH CLIENT ----
    HOTFIX - improve upload + download speeds
      14 Click START and type "Internet Options" and open the link
            a) click the "Connections" tab at the top
            b) click the "LAN Settings" button at the bottom right
            c) untick "Automatically detect settings"
    HOTFIX - remove 50mb file limit
      15 On Windows 7 you need only change one tiny registry value:
          a) click START, type "regedit", open link
          b) browse to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WebClient\Parameters]
           c) click on "FileSizeLimitInBytes"
           d) on the EDIT menu, click MODIFY, type "ffffffff", then click OK (no quotes)
    HOTFIX - remove prompt for user+pass on opening an office or pdf document via WebDAV
     16 On each clientpc click START, type "Internet Options" and open it
             a) click on "Security" (top) and then "Custom level" (bottom)
             b) scroll right to the bottom and under "User Authentication" select "Automatic logon with current username and password"
             SUCH an easy fix. SUCH an annoying problem on a clientpc
       NB: this is only an issue if the file is opened through windows explorer. If opened through the "open" dialogue of the software itself, it doesn't happen. This is as a WebDAV mapped drive is consdered a "web folder" by windows
    explorer.
    TEST SETUP
      17 On the client use the normal "map network drive"
                e.g. server= "http://fileserver:80/C_drive", tick reconnect at logon
                e.g. CMD: net use * "http://fileserver:80/C_drive"
             If it doens't work check "WebDAV Authoring Rules" and check NTFS permissions for these folders. Check that on the filserver the elected impersonation user that the client is logging in with (clientpc
    "manage network passwords") has NTFS permissions.
      18 Test that EFS is now working over the network
           a) On a clientpc, map network drive to http://fileserver/
           b) navigate to a folder you know on the \\flieserver is encrypted with EFS
           c) create a new folder, create a new file.
               IF it throws an error, check carefully you mapped to the WebDAV and not file share
                  i.e. mapped to "http://fileserver" not "\\fileserver"
               Check that on clientpc the required efs certificate is installed. Then check carefully on clientpc what user account you specified during the map drive process. Then check on the \\fileserver this
    account exists and has the required EFS certificate installed for use. If necessary, on clientpc click START, type "Manage Network Passwords" and delete the windows credentials currently in the vault.
           d) on clientpc (through a webDAV mapped folder) open an encrypted file, edit it, save it, close it. On the \\fileserver now check that file is readable and not gobble-de-goup
           e) on clientpc copy an encrypted efs file into a folder (a webDAV mapped folder) you know is not encrypted on \\fileserver. Now check on the \\fileserver computer that the file is readable and not gobble-de-goup (ie the
    clientpc decrypted it then copied it).
            If this fails, it is likely one in IIS setting on fileserver one of the shared virtual directories is set to: "pass through authentication" when it should be set to "connect as"
            If this is not readable check step (11) and that you restarted the \\fileserver computer.
      19 Test that clients don't get the VERY annoying prompt when opening an Office or PDF doc
          a) on clientpc in windows explorer browse to a mapped folder you know is encrypted and open an office file and then PDF.
                If a prompt for user+pass then check hotfix (16)
      20 Consider setting up a recycling bin for this mapped drive, so files are sent to recycling bin not permanently deleted
          a) see the last comment at the very bottom of
    this page: 
    Points to consider:
       - NB: WebDAV runs on \\fileserver under a local user account, so double check local NTFS permissions for that local account and adjust file permissions accordingly. If the local account doesn't have permission, the webDAV / web folder share won't
    either.
      - CONSIDER: IP Security (IPSec) or Secure Sockets Layer (SSL) to protect files during transport.
    MORE INFO: HOTFIX: RAW DATA TRANSFERS
    More info on step (11) above.
    Because files remain encrypted during the file transfer and are decrypted by EFS locally, both uploads to and downloads from Web folders are raw data transfers. This is an advantage as if data is intercepted it is useless. This is a massive disadvantage as
    it can cause unexpected results. IT MUST BE FIXED or you could be in deep deep water!
    Consider using \\clientpc to access a webfolder on \\fileserver and copying an encrypted EFS file (over the network) to a web folder on \\fileserver that is not encrypted.
    Doing this locally would automatically decrypt the file first then copy the decrypted file to the non-encrypted folder.
    Doing this over the network to a web folder will copy the raw data, ie skip the decryption stage and result in the encrypted EFS file being raw copied to the non-encrypted folder. When viewed locally this file will not be recognised as encrypted (no encryption
    file flag, not green in windows explorer) but it will be un-readable as its contents are still encrypted. It is now not possible to locally read this file. It can only be viewed on the \\clientpc
    There is a fix:
          It is implimented above, see (11) above
          Microsoft's support page on this is excellent and short. Read "problem description" of "this microsoft webpage"
    Other problems + fixes
      PROBLEM: Can't find server due to network location.
         This one took me a long time to track down to "network location".
         Win 7 uses network locations "Home" / "Work" / "Public".
         If no gateway is specified in the IP address, the network is set to '"unidentified" and so receives "Public" settings.
         This is a disaster for remote file share access as typically "network discovery" and "file sharing" are disabled under "Public"
         FIX = either set IP address manually and specify a gateway
         FIX = or  force "unidentified" network locations to assume "home" or "work" settings -
    read here or
    here
         FIX = or  change the "Public" "advanced network settings" to turn on "network discovery" and "file sharing" and "Password Protected Sharing". This is safe as it will require a windows
    login to gain file access.
      PROBLEM: Deleting files on network drive permanently deletes them, there is no recycling bin
           By changing the location of "My Contacts" or similar to the root directory of your mapped drive, it will be added to recycling bin locations
          Read
    here (i've posted a batch script to automatically make the required reg files)
    I really hope this helps people. I hope the keywords + long title give it the best chance of being picked up in web searches.

    What probably happens is that processes are using those mounts. And that those processes are not killed before the mounts are unmounted. Is there anything that uses those mounts?

  • Access denied error while writing a file to the file system - myfileupload.saveas() throws system.unauthorizedexception

    hi,
    as part of my requirement , i have to perform read and  write  operations of  few files [ using the file upload control in my custom visual web part] and on submit button click.
    but while writing these files - with the help of  fileupload control - and when i use  myfileupload.saveas(mylocation);
    - i am saving these files into my D:\ drive of my server , where i am executing my code -, am getting access denied error.
    it throws system.unauthorizedexception.
    i have given full control on that folder where i was trying to store my attached files. and also  after following asp.net forums,
    i have added  iusr group added and performed all those steps such that, the file is saved in my D:\ drive.
    but unfortunately  that didnt happen.
    also
    a) i am trying the code with runwithelevatedprivileges(delegate() )  code
    b) shared the drive within the  d :drive where i want o save the files.
    c) given the full privieleges for the app pool identity- in my case , its
    network service.
    the  other strange thing is that, the same code works perfectly in  other machine, where the same sp, vs 2012  etc were installed .
    would like to know, any other changes/ steps i need to make it on this  server, where i am getting the  error.
    help is  appreciated!

    vishnuS1984 wrote:
    Hi Friends,
    I have gone through scores of examples and i am failing to understand the right thing to be done to copy a file from one directory to another. Here is my class...So let's see... C:\GetMe1 is a directory on your machine, right? And this is what you are doing with that directory:
    public static void copyFiles(File src, File dest) throws IOException
    // dest is a 'File' object but represents the C:\GetMe1 directory, right?
    fout = new FileOutputStream (dest);If it's a directory, where in your code are you appending the source file name to the path, before trying to open an output stream on it? You're not.
    BTW, this is awful:
    catch (IOException e)
    IOException wrapper = new IOException("copyFiles: Unable to copy file: " +
    src.getAbsolutePath() + "to" + dest.getAbsolutePath()+".");
    wrapper.initCause(e);
    wrapper.setStackTrace(e.getStackTrace());
    throw wrapper;
    }1) You're hiding the original IOException and replacing it with your own? For what good purpose?
    2) Even if you had a good reason to do that, this would be simpler and better:
    throw new IOException("your custom message goes here", e);
    rather than explicitly invokign initCause and setStackTrace. Yuck!

  • Subsites Access denied error

    Hi
    I am trying to access subsites in a sitecolllection.
    Although I am able to access the maintenance page with ?contents=1
    I am not able to access other existing pages nor when I create new page from pages library and click on save I get access denied error.
    Here is the error I see in Logs
    The SPPersistedObject, FarmSettingStore Name=_pnpFarmConfig_, could not be updated because the current user is not a Farm Administrator.
    And error on the page
    Security Exception             
    Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust
    level in the configuration file.            
    Exception Details: System.Security.SecurityException: Access denied.
    Source Error:
    [No relevant source lines]
    Source File: c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\5abc8088\6a71a990\App_Web_homepage.aspx_-1099170352.ltihcxjv.0.cs    Line:
    0            
    Stack Trace:
    [SecurityException: Access denied.]
    Microsoft.SharePoint.Administration.SPPersistedObject.BaseUpdate() +27672523
    Microsoft.Practices.SharePoint.Common.Configuration.FarmSettingStore.Load(SPFarm farm) +341
    Microsoft.Practices.SharePoint.Common.Configuration.SPFarmPropertyBag.get_SettingStore() +258
    Microsoft.Practices.SharePoint.Common.Configuration.SPFarmPropertyBag.Contains(String key) +51
    Microsoft.Practices.SharePoint.Common.Configuration.SPFarmPropertyBag.get_Item(String key) +65
    Microsoft.Practices.SharePoint.Common.Configuration.ConfigManager.GetProperty(Type settingType, String key, IPropertyBag propertyBag) +148
    Microsoft.Practices.SharePoint.Common.Configuration.ConfigManager.GetFromPropertyBag(String key, IPropertyBag propertyBag) +220
    Microsoft.Practices.SharePoint.Common.ServiceLocation.ServiceLocatorConfig.GetConfigData() +311
    Microsoft.Practices.SharePoint.Common.ServiceLocation.ServiceLocatorConfig.GetTypeMappings() +50
    Microsoft.Practices.SharePoint.Common.ServiceLocation.SharePointServiceLocator.CreateServiceLocatorInstance(SPSite site) +160
    Microsoft.Practices.SharePoint.Common.ServiceLocation.SharePointServiceLocator.DoGetCurrent(SPSite site) +957
    Microsoft.Practices.SharePoint.Common.ServiceLocation.SharePointServiceLocator.DoGetCurrent() +150
    Microsoft.Practices.SharePoint.Common.ServiceLocation.SharePointServiceLocator.GetCurrent() +63
    ABC..PropertyBag.Config.ConfigManager.ReadProperty(String propertyName, SPWeb web) +49
    ABC.Common.ControlTemplates.ABC.Framework.Common.GlobalSearchBox.SetSearchResultPageUrl() +228
    ABC.Common.ControlTemplates.ABC.Framework.Common.GlobalSearchBox.Page_Load(Object sender, EventArgs e) +644
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
    System.Web.UI.Control.OnLoad(EventArgs e) +132
    System.Web.UI.Control.LoadRecursive() +66
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11154599
    System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11154138
    System.Web.UI.Page.ProcessRequest() +91
    System.Web.UI.Page.ProcessRequest(HttpContext context) +240
    ASP.HOMEPAGE_ASPX__1099170352.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\5abc8088\6a71a990\App_Web_homepage.aspx_-1099170352.ltihcxjv.0.cs:0
    Microsoft.SharePoint.Publishing.TemplateRedirectionPage.ProcessRequest(HttpContext context) +175
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
     This error is in staging environment.
    Please help.
    Thank you,
    Vinay

    Hmm. This is not the normal access denied message that you would receive when you don't have permission to a site. Have you customized the page layouts to include something in it?
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • 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

  • 403 Access Denied Error

    Dear SAP Experts,
    We have an inbound scenario, which uses AS2 adapter connectivity.
    Trading Partner AS2 --> Seeburger AS2 (SAP PI 7.1)
    SAP PI uses HTTPS protocol, while Trading Partner uses HTTP protocol.
    Our trading partner is using Mozilla Firefox, and they tried pinging the inbound URL of SAP PI, but they encountered 403 Access Denied Error. They already loaded the SSL certificate of SAP PI in their server.
    Is Mozilla firefox application is not advisable for the connection?
    I've tried pinging the inbound url in public internet, and it was successful. (405 Status)
    Kindly advise.
    Thank you..
    Gerberto

    Hi Gerberto,
      Pls check the following:
    1) AS2ID of the party for you partner in PI is the correct.
    2) AS2ID of the party which is receiving messages is the correct.
    3) whether the the AS2 certificates  updated properly or not (might be cache issues) either at your end or the third party's end.
    4) the path that you mention in the Receiver/ Sender Agreement for the certoficate location might be wrong.
    the other reasons for 403 errors and eliminate one by one.
    403.1 - Execute access forbidden.
    403.2 - Read access forbidden.
    403.3 - Write access forbidden.
    403.4 - SSL required.
    403.5 - SSL 128 required.
    403.6 - IP address rejected.
    403.7 - Client certificate required.
    403.8 - Site access denied.
    403.9 - Too many users.
    403.10 - Invalid configuration.
    403.11 - Password change.
    403.12 - Mapper denied access.
    403.13 - Client certificate revoked.
    403.14 - Directory listing denied.
    403.15 - Client Access Licenses exceeded.
    403.16 - Client certificate is untrusted or invalid.
    403.17 - Client certificate has expired or is not yet valid.
    Also you can refer the following thread...
    Seeburger AS2 Sender  Adapter : http: 403 error
    Regds,
    Pinangshuk.

  • Getting access denied error while importing file using input type="file"

    Hi All,
    I am using struts application wherein I need to import file for some purpose.I have used input type="file" for the same which goes like:
    <input type="file" id="uploadFile" name="uploadFile" size="50">
    I have the import button on which I have used onClick event to call javascript function submitValues() used to validate all the fields from the page which goes like:
    <input type="button" name="select" value="Import" class="CSSButton" onClick="javascript:submitValues();">
    The JS function then in turn submits the form and calls the action.The problem is sometimes even when the correct path is specified for the file to be imported results in access denied error.This error comes sometimes and other times it works fine.But when this error comes,I need to relogin into the application and then it works fine.I am using IE7 for this.
    Any idea why I am getting access denied error while importing? Has it got something to do with IE7 version or with the input type="file" which is being used here?
    Thanks for any help if anyone can provide.
    Edited by: passionateforjava on Mar 4, 2009 2:18 AM

    vishnuS1984 wrote:
    Hi Friends,
    I have gone through scores of examples and i am failing to understand the right thing to be done to copy a file from one directory to another. Here is my class...So let's see... C:\GetMe1 is a directory on your machine, right? And this is what you are doing with that directory:
    public static void copyFiles(File src, File dest) throws IOException
    // dest is a 'File' object but represents the C:\GetMe1 directory, right?
    fout = new FileOutputStream (dest);If it's a directory, where in your code are you appending the source file name to the path, before trying to open an output stream on it? You're not.
    BTW, this is awful:
    catch (IOException e)
    IOException wrapper = new IOException("copyFiles: Unable to copy file: " +
    src.getAbsolutePath() + "to" + dest.getAbsolutePath()+".");
    wrapper.initCause(e);
    wrapper.setStackTrace(e.getStackTrace());
    throw wrapper;
    }1) You're hiding the original IOException and replacing it with your own? For what good purpose?
    2) Even if you had a good reason to do that, this would be simpler and better:
    throw new IOException("your custom message goes here", e);
    rather than explicitly invokign initCause and setStackTrace. Yuck!

  • HFM reports giving "Access Denied" error

    Hi All,
    I am in a really critical situation.
    I am getting "Access Denied" error on accessing any of HFM reports through web or FR studio...all planning reports are working fine...
    I think the DCOM settings have some problem...
    FR is not able to communicate with HFM cluster
    can anyone suggest resolution for this..
    please...thanks in advance

    Hi J,
    Follow the steps below for configuring HFM Cluster and Enabling DCOM and report back any errors or success.
    In the meantime I'll forward you on a troubleshooting guide and checklist.
    1.) Are HFM users still able to access HFM Applications?
    -David
    *Failed To Connect To HFM Application When Using Financial Reporting Studio : "Error connecting to database connection : Server/Cluster is incorrectly configured." [ID 1238573.1]* --------------------------------------------------------------------------------
    Modified 30-DEC-2010 Type PROBLEM Status PUBLISHED
    Applies to:
    Hyperion BI+ - Financial Reporting
    Information in this document applies to any platform.
    Symptoms:
    In Financial Reporting Studio, users are trying to run reports that use a HFM datasource are getting an error.
    "Error connecting to database connection [name]: Server/Cluster is incorrectly configured. Please reconfigure your Cluster or Server connection."
    Cause:
    Financial Reporting Studio is not able to locate the HFM cluster.
    Testing also determined that the HFM client could not connect to the HFM cluster.
    The HFM cluster was not correctly configured.
    Solution:
    Set up the HFM cluster on the FR Studio machine.
    1. Go to Start > All Programs > Hyperion >Financial Management >Server and Web Configuration
    2. Go to the Server/Cluster Registration tab.
    3. Enter the computer name of the HFM server used to get cluster information or the name of the single server if using a non-clustered environment. The HFM server needs to be referenced exactly as it is on the HFM server (hostname/IP/FQDN/clustername, as well as case-sensitivity for any letters).
    4. Apply and OK.
    5. Restart FR Studio.
    Important!:  Make sure that you Enable DCOM on the Server/Cluster Registration tab.
    Note:
    If HFM client is not on the FR Studio box, it will need to be installed prior to set up of the HFM cluster as listed above.
    *Run a Financial Reporting Report with a Financial Management (HFM) Data Source: Error 1001 Invalid Server Cluster [ID 754416.1]* --------------------------------------------------------------------------------
    Modified 11-FEB-2010 Type PROBLEM Status PUBLISHED
    Applies to:
    Hyperion BI+ - Version: 9.0.1.0.00 to 11.1.1.3.00 - Release: 9.0 to 11.1
    Information in this document applies to any platform.
    Symptoms:
    You receive the following error when you run a Financial Reporting report with a Financial Management data source. You receive the message in Financial Reporting Studio and in Workspace.
    "Error: 1001 error connecting to database connection. Server cluster is incorrectly configured. Please reconfigure your cluster or server connection"
    Cause:
    The Financial Reporting Reports Server, Financial Reporting Web Server, and the Financial Reporting Studio workstation must be configured against the same HFM cluster or single server. The cluster or server name must be registered with Shared Services.
    Solution:
    Verify that Financial Management configuration on the Financial Reporting Reports Server, Financial Reporting Web Server, and the local desktop match the configuration on the Financial Management servers, as follows:
    From the Start Menu, select Programs: Oracle EPM: Foundation: EPM Configurator.*
    Select Financial Management.
    Make the necessary changes on each machine so that it matches the HFM server configuration.
    *In System 9, the path is Programs: Hyperion Solutions: Foundation: Configuration Utility.
    Edited by: D2 on Jan 18, 2011 11:32 AM

  • WebPart access denied error

    I have a web part on SharePoint Portal web site default page. When I login as Administrator, the default page shows up perfect. But I will get the following error when login as users other than Administrator. Can someone help me on this issue?
    Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Windows SharePoint Services-compatible HTML editor such as Microsoft Office SharePoint Designer. If the problem persists, contact your Web server administrator.
    I recreate this error on another machine, another web site. Still administrator works fine. But all other users will get  "Access Denied" error.
    Thanks in advance,
    Peter

    Right! if the webpart is calling to something a permission level has no access to it will throw the access denied error.
    I was calling to some custom CSS with a web part. The CSS.txt file was in my Style Library.
    The issue was strange because this was a new site and for some reason my Style Library and my Site Collection Images Library had unique permissions out of the box??
    So, I tried toggling my style library back and forth from stop to start inheriting.. no dice.
    What ended up working just fine is throwing that CSS.txt file into one of the untainted libraries and updating the webpart to call for it from there (if you named them all the same it will reflect across your site).
    Would love to know why this out of the box site had unique permissions on a couple of the libraries, and then the subsequent permissions issue not changing but it is time to move on with business.
    Good Luck!

  • 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

  • DBMS_XDB.CREATEFOLDER Access denied error

    Hi,
    I am trying to create folder in XML DB using procedure call DBMS_XDB.CREATEFOLDER.
    It works fine when I run the command using PL SQL block.
    declare
    l_Bln boolean;
    begin
    l_Bln := DBMS_XDB.CREATEFOLDER('/images/themes/sfatest');
    if l_Bln then
    dbms_output.put_line('Folder Created');
    else
    dbms_output.put_line('Folder NOT Created');
    end if;
    COMMIT;
    end;
    But it gives me access denied error if I try to run the same inside a procedure.
    CREATE OR REPLACE PROCEDURE TT AS
    l_Bln boolean;
    begin
    l_Bln := DBMS_XDB.CREATEFOLDER('/images/themes/sfatest');
    if l_Bln then
    dbms_output.put_line('Folder Created');
    else
    dbms_output.put_line('Folder NOT Created');
    end if;
    COMMIT;
    end;
    exec tt;
    ORA-31050: Access denied
    ORA-06512: at "XDB.DBMS_XDB", line 316
    ORA-06512: at "SFA.TT", line 4
    ORA-06512: at line 1
    USER from which I am running this procedure has the XDBADMIN role.
    I am using Oracle 11g/ PL SQL Gateway. I don't know how to configure ACL for this situation.
    Can anyone help me please?
    Thanks
    Balaji Chellappa

    Hi
    I read through the entire documentation and followed the steps to grant the access.
    -- Granting to user SFA
    DECLARE
    r PLS_INTEGER;
    ace XMLType;
    ace_data VARCHAR2(2000);
    BEGIN
    ace_data := '<ace xmlns="http://xmlns.oracle.com/xdb/acl.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.oracle.com/xdb/acl.xsd
    http://xmlns.oracle.com/xdb/acl.xsd
    DAV:http://xmlns.oracle.com/xdb/dav.xsd">
    <principal>SFA</principal>
    <grant>true</grant>
    <privilege><all/></privilege>
    </ace>';
    ace := XMLType.createXML(ace_data);
    r := DBMS_XDB.changePrivileges('/images/themes/sfatest', ace);
    COMMIT;
    END;
    -- Granting to Public
    DECLARE
    r PLS_INTEGER;
    ace XMLType;
    ace_data VARCHAR2(2000);
    BEGIN
    ace_data := '<ace xmlns="http://xmlns.oracle.com/xdb/acl.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.oracle.com/xdb/acl.xsd
    http://xmlns.oracle.com/xdb/acl.xsd
    DAV:http://xmlns.oracle.com/xdb/dav.xsd">
    <principal>PUBLIC</principal>
    <grant>true</grant>
    <privilege><all/></privilege>
    </ace>';
    ace := XMLType.createXML(ace_data);
    r := DBMS_XDB.changePrivileges('/images/themes/sfatest', ace);
    COMMIT;
    END;
    -- sfatest ACL
    SELECT DBMS_XDB.getACLDocument('/public').getCLOBVal() FROM DUAL;
    <acl description="Read-only privileges to anonymous" xmlns="http://xmlns.oracle.com/xdb/acl.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/xdb/acl.xsd http://xmlns.oracle.com/xdb/acl.xsd" shared="false">
    <ace>
    <grant>true</grant>
    <principal>ANONYMOUS</principal>
    <privilege>
    <read-properties/>
    <read-contents/>
    <resolve/>
    </privilege>
    </ace>
    <ace>
    <grant>true</grant>
    <principal>SFA</principal>
    <privilege>
    <all/>
    </privilege>
    </ace>
    <ace>
    <grant>true</grant>
    <principal>PUBLIC</principal>
    <privilege>
    <all/>
    </privilege>
    </ace>
    </acl>
    -- sfatest privileges
    SELECT DBMS_XDB.getPrivileges('/images/themes/sfatest').getCLOBVal() FROM DUAL;
    <privilege xmlns="http://xmlns.oracle.com/xdb/acl.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/xdb/acl.xsd http://xmlns.oracle.com/xdb/acl.xsd DAV: http://xmlns.oracle.com/xdb/dav.xsd" xmlns:xdbacl="http://xmlns.oracle.com/xdb/acl.xsd" xmlns:dav="DAV:">
    <read-properties/>
    <read-contents/>
    <write-config/>
    <link/>
    <unlink/>
    <read-acl/>
    <write-acl-ref/>
    <update-acl/>
    <resolve/>
    <link-to/>
    <unlink-from/>
    <dav:lock/>
    <dav:unlock/>
    <dav:write-properties/>
    <dav:write-content/>
    <dav:execute/>
    <dav:take-ownership/>
    <dav:read-current-user-privilege-set/>
    </privilege>
    Now everyone has full control over sfatest
    But still when I try this command through procedure it fails.
    CREATE OR REPLACE PROCEDURE TT AS
    --declare
    l_Bln boolean;
    begin
    l_Bln := DBMS_XDB.CREATEFOLDER('/images/themes/sfatest/test');
    if l_Bln then
    dbms_output.put_line('Folder Created');
    else
    dbms_output.put_line('Folder NOT Created');
    end if;
    COMMIT;
    end;
    exec tt;
    ORA-31050: Access denied
    ORA-06512: at "XDB.DBMS_XDB", line 316
    ORA-06512: at "SFA.TT", line 5
    ORA-06512: at line 1
    Can any one help me please?

  • Why do I get general access denied trying to update my own field in Active Directory?

    I am trying to update a field pertaining to my own user object in Active Directory using ADSI and C++ app. The operating system
    is Windows Server 2012 Standard.
    I am able to read, I am able to call Put without problems, but when I call SetInfo, it returns with "General access denied". I have
    confirmed that it's my own user object I'm trying to access.
    I obtain my own FQDN like this:
    GetUserNameEx(EXTENDED_NAME_FORMAT::NameFullyQualifiedDN, pszFullyQualifiedDN, &dwFullyQualifiedDN);
    Then I use it like this:
    LPTSTR pszObj = (LPTSTR)LocalAlloc(LPTR, dwMemToAlloc);
    wcscpy_s(pszObj, dwMemToAlloc / sizeof(TCHAR), L"LDAP://");
    wcscat_s(pszObj, dwMemToAlloc / sizeof(TCHAR), pszFullyQualifiedDN);
    I bind to an object like this:
    ADsGetObject(pszObj, IID_IADs, (LPVOID*)&pObject);
    This call succeeds:
    pObject->Get(CComBSTR("Description"), &var);
    This call also succeeds:
    VariantClear(&var);
    V_BSTR(&var) = SysAllocString(L"Some new value");
    V_VT(&var) = VT_BSTR;
    hr = pObject->Put(CComBSTR("Description"), var);
    Trying to commit the above change using the following:
    pObject->SetInfo();
    This is where it fails.
    It returns E_ACCESSDENIED General access denied error.
    As you can see, that is my own user object I am trying to update. To my understanding that is supposed to work provided I am a member of Domain
    Users group. Which I am.
    What could possibly be the problem?

    The problem is that in Windows Server 2012 Domain Controller, permission to write to public (and personal,
    for that matter) properties is not granted to "SELF". The field I am trying to write to belongs to public properties. The only property set a user is able to change for himself in Windows Server 2012, by default, seems to be "Private-Information",
    which consists of ms-PKI-Credential-Roaming-Tokens,ms-PKI-RoamingTimeStamp, ms-PKI-DPAPIMasterKeys, ms-PKI-AccountCredentials
    Why on earth a user doesn't have permission to write to his own personal fields in Windows Server 2012 AD, Microsoft??!?!?!

Maybe you are looking for