I accessed the page protected by ADF security using direct url access attac

hi,
I played with my application which is based on SRDemo code (with added ADF security handling protection of resources) using direct url access scenarios. I was able to access a protected page as authenticated but not authorized user. I'll try to explain what I did.
There are two folders/web resources in my application, faces/folderA/* and faces/folderB/*.
roleA only is configured to access first web resource and the roleB is configured to access the second resource.
I used ADF security to authorize only roleA for page in folderA and to authorize only roleB for page in folderB.
I configured error pages in web.xml:
<error-page>
<error-code>400</error-code>
<location>faces/error/error400.jspx</location>
</error-page>
<error-page>
<error-code>401</error-code>
<location>faces/error/error401.jspx</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>faces/error/error403.jspx</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>faces/error/error404.jspx</location>
</error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>faces/error/error500.jspx</location>
</error-page>
Other config params are:
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>infrastructure/ABLogin.jspx</form-login-page>
<form-error-page>faces/error/error401.jspx</form-error-page>
</form-login-config>
</login-config>
<security-constraint>
<web-resource-collection>
<web-resource-name>AB Prototype</web-resource-name>
<url-pattern>faces/ABAbout.jspx</url-pattern>
<url-pattern>faces/ABHelp.jspx</url-pattern>
<url-pattern>faces/ABLogout.jspx</url-pattern>
<url-pattern>faces/ABWelcome.jspx</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>A</role-name>
<role-name>B</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>AZone</web-resource-name>
<url-pattern>faces/folderA/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>A</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>BZone</web-resource-name>
<url-pattern>faces/folderB/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>B</role-name>
</auth-constraint>
</security-constraint>
<filter>
<filter-name>adfBindings</filter-name>
<filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
<init-param>
<param-name>unauthorizedErrorPage</param-name>
<param-value>faces/error/error401.jspx</param-value>
</init-param>
</filter>
<filter>
<filter-name>adfFaces</filter-name>
<filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>adfBindings</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>adfBindings</filter-name>
<url-pattern>*.jspx</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>adfFaces</filter-name>
<url-pattern>*.jsp</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>adfFaces</filter-name>
<url-pattern>*.jspx</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>adfAuthentication</servlet-name>
<servlet-class>oracle.adf.share.security.authentication.AuthenticationServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
Once I authenticated as user in roleA I was trying to directly access URLs accessible only by users in roleB. In the beginning everything worked OK: I was dispatched to error401.jspx page with message Not authorized... etc.
But I kept trying to access different URLs, like http://localhost:8988/AB/faces, http://localhost:8988/AB/faces/folderB, http://localhost:8988/AB/faces/folderB/pageB.jspx, http://localhost:8988/AB
(not necessarily in that order, I played for a couple of minutes and the system would always dispatch to error401.jspx page if unauthorized attempt. But all of sudden, to my surprise, I got the pageB.jspx page while logged in as user belonging to roleA!)
Not sure how that happened but the connectedUser on pageB (#{userInfo.authenticated}) shows that I am logged in as user whose role is A.
I checked Authorization in ADF security and it is still correct: pageB is only accessible to roleB and pageA is only accessible to roleA.
I hope I made some stupid mistake in my configuration?

Hi,
ADF Security is JAAS permission based and not container managed. Note that unless you explicitly configured ADF Security you don't use ADF Security but container managed security, which is all that I can see in your configurations.
Not sure which version fo JDeveloper you use, but if you could change the following setting
<security-constraint>
<web-resource-collection>
<web-resource-name>AZone</web-resource-name>
<url-pattern>faces/folderA/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>A</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>BZone</web-resource-name>
<url-pattern>faces/folderB/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>B</role-name>
</auth-constraint>
</security-constraint>
to contain jspx file references instead of wildcards like in faces/folderB/* then what you see should no longer be possible. There was a known issue with the security settings in SRDemo that was caused by a defect in OC4J container managed security. I would expect this issue to be fixed in a more recent version of OC4J.
However, the work around until then is to protect all JSPX files in a directory instead of using wild card matches
Frank

Similar Messages

  • Accessing the Permission,Properties and Subscription tab with Direct URL.

    Hello,
    I am trying to accessing the permission tab with direct url, but i could not able to find a way to access it.
    we can access this permissions tab browsing through Details - > Settings -> Permissions , the similar way  Details - > Settings -> subscriptions.
    But i wanted to use a single(i.e direct url) which can open these tabs.
    Could you please help me on this.
    Thanks
    Best Regards
    Manoj K

    Hello,
    I have resolved this issue by myself.
    You can access the subscription interface directly using the below url.
    http://<hostname>:<port>/irj/go/km/details/documents?isp=subscription&Standalone=true&StartPage=StandaloneDetailsPage
    or
    https://<hostname>:<port>/irj/go/km/details/documents?isp=subscription&Standalone=true&StartPage=StandaloneDetailsPage
    And for the properties interface by using the below url.
    http://<hostname>:<port>/irj/go/km/details/documents?isp=properties&Standalone=true&StartPage=StandaloneDetailsPage
    For the permissions interface.
    https://<hostname>:<port>/irj/go/km/details/documents?isp=permissions&Standalone=true&StartPage=StandaloneDetailsPage

  • Filter on the reports created using DIRECT DATABASE ACCESS in obiee 10g

    How do i filter on the report that is created by using DIRECT DATABASE ACCESS in obiee 10g?
    I have reprot A with link to report B, report B is created using DIRECT DATABASE ACCESS. so it is just a table, but i need to filter out 2 columns.
    here is the query in REPORT B:
    select strm, acad_group, crse_id, class_section, count(emplid) from v_crse_enrl
    group by crse_id, strm, class_section, acad_group;
    the link in REPORT A:
    '<a target="_blank" href="'||VALUEOF("bi_link")||'Go&Path=CF_CROSS_TEACHING_LIST&ACTION=Navigate&col1=STRM&val1='||view1_DIMEN.STRM||'&col2=CLASS_SECTION&val2='||TRIM(view1_DIMEN.CLASS_SECTION)||'">' ||view1_dimen.class_id||'</a>'
    from this link to report B.
    thank you!!

    I didnt tested using url, but the same works with using presentation variables.
    To your direct sql add where clause for those two columns like WHERE col='@{col1}' and col ='@{col2}'
    and try to run from url.
    let me know updates

  • Pages in page flow, adfc-config cannot be protected by ADF security

    Hi,
    I found the pages in the page flows other than adfc-config can be protected by ADF security. For example, there is a page named welcome.jspx in adfc-config, I grant view permission only to authenticated-role. After deployed to Weblogic, I can visit the page without login. Is it a bug?
    Regards,

    Cheney,
    did you read the documentation ? http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/adding_security.htm#CHDBJEAJ
    Pages in unbounded task flows must be protected itself.
    Frank

  • Getting error while accessing the OAF forms in ADF page.

    Hi ,
    I am trying to get/access the Oracle forms on ADF page.
    I am following http://static.commit-consulting.com/oraformsfaces developers guide for guidlines.
    while runnign my page getting the error in popup look like java script error.
    the pop up contente is :
    Failed to execute java script
    Check for JavaScript errors, if the Forms server is running and if your browser can download a javaScript from http://bdc6oracle001.gdnindia.com:8005/forms/frmservlet?config=OraFormsFaces
    http://bdc6oracle001.gdnindia.com:8005/forms/frmservlet?config=OraFormsFaces is my server EBS server where oracle forms exist.
    Please help me on this.
    Thanks,
    MadhavaReddy

    You're probably better off asking the OraFormsFaces people for help

  • How to crate new user in adf security using jspx page

    how to crate new user in adf security using code in java file.plz help me this work will submited to day plz help me...

    sigh
    Search really would help and point you in the right direction. You'd find [url http://forums.oracle.com/forums/thread.jspa?messageID=4584464]this, for example.

  • Is there any way to access the pages templates that were there six months ago. The one I used for my recipes is not there.

    Is there any way to access the Pages app templetes that were there six months ago? The one I used for my recipes is no longer there.

    What was the name of the recipe template?
    Or was it one you created yourself.
    It helps when you tell us that you upgraded both your OS and Pages, which it appears you have done.
    Possibly even changing your Mac or iOS device. Which is it btw?
    Probably you have a new Pages which has only a fraction of the templates, because it has a fraction of the features.
    Peter

  • Cannot access the page

    Cannot access the page to purchase the creative cloud plan on macbook pro. tried everything but won't open. please help

    Hi hokhevi zhimomi,
    Please provide the below mentioned information so that we can assist you appropriately.
    Browser name and version:
    Mac OS version:
    Kindly try the below suggestions.
        1. Try different browser.
        2. Try different device/machine.
        3. Try different network.
    Thanks,
    Atul Saini

  • Session expired (timeout) without ADF Security using.

    Hello!
    I have a problem with my application in which i use own security realization without ADF Security using. I realized custom implementation of javax.servlet.http.HttpSessionListener interface, in which i log session creation and expiration events. On WebLogic I realized customDBMS authentification class. Session timeout defined in web.xml (<session-timeout>5</session-timeout>), in weblogic.xml session timeout not define.
    Problem description: when session expired (popup warning displayed before this) and press OK button in popup with session expired warning, I see what no any log about session destroying from my HttpSessionListener implementation, so I cant understand, what session expired and process this event in my servlet filter. So I stay at same page (but without data in tables, coz binding variables in VO queries is not defined). If I am not click OK in the popup and wait about minute, then appear a log message about the destroying the session from my HttpSessionListener implementation. Why is the delay between the appearance of warning session expired and the actual destroying of the session in WebLogic?
    I use JDeveloper 11.1.1.6.0, application deployed in integrated WebLogic 10.3.5.0

    Hi,
    Why is the delay between the appearance of warning session expired and the actual destroying of the session in WebLogic?Because warning is given about 2-3 min before session expire
    That is why
    If I am not click OK in the popup and wait about minute, then appear a log message about the destroying the session from my HttpSessionListener implementation.

  • ADF Security using sqlauthenticator issue unable to login

    Hi,
    AM using jdev 11.1.2.3
    I followed these blogs to configure adf security using sql authenticator
    http://biemond.blogspot.in/2008/12/using-database-tables-as-authentication.html
    http://hazem-adf-tips.blogspot.in/2012/06/adf-security-database-authentication.html
    am unable to login.. I can able to see the users and roles in WL admin console. When i am giving the user credentials it is redirecting to error page saying unauthorized .
    plz can anybody help me out from this issue.
    Thanks,
    Nitesh

    HI Timo,
    I have created application roles admin and user. Unable to create enterprise role with same name. When i am trying to map application role with enterprise role it is not displaying in mapping window..
    The following log message
    Removing existing role admin
    creating new role admin.
    with this it is recreating the new role and role id gets change when ever i m restarting my server and deploying the application..
    Thanks,
    Nitesh

  • The process cannot access the file because it is being used by another proc

    We are exporting crystal reports into PDF using  ExportToHttpResponse (code snippet below)
          // Getting the type of the report file which has been selected by the user. (which will be REPORT CLASS type)
    Type objType = Type.GetType("WebApplication1.Reports." + ReportName);
    ReportClass SEPREport = (ReportClass)Activator.CreateInstance(objType);
    // GetTypedDataSet()returns an instance of typed data set.
    SEPREport.SetDataSource(GetTypedDataSet());
    SEPREport.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, ReportName );
    Now we have created these REPORTS using Basic Crystal Report 10.5, which comes bundled with Visual Studio 2008 and .Net Framework 3.0.
    Now on our machines, we have never experienced any issues.
    BUT on the DEV server (web server) which has .net Framework 3.0 and in its GAC its has CRYSTAL DLLs version 11.5 (required to create an Object of ReportClass and its related functions) ; sometimes we get the following error while exporting crystal report to pdf:
    The process cannot access the file because it is being used by another process. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Runtime.InteropServices.COMException: The process cannot access the file because it is being used by another process.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [COMException (0x80004005): The process cannot access the file because it is being used by another process.
       CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) +0
       CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +525
       CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +681
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options) +105
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportOptions options, HttpResponse response, Boolean asAttachment, String attachmentName) +163
       CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportFormatType formatType, HttpResponse response, Boolean asAttachment, String attachmentName) +132
       MSSB.FATools.UI.PlannerReport.CreatePDFDocument() +732
       MSSB.FATools.UI.PlannerReport.btnCreatePDF_Click(Object sender, EventArgs e) +45
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +104
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5615

    A bit of a confusion on my part;
    Now we have created these REPORTS using Basic Crystal Report 10.5, which comes bundled with Visual Studio 2008 and .Net Framework 3.0. Now on our machines, we have never experienced any issues.
    Going by the above, you should have references to CR assemblies of version 10.5.3700 only. No other references.
    Now, looking at this paragraph:
    BUT on the DEV server (web server) which has .net Framework 3.0 and in its GAC its has CRYSTAL DLLs version 11.5 (required to create an Object of ReportClass and its related functions) ; sometimes we get the following error while exporting crystal report to pdf:
    I wonder what runtime was deployed to the server. E.g.; if you are using CR 10.5, your assemblies will be 10.5.3700 and you should be deploying the following runtime (depending on 32 bit / 64 bit, etc.):
    CRRedist2008_ia64.msi
    https://smpdl.sap-ag.de/~sapidp/012002523100006255262008E/CRRedist2008_ia64.zip
    CRRedist2008_x64.msi
    https://smpdl.sap-ag.de/~sapidp/012002523100006255272008E/CRRedist2008_x64.zip
    CRRedist2008_x86.msi
    https://smpdl.sap-ag.de/~sapidp/012002523100009351342008E/CRBasicVS2008_redist_x86.zip
    One way to check on what is actually loading is to use the [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] utility.
    - Ludek

  • Network Error: Clean Access Server could not establish a secure connection to Clean Access Manager

    Hello everyone
    I am implementing a failover solution of NAC in OOB VG version 4.8, I have 2 CAS and 2 CAM.
    The Error I am getting is when I connect to both IP address and the FQDN of the CAS.
    ===========
    Network Error:
    Clean Access Server could not establish a secure connection to Clean Access Manager at camsrv3.cadivi.gob.ve.
    This could be due to one or more of the following reasons: 1) Clean Access Manager certificate has expired 2) Clean Access Manager certificate cannot be trusted or 3) Clean Access Manager cannot be reached.
    Please report this to your network administrator.
    ==========
    For the CAM's I use this names camsrv1 and camsrv2. then generate a CSR in the camsrv1 with the name camsrv3.mycompany.com corresponding  to virtual ip and it exported to camsrv2, Install the CA certificate of the company and everything works perfect.
    This is the failover configuration
    CAM:
    Primary:     10.1.206.248 camsrv1.mycompany.com
    Secondary: 10.1.206.249 camsrv2.mycompany.com
    Virtual:       10.1.206.250 camsrv3.mycompany.com
    Then I do exactly the same steps for the CAS's and this is the failover configuration:
    Primary:     10.1.216.248 cassrv1.mycompany.com
    Secondary: 10.1.216.249 cassrv2.mycompany.com
    Virtual:       10.1.216.250 cassrv3.mycompany.com
    Then I add the certificate of CAM in the CAS on the tab "Trusted Certificate Authorities"  and vice versa.
    The communication between all the CAM´s and CAS´s is correct (Primary, Secondary and Virtual). I can ping the IP and the FQDN and I can also manage the CAS through the CAM.
    I verify that the time was right in the CAM and the CAS and all good up there.
    Appreciate your help
    Eduardo Navas

    Eduardo,
    Bump up the CAS/CAS communications logging on both the CAS and CAMs, and then look in the log files for clues.
    On CAM they live in /perfigo/control/tomcat/logs and on CAS in /perfigo/access/tomcat/logs
    HTH,
    Faisal
    If you find this post helpful, please rate so others can find the answer easily

  • While deleting the virtual machine .vhd folder -- error msg : the process cannot access the file beacuse it is being used by another process

    When i am trying to delete the Virtual Machine folder/directory i get the below error. Virtual machine is turned off
    V:\>rmdir ME-EXCAS01 /s
    ME-EXCAS01, Are you sure (Y/N)? y
    ME-EXCAS01\ME-EXCAS01\Virtual Machines\1B1FD14E-B3F0-4232-9F96-2A871E879CD6.xml
    - The process cannot access the file because it is being used by another process
    How to delete the whole folder ?
    Thanks

    Also, if your VM has snapshots and you delete it, you must wait for the snapshots to finish merging - the VHD files will be locked until then.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

  • I cant figure out what is wrong i keep getting this an OIEception that says "{"The process cannot access the file because it is being used by another process."}

    I am trying to move a file from a folder to another folder.
    here is my code:
    //storage of the all files
    string[] folderContentNames = Directory.GetFiles(@"C:\Users\Jonah\Desktop\Test Pictures");
    private void historyPictureBox_Click(object sender, EventArgs e)
    destinationFile = @"C:\Users\Jonah\Desktop\Test Test";
    File.Move(folderContentNames[1], destinationFile);
    updateListBoxFileName();
    updateImageBox();
    each time I hit the bolded underlined part I get that error message.
    if you need anything else just ask.
    Thanks in advance,
    Thor Orb

    Hi Thor,
    If you want to move a file from a folder to another folder, I think you could get the sourcePath and TargetPath. The code below shows a simple demo:
    string[] folders = Directory.GetFiles(@"D:\Test\VSC#\01\WindowsFormsApp\WindowsFormsApp\Test");
    string desFile =Path.Combine( @"D:\Test\VSC#\01\WindowsFormsApp\WindowsFormsApp\Test - Copy\"+Path.GetFileName(folders[1]));
    File.Move(folders[1], desFile);
    In addition, the link below might be useful to you:
    # How to: Copy, Delete, and Move Files and Folders (C# Programming Guide)
    >> The process cannot access the file because it is being used by another process
    The message seemed that the file was opened in other process. Did you operate the file with other code?
    I think you could check if the files and the folders were opened, and review your codes if they were used in other places.
    If you have any further questions, please feel free to post in this forum.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.
    Ya, Thanks I figured about the path and destation. yes I am using the file in another area, the file is an image jpg and I am displaying it in a picture box. Now I have been doing a little research I see a command called Dispose() and this is suppose to
    release the handle on the image, but I can seem to figure out have to use it correctly.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Collections;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.IO;
    namespace Scanned_Picture_Ogranizer
    public partial class Form1 : Form
    //storage of the all files
    string[] folderContentNames = Directory.GetFiles(@"C:\Users\Jonah\Desktop\Scan Project Testing\Test Pictures", "*.jpg");
    //List<string> folderContentList = folderContentNames.ToList();
    private List<string> folderContentList = new List<string>();
    Bitmap currentImage;
    Bitmap placeHolder;
    public Form1()
    InitializeComponent();
    convertingArrayToList();
    startUpData();
    string sourceFile = @"C:\Users\Jonah\OneDrive\My Programming Projects\Scanned Picture Organizer Project\Test Pictures";
    string destinationFile = "";
    private void moveButton_Click(object sender, EventArgs e)
    private void startUpData()
    //placeHolder = new Bitmap(folderContentList[0]);
    //currentImage = (Bitmap)placeHolder.Clone();
    // Image loadImage = new Bitmap(pictureClones[0]);
    // currentFilePictureBox.Image = loadImage;
    int numberOfFilesLeft = folderContentNames.Length;
    foreach (string name in folderContentNames)
    fileNamesListBox.Items.Add(name);
    fileNameTextBox.Text = folderContentNames[0];
    numberOfFilesLeftTextBox.Text = numberOfFilesLeft.ToString();
    ///loadImage.Dispose();
    //FileStream currentImage = new FileStream(folderContentList[0], FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
    private void convertingArrayToList()
    foreach (string listName in folderContentNames)
    folderContentList.Add(listName);
    private void selectingImageFromListBox()
    private void updateImageBox()
    Bitmap currentImage = new Bitmap(folderContentList[0]);
    currentFilePictureBox.Image = currentImage;
    currentImage.Dispose();
    private void updateListBoxFileName()
    fileNamesListBox.Items.RemoveAt(0);
    fileNameTextBox.Text = folderContentList[0];
    // numberOfFilesLeftTextBox.Text = numberOfFilesLeft.ToString();
    private void historyPictureBox_Click(object sender, EventArgs e)
    destinationFile = @"C:\Users\Jonah\Desktop\Scan Project Testing\Test Test\";
    File.Move(folderContentList[0], destinationFile + System.IO.Path.GetFileName(folderContentList[0]));
    folderContentList.RemoveAt(0);
    updateImageBox();
    updateListBoxFileName();
    when I first start the program the first picture displays, but when I trigger historyPictureBox_Click(), it does that error again. Another things is that I already looked at that link and it didn't help.
    I just super confused, I would like your help on this.
    Thanks,
    Thor Orb

  • Backup stopped before completing. The process cannot access the file because it is being used by another process

    I am working with a client who is attempting to backup to a NAS device 
    The device is a linksys NSS6000 (Cisco device).
    It’s a dual 1Gbit LAN device that supports CIFS / FTP and NFS transfers. It has only 1Gbit lan connected.
    The device has 4 *  500 gb sata drives in raid 1  attached.
    Cables go from cat 5 to fiber back to cat5. (The NAS  is located at a neighboring office) The switches are 1gbit.
    Server is a win2k8r1 fully up to date.
    When backing up to the NAS device, the following error occurs:
    Running backup of volume Local Disk(D:), copied (86%).
    Running backup of volume Local Disk(D:), copied (90%).
    Running backup of volume Local Disk(D:), copied (94%).
    Running backup of volume Local Disk(D:), copied (98%).
    Backup of volume Local Disk(D:) completed successfully.
    Backup stopped before completing.
    Summary of backup:
    Backup stopped before completing.
    The process cannot access the file because it is being used by another process.
    If we redirect the backup to a folder on a 2008 share, the backup completes successfully.
    Only when backing up to the linksys NSS6000 does the error occur.
    No other backup processes are writing to the NAS device so I can't understand why the process thinks the file is
    being used by another process.
    One thing we did notice that when the backup to the NAS device occurs, throughput is about 150 mbit average
    On the 2008 server shares we successfully backup to, the through put is 500 mbit.  Not sure if that is important, but
    might be worth mentioning.
    The following event log entry was noted at the end of the backup.
    The description for Event ID '519' in Source 'Microsoft-Windows-Backup' cannot be found. 
    The local computer may not have the necessary registry information or message DLL files to display the message,
    or you may not have permission to access them.  The following information is part of the
    event:'2009-05-12T10:13:31.617Z', '', '2147942432', '%%2147942432'
    Any ideas?
    Thanks..Michael

    I am also seeing the same problem backing up nightly to a brand new NAS device (WD My Book Live)
    All the error codes are the same as those in this thread.
    From Windows Event Viewer:
    The backup operation that started at '‎2011‎-‎03‎-‎25T06:00:19.811302700Z' has failed with following error code '2147942432' (The process cannot access the file because it is being used by another process.). Please review the event details
    for a solution, and then rerun the backup operation once the issue is resolved.
    Fault bucket 659897467, type 5
    Event Name: WindowsBackupFailure
    Response: Not available
    Cab Id: 0
    Problem signature:
    P1: Backup
    P2: 6.1.7600
    P3: 0x80070020
    P4: 7
    P5:
    P6:
    P7:
    P8:
    P9:
    P10:
    Attached files:
    C:\Windows\Logs\WindowsBackup\WindowsBackup.1.etl
    These files may be available here:
    C:\ProgramData\Microsoft\Windows\WER\ReportArchive\NonCritical_Backup_6957d65de91fc4a853ecc7c78914bf7351fff0d1_14578325
    Analysis symbol:
    Rechecking for solution: 0
    Report Id: dd480bf2-56a6-11e0-ae81-00217099bf56
    Report Status: 0
    From Report.wer  in  C:\ProgramData\Microsoft\Windows\WER\ReportArchive\NonCritical_Backup_6957d65de91fc4a853ecc7c78914bf7351fff0d1_14578325
    Version=1
    EventType=WindowsBackupFailure
    EventTime=129455071508181139
    Consent=1
    UploadTime=129455071508201140
    ReportIdentifier=dd480bf2-56a6-11e0-ae81-00217099bf56
    Response.BucketId=659897467
    Response.BucketTable=5
    Response.type=4
    Sig[0].Name=Operation
    Sig[0].Value=Backup
    Sig[1].Name=AppVer
    Sig[1].Value=6.1.7600
    Sig[2].Name=HRESULT
    Sig[2].Value=0x80070020
    Sig[3].Name=TargetType
    Sig[3].Value=7
    DynamicSig[1].Name=OS Version
    DynamicSig[1].Value=6.1.7600.2.0.0.256.48
    DynamicSig[2].Name=Locale ID
    DynamicSig[2].Value=1033
    State[0].Key=Transport.DoneStage1
    State[0].Value=1
    State[1].Key=DataRequest
    State[1].Value=Bucket=659897467/nBucketTable=5/nResponse=1/n
    FriendlyEventName=WindowsBackupFailure
    ConsentKey=WindowsBackupFailure
    AppName=Windows host process (Rundll32)
    AppPath=C:\Windows\System32\rundll32.exe
    ReportDescription=Windows Backup failure

Maybe you are looking for

  • Pages '08 will not open .doc documents after upgrading to Mavericks

    Since updating to Mavericks Pages '08 will not open .doc documents even when created with Pages.

  • Open PDF from a folder of changing files

    My client wants to give CDRoms to people but he wants to be able to put different PDF files on each one. I can open a PDF with no problem, what I can't do is get Director to recognise a folder of PDF files that is ever changing, and be able to open i

  • How can I sort my iTunes library by filename?

    Before I started using iTunes, I invested lots of time renaming my music files so that they'd sort into just the order I wanted so I could find things easily. I'm not finding a way to get the filename into the heading of my library so I can sort on i

  • Group report without repeating group value

    I am trying to format my report that breaks by department like this: Dept ID Employee 1____1___BoB _____2___Mike _____3___John 2____4___Tim I don't want the 'Dept' field to repeat every line. Only where it is changed. I tried this, but ut shows the v

  • FCP export problem w/ graphics

    Hi everyone, I have had a reoccurring problem with my latest FCP projects when I export them through Compressor to DVDSP. My opening title is centered on the screen; my closing title is left justified. Everything is rendered and looks fine in FCP but