Access Denied to windowClosing

Hi,
I have written a Java application that runs perfectly well under windows XP
i then tried to compile it using javac at the command prompt on windows98 and got an access denied: windowClosing error.
Any ideas as to how to fix?
will provide more information if needed.
Many Thanks

and the code is:
import javax.swing.*;
import javax.swing.ImageIcon;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import java.util.ArrayList;
import java.io.*;
* Main GUI Window
* For TimeCost
* Created:
* Alex Kilgour
* 2004
public class gui extends JFrame implements ActionListener, HomeEventListener {
// INSTANCE VARIABLES
     JPanel buttonPanel = new JPanel();
     GridBagLayout gridbag = new GridBagLayout();
     GridBagConstraints c = new GridBagConstraints();
     JScrollPane main;
     String password;
     newRecords newrec;
     home homeoptions;
     createClientRecord createCR;
     createJobRecord createJR;
     enterFeeAccounts enterFA;
     enterSettlement enterS;
     enterTimesheet enterTS;
     enterDisbursement enterD;
     chargeTime chargeT;
     chargeDisbursements chargeD;
     staff staffFrame;
     changeExisting changeExist;
     amendTimeCost amend;
     Container cont;
     JButton ok, cancel, menu, exit, staff, print, amendTC, changePass;
     String currentView;
     String url = "jdbc:odbc:DRIVER=Microsoft Access Driver (*.mdb);DBQ=client.mdb;PWD=mypass";
     Connection con;
     Statement stmt;
public gui() {
     try {
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
     } catch(java.lang.ClassNotFoundException e) {
          JOptionPane.showMessageDialog(this, "Database drivers not found!" + "\n" + "Details:" + "\n"+ e.getMessage(), "Warning", JOptionPane.WARNING_MESSAGE);
     setTitle("TimeCost - Time and Disbursement Control System"); // set the frame title
     setSize(850,550);
     setResizable(false);
     setVisible(true);
     setBackground(new Color(204,204,204));
     // create a OK Button
     ok = new JButton("OK");
     ok.setActionCommand("ok");
     ok.setEnabled(false);
     ok.setMnemonic(KeyEvent.VK_O); // Alt + O
     ok.setFont(new Font("null", Font.PLAIN, 14));     
     ok.setToolTipText("Confirm these actions and proceed");
     ok.addActionListener(this);
     // create a Cancel Button
     cancel = new JButton("Cancel");
     cancel.setActionCommand("cancel");
     cancel.setEnabled(false);
     cancel.setMnemonic(KeyEvent.VK_C); // Alt + C
     cancel.setFont(new Font("null", Font.PLAIN, 14));     
     cancel.setToolTipText("Cancel these actions and return to previous screen");
     cancel.addActionListener(this);
     // create a Main Menu Button
     menu = new JButton("Main Menu");
     menu.setActionCommand("menu");
     menu.setEnabled(false);
     menu.setMnemonic(KeyEvent.VK_M); // Alt + M
     menu.setFont(new Font("null", Font.PLAIN, 14));     
     menu.setToolTipText("Return to opening screen");
     menu.addActionListener(this);
     // create a Staff Button
     staff = new JButton("Staff");
     staff.setActionCommand("staff");
     staff.setEnabled(true);
     staff.setMnemonic(KeyEvent.VK_S); // Alt + S
     staff.setFont(new Font("null", Font.PLAIN, 14));     
     staff.setToolTipText("Setup the members of staff");
     staff.addActionListener(this);
     // create a Amend Button
     amendTC = new JButton("Amend Rates");
     amendTC.setActionCommand("amend");
     amendTC.setEnabled(true);
     amendTC.setMnemonic(KeyEvent.VK_A); // Alt + A
     amendTC.setFont(new Font("null", Font.PLAIN, 14));     
     amendTC.setToolTipText("Amend time and cost rates");
     amendTC.addActionListener(this);
     // create a Print Button
     print = new JButton("Print");
     print.setActionCommand("print");
     print.setEnabled(false);
     print.setMnemonic(KeyEvent.VK_P); // Alt + P
     print.setFont(new Font("null", Font.PLAIN, 14));     
     print.setToolTipText("Print the current generated information");
     print.addActionListener(this);
     // create a ChangePass Button
     changePass = new JButton("Password");
     changePass.setActionCommand("pass");
     changePass.setEnabled(true);
     changePass.setMnemonic(KeyEvent.VK_P); // Alt + P
     changePass.setFont(new Font("null", Font.PLAIN, 14));     
     changePass.setToolTipText("Change the password used to access some areas of the program");
     changePass.addActionListener(this);
     // create a Exit Button
     exit = new JButton("Exit TimeCost");
     exit.setActionCommand("exit");
     exit.setEnabled(true);
     exit.setMnemonic(KeyEvent.VK_E); // Alt + E
     exit.setFont(new Font("null", Font.PLAIN, 14));     
     exit.setToolTipText("Exit the timecost program");
     exit.addActionListener(this);
     buttonPanel.setLayout( new BoxLayout(buttonPanel, BoxLayout.X_AXIS) );
     buttonPanel.setBorder(BorderFactory.createEmptyBorder(15,0,15,0));     
     buttonPanel.setBackground(Color.LIGHT_GRAY);
     buttonPanel.add(Box.createHorizontalGlue());     
     buttonPanel.add(ok);
     buttonPanel.add(Box.createRigidArea(new Dimension(3,0)));
     buttonPanel.add(cancel);
     buttonPanel.add(Box.createRigidArea(new Dimension(3,0)));
     buttonPanel.add(print);
     buttonPanel.add(Box.createRigidArea(new Dimension(3,0)));
     buttonPanel.add(menu);
     buttonPanel.add(Box.createRigidArea(new Dimension(30,0)));     
     buttonPanel.add(staff);
     buttonPanel.add(Box.createRigidArea(new Dimension(3,0)));
     buttonPanel.add(amendTC);
     buttonPanel.add(Box.createRigidArea(new Dimension(3,0)));
     buttonPanel.add(changePass);
     buttonPanel.add(Box.createRigidArea(new Dimension(30,0)));
     buttonPanel.add(exit);     
     buttonPanel.add(Box.createHorizontalGlue());
     // create a JLabel that displays the ********* Logo
     ImageIcon icon = new ImageIcon("***.png", "****** Logo");
     JLabel label = new JLabel(icon);
     label.setBackground(new Color(204,204,204));
     label.setBorder(BorderFactory.createEmptyBorder(8,8,8,8));
     label.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
     label.setVerticalAlignment(javax.swing.SwingConstants.CENTER);
     label.setVisible(true);
     // create the Panels
     homeoptions = new home();
     newrec = new newRecords();
     createCR = new createClientRecord();
     createJR = new createJobRecord();
     enterFA = new enterFeeAccounts();
     enterS = new enterSettlement();
     enterTS = new enterTimesheet();
     enterD = new enterDisbursement();
     chargeT = new chargeTime();
     chargeD     = new chargeDisbursements();
     changeExist = new changeExisting();
     amend = new amendTimeCost();
     amend.setVisible(false);
     staffFrame = new staff();
     staffFrame.setVisible(false);
     // add Listeners
     homeoptions.addHomeListener(this);
     newrec.addHomeListener(this);
     createCR.addHomeListener(this);
     createJR.addHomeListener(this);
     enterFA.addHomeListener(this);
     enterS.addHomeListener(this);
     enterTS.addHomeListener(this);
     enterD.addHomeListener(this);
     chargeT.addHomeListener(this);
     chargeD.addHomeListener(this);
     changeExist.addHomeListener(this);
     // add the mainPane to a JScrollpane
     main = new JScrollPane(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
               JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
     main.setViewportView(homeoptions);
     main.setBackground(new Color(204,204,204));
     main.setBorder(BorderFactory.createEmptyBorder(8,8,8,8));
     // create a Container for the JFrame
     cont = getContentPane();
cont.setLayout(new BorderLayout());
cont.setBackground(new Color(204,204,204));
cont.add(label, BorderLayout.NORTH);
cont.add(main, BorderLayout.CENTER);
     cont.add(buttonPanel, BorderLayout.SOUTH);
     // get the password
     File file = new File("pw.ser");
     if(file.exists()){
          ObjectInput input = null;
     try{
          //use buffering
          InputStream filein = new FileInputStream( "pw.ser" );
          InputStream buffer = new BufferedInputStream( filein );
          input = new ObjectInputStream ( buffer );
          //deserialize the List
          password = (String)input.readObject();           
     } catch(IOException ex){
          JOptionPane.showMessageDialog(this, "Cannot perform setup operation."+"\n"+"Details:"+"\n"+ex.getMessage(), "Warning", JOptionPane.WARNING_MESSAGE);
     } catch (ClassNotFoundException ex){
          JOptionPane.showMessageDialog(this, "Unexpected class found upon input."+"\n"+"Details:"+"\n"+ex.getMessage(), "Warning", JOptionPane.WARNING_MESSAGE);
     } // end catch
     finally{
          try {
          if ( input != null ) {
               //close "input" and its underlying streams
               input.close();
          } // end if
          } catch (IOException ex){                  
          JOptionPane.showMessageDialog(this, "Cannot Close Input Stream."+"\n"+"Details:"+"\n"+ex.getMessage(), "Warning", JOptionPane.WARNING_MESSAGE);
          } // end catch
     } // end finally
     } else {
          password = "";                     
     // Add Window Listener to the JFrame
     addWindowListener(new WindowAdapter() {
     public void windowClosing(WindowEvent e) {
          int n = JOptionPane.showOptionDialog(null,
"Are you sure you wish to close the TimeCost program \n"+
"Any unconfirmed changes will not be saved \n"+
"Exit TimeCost?",
" Exit TimeCost",
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE,
null, null, null);
if (n == JOptionPane.YES_OPTION) {
     System.exit(0);
} else if (n == JOptionPane.NO_OPTION) {
     return;
} // end window closing
     this.validate();
     this.setLocationRelativeTo( null ); // put in centre of screen     
} // end gui Constructor
// code removed
// Main Method
static public void main (String args[]) {
     try{
          UIManager.setLookAndFeel(
               "javax.swing.plaf.metal.MetalLookAndFeel");
     } catch (Exception e){}
     JFrame.setDefaultLookAndFeelDecorated(true);
     JDialog.setDefaultLookAndFeelDecorated(true);
gui frame = new gui();
frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);     
} // end main method
} // end of gui Class

Similar Messages

  • Access denied when Runtime.getRuntime().exec

    I have an applet that opens a JFrame.
    In the JFrame I have a JButton, when I click the button I want a browser to open with a specific website.
    This doesn't work.
    When I look in the cmd-prompt it says:
    "java.security.AccessControlException: access denied (java.io.FilePermission C:\Program execute)"
    What have I done wrong? Do I have to change the security settings? Where do I that?
    class KnappListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
    frame2 = new JFrame(e.getActionCommand());
    frame2.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {System.exit(0);}});
    String website = new String("http://www.microsoft.com");
    try {
    Runtime.getRuntime().exec("C:\\Program Files\\Internet Explorer\\IEXPLORE.exe"+website);
    //Runtime.getRuntime().exec("cmd/C"+"start.exe"+website);
    catch (IOException io) {}
    }

    it doesn't matter which class your program extends. if your program is an applet (running in a browser) it is not permitted to use Runtime.getRuntime().exec(). If your program is an application, it is allowed to do so.
    I think there is a way for applets to get the permission through a policy, but I don't know how to do this.

  • Report generation failed----​error code:-1720​5; Access Denied.

    Hi, All
        i have a trouble about report generation.it seems the error happened at the "write UUT report"--this step is teststand report generation'DLL.
        detail:
        An error occurred calling 'Save' in 'Report' of 'NI TestStand 2010 SP1 API'
    Access Denied.. Error writing to file 'D:\program\seq\xxx.xml'.
    The file might be open in another application. If file access is intermittently denied, you should try disabling the Microsoft FindFast utility. 
        error code:-17205; Access Denied.
        locationtep 'Write UUT Report' of sequence 'Single Pass' in 'SequentialModel.Seq'
        How to fix it?
        Thanks a lot.
    BR

    Hm, it looks like the file might be open in another application. If you see that file accesss is intermittently denied, you should try disabling the Microsoft FindFast utility.
    CTA, CLA, MTFBWY

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

  • The system failed to merge, error code : General Access denied

    The system failed to merge, error code : General Access denied. Could anyone help me on this

    Hi,
    It could be several things, I think it could be a good start with the following page:
    https://blogs.technet.com/b/chrad/archive/2009/10/02/differencing-disks-merging-80070005-error-just-one-persons-lesson-learned.aspx
    If that doesn't help you could check out the following technet page to see if it is a permission problem. (it is not exactly  the same problem but one of our customers once had the same problem and we solved it with the follwing KB:http://support.microsoft.com/kb/2249906/en-us
    Hope this helps you out.

  • Folder Redirection 502 Access Denied but redirecting to wrong place

    Hi,
    I have come across a very unusual problem.  Folder redirection was implemented a few months ago where a number of folders were redirected with the following settings:
    Redirect everyones folder to the same location
    Create a folder for each user under the root path
    \\server\homefolders
    It has worked flawlessly but in recent weeks when we create new users, some of them experience this problem.  Folder redirection fails consistently for that user with 502 Access denied.  That isn't the unusual bit.  This is the unusual bit
    - The message is:
    Failed to apply policy and redirect folder "Documents" to "\\fileserver\homefolders\joe.bloggs\Documents".
    Redirection options=0x1001.
    The following error occurred: "Failed to build the list of regular subdirectories under "\\fileserver\homefolders\Jane.Doe\Documents".".
    Error details: "Access is denied.
    Yes for some reason it knows where it should be redirecting to, but then attempts to redirect to someone elses home folder location.  I've substituted the server name and user names for security but the name equivalent to Jane.Doe is consistent in every
    error.
    This only occurs on our RDS 2012 R2 farm, which has 3 session hosts and doesn't happen on any other system.  We use roaming profiles.  I have logged the user off and deleted the local and network profiles but get the same result.  I've
    rebuilt the GPO that handles folder redirection, but again, same result.  I've checked and double checked Folder Redirection settings and nothing points to a this specific Jane.Doe user.
    Anyone come across this before?

    Hi,
    I have come across a very unusual problem.  Folder redirection was implemented a few months ago where a number of folders were redirected with the following settings:
    Redirect everyones folder to the same location
    Create a folder for each user under the root path
    \\server\homefolders
    It has worked flawlessly but in recent weeks when we create new users, some of them experience this problem.  Folder redirection fails consistently for that user with 502 Access denied.  That isn't the unusual bit.  This is the unusual bit
    - The message is:
    Failed to apply policy and redirect folder "Documents" to "\\fileserver\homefolders\joe.bloggs\Documents".
    Redirection options=0x1001.
    The following error occurred: "Failed to build the list of regular subdirectories under "\\fileserver\homefolders\Jane.Doe\Documents".".
    Error details: "Access is denied.
    Yes for some reason it knows where it should be redirecting to, but then attempts to redirect to someone elses home folder location.  I've substituted the server name and user names for security but the name equivalent to Jane.Doe is consistent in every
    error.
    This only occurs on our RDS 2012 R2 farm, which has 3 session hosts and doesn't happen on any other system.  We use roaming profiles.  I have logged the user off and deleted the local and network profiles but get the same result.  I've
    rebuilt the GPO that handles folder redirection, but again, same result.  I've checked and double checked Folder Redirection settings and nothing points to a this specific Jane.Doe user.
    Anyone come across this before?

  • I keep getting this error in Dreamweaver when I am trying to upload my website?  Can you tell me what I am doing wrong?  here is the error message: /html - error occurred - Unable to create remote folder /html.  Access denied.  The file may not exist, or

    I keep getting this error in Dreamweaver when I am trying to upload my website?  Can you tell me what I am doing wrong?  here is the error message: /html - error occurred - Unable to create remote folder /html.  Access denied.  The file may not exist, or there could be a permission problem.   Make sure you have proper authorization on the server and the server is properly configured.  File activity incomplete. 1 file(s) or folder(s) were not completed.  Files with errors: 1 /html

    Nobody can tell you anything without knowing exact site and server specs, but I would suspect that naming the folder "html" wasn't the brightest of ideas, since that's usually a default (invisible) folder name existing somewhere on the server and the user not having privileges to overwrite it.
    Mylenium

  • SharePoint 2010 - Claims Based Authentication - Access Denied for AD Group members

    We're in the process of migrating our SharePoint 2003 system to 2010 and have used Metavis to migrate the data. We had to do the data migration in a lab environment and then move/attach the content database to our production server. The database attached successfully
    and I, as a site collection administrator, can see all sites and the data therein. We are using claims-based auth with ADFS 2.0 as the provider.
    My users, however, get access denied trying to go anywhere on the site. I have added the Active Directory groups to the appropriate SharePoint groups and have confirmed the groups are appearing with the c:0-.t|adfs|group_name syntax. If I add them as individual
    users (i:05.t|adfs|[email protected]) they can authenticate fine, but not by AD group membership.
    I enabled ADFS tracing and I see that the claim being provided includes the SIDs for all the groups the user belongs to. Using ULS Viewer I can see that SharePoint sees the correct number of claims (it doesn't show what those claims are, just the number) but
    it doesn't seem to be connecting the SIDs passed to the group name used in the permissions list. I have also updated the portalsuperreader and portalsuperuser accounts after the database was moved, just in case there was something weird there.
    The ADFS and SharePoint servers are all in the same AD domain, so they should be able to resolve SIDs ok. I suspect the issue is somehow related to the migration of the content database from a separate
    environment (different domain), but I can't figure out for the life of me how to get the group authentication to work.
    Thoughts?

    Brilliant idea. Unfortunately that didn't work - I can get to the new site as the site collection owner, but members of groups to which I assigned permissions still get Access Denied. :-(

  • Root cause of error " Access denied. You do not have permission to perform this action or access this resource" - workflow - SharePoint 2013

    Good evening, technet community
    I hope you are doing well.
    When configuring my SharePoint workflow, I encounter the problem below:
    Problem Description:
    Let's say my domain is: test.com, my group user is: test\group , my user is: test\user1
    Except an admin account with full control at both "Web Application" and "Site Collection", all others account all have problem when creating a list item. After creating a list item, the workflow status is "cancelled" immediately
    with the following message:
    RequestorId: 262a35e4-99f4-40f0-929b-5d04b415f147. Details: System.ApplicationException: HTTP 401 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["10"],"SPRequestGuid":["262a35e4-99f4-40f0-929b-5d04b415f147"],"request-id":["262a35e4-99f4-40f0-929b-5d04b415f147"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
    RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Thu, 06 Nov 2014 12:14:28 GMT"],"Server":["Microsoft-IIS\/7.5"],"WWW-Authenticate":["NTLM"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]}
    {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to perform
    this action or access this resource."}}} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor,
    BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
    - The workflow is still fail even I assign "full control" to my users group "test\group" – at Site Collection level.
    Surprisingly, I have successfully found a solution for this error message. However, I still have some points that I do not clearly understand. Let's start with my solution first.
    Solution:
    *** i. Assign permission policy at Web Application level – Central Admin site ***
    1. Central Administration ==> Application management
    ==> Manage Web application 
    2. Go to "permission policy", then create a new permission level. This permission level contains all "edit item" permission.
    3. Select "user policy", then I assign it directly to my user account: test\user1.
    *** ii. Assign "edit item" permission at Site Collection level ***
    1. Site Setting ==> Site permission
    2. Assign "Edit" permission to my test\group.
    (Actually I removed all permissions of my user group at Site Collection level. It seem my group has inherited permission from Web Application level, is that correct? )
    *** iii. Create a new list item and workflow runs ……. ***
    ==> My question is:
    1. Why I cannot assign permission to my users group - "test\group" -
     at "Web Application" level? Instead I have to assign permission policy for each users, one by one?
    2. Could you please let me know how to collect full detail error message of workflow status?
    Thank you very much! Have a nice weekend.

    Thank you for your very detail response.
    Point 1: Yes my 2 service: user profile & profile sync service are running. I performed "full synchronization" as well. Actually i've tried 3 another action plans before coming up with the solution i posted:
    *** Actions completed ***
    1. Activate the feature: workflow can use app permissions.
    Site actions > Site Settings > Site features >activate the feature below:
     Workflows can use app permissions
    2.
    Refresh trusted security token services metadata feed
    Get-SPTimerJob
    "RefreshMetadataFeed"
    | Start-SPTimerJob
    - then restart the machine.
    3. Start full user profile synchronization.
    Point 2:
    - Yes my user had Edit permission at workflow task list + list affected by workflow.
    I have just remove all permissions of my user at "Site Collection" level. However, when i show my user permissions at my workflow task list and my users still have "Edit" Permission ( assigned at Web Application level. These permissions
    still exist even after my workflow task list stop inheriting permission).
    ==> the problems probably belongs to "permission" at "Site Collection level". It seems "permission level at my Site Collection does not work". All users accounts are also suffer from the same issues except farm admin account
    ( which has full control at Web Application level).
    I would appreciate if your guys can guide me how to make "permission" at my "Site Collection level" work again?
    Thank you very much.

  • Multiple instances of firefox running cannot kill in task manager "Access denied"

    There's no issue with starting a new instance after closing one, the "firefox is already running" error is not occurring (ok maybe once or twice a month, but it's not related to this problem, as my problem happens all the time.)
    Apparently when closing a ff window it never fully stops. My computer slows down because of it and these multiple instances of firefox show up in Task Manager. When I try to kill the extra processes it just goes "BANG" and the "access denied" error dialog box appears. They are all running under my user account, and in CPU some are just 10 or 25 and some are in the hundreds and some are over a million. what the heck is going on?
    I'm running Windows 7 64 bit and ff 23.0 but this has been happening since about ff 15 (?)

    When closing Firefox completely, it is important to close it using the <i>Exit</i> button, located inside of the Firefox/File menu.
    Another cause to this problem could be a Firefox preloader. Do you have any programs that will load Firefox automatically? They are supposed to improve start time.
    You can also '''try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * Open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    I hope that one of my solutions helps to fix your problem. Please report back with updates soon.
    <b>NOTE: </b>You are using an outdated version of Firefox. This can cause security and functionality issue. Please update to the most recent version as soon as possible.

  • There was an error opening this document. Access denied.

    Greetings,
    When I did my taxes last year (March 2012), I downloaded some pdf files from the IRS.  Form 1040 was a writable file and I filled it out as needed.  This file was saved on a Vista machine running XP.  A few months ago, I upgraded that pc to be Windows 7 SP1.
    Today I'm getting ready to do my taxes for this year.  When I double click on last year's Form1040.pdf, I get the following error message:
    There was an error opening this document.  Access denied.
    Interestingly, I can open other pdf files, like the Form 1040 Instructions.  I do not think that I password protected my Form1040.pdf.  The reason that I think it isn't password protected is because I'm not being prompted to enter a password.
    I copied the file to an old spare XP machine (XP Home, version 2002, SP3) that I have and it opened fine.  It did not prompt for a password.  I printed copies of last year's forms from that XP machine, so this isn't an emergency for me, but it is mildly annoying that I can't figure out what's wrong.
    I have Adobe Reader XI version 11.0.2 installed on both machines (the Windows 7 machine and the old XP machine).
    To summarize, it was created on Vista, I can't open it with Windows 7, but I can open it with XP.
    Normally I would consider uploading the file in question, but in this case, I hope you'll agree that might be a bad idea!
    Advice on how to get this to work on Windows 7 would be appreciated.

    Pat Willener:  Thanks!  That solved the problem.
    For anyone else having this problem, here's a detailed list of how I used Pat's advice to solve my problem:
    1.  Right click on the problematic file
    2.  Select Properties
    3.  Select the Security tab
    4.  Press continue
    5.  In the "Permissions for MyFile.pdf" dialog, press "Add".
    6.  In the "Select Users or Groups" dialog, press "Advanced".
    7.  The next dialog that pops up is also named "Select Users or Groups".  Press "Find Now".
    8.  Scroll down the list of search results until you find your username.
    9.  Double click on your username.
    10. Press ok in the "Select Users or Groups" dialog.
    11.  Press ok in the "Permissions for MyFile.pdf" dialog
    12. Press ok in the Properties dialog.
    done.

  • Adobe Reader 11.0.06 "There was an error opening this document.  Access Denied"

    Windows 7 64-bit
    If I go into My Windows 7 Documents Library folder (which is redirected by Group Policy to a network share), I get "There was an error opening this document.  Access Denied".  If I then map a drive to the share, I can open the PDF without the error message.
    I've read a workaround for some time now for older versions has been to uncheck Enable Protected Mode at startup under Security (Enhanced) in Preferences.  I find this does work but this is probably not the best way to handle this situation.
    I've also read one person removed the desktop.ini on the desktop to resolve.
    Is there any official response from Adobe on this issue that I can be pointed too?  Are others still having this issue?
    We plan to update several thousand clients and I'd like resolve this issue before we do.

    We tried 11.0.05, 11.0.06 and 11.0.07 with the same result on different computers with different local Admin accounts.
    When we re-install 10.1.0 the issue is gone and Protected Mode is enabled.
    We then returned to 11.0.06 or 11.0.07
    I'm logged in with a local Admin account.
    I turned on Protected Mode Logging and captured what happens when I attempt to double click a pdf file in my Documents Library with 11.0.06 installed.  Access Denied.
    I then doubled clicked the file from a drive mapped to the same share and the file opened.
    [06:11/16:02:40] Adobe Reader Protected Mode Logging Initiated
    [06:11/16:02:41] NtCreateKey: STATUS_ACCESS_DENIED
    [06:11/16:02:41] real path: \REGISTRY\MACHINE\Software\Adobe
    [06:11/16:02:41] Consider modifying policy using this policy rule: REG_ALLOW_ANY
    [06:11/16:02:41] NtCreateKey: STATUS_ACCESS_DENIED
    [06:11/16:02:41] real path: \REGISTRY\MACHINE\SOFTWARE\Wow6432Node\Adobe
    [06:11/16:02:41] Consider modifying policy using this policy rule: REG_ALLOW_ANY
    [06:11/16:02:41] NtCreateFile: STATUS_ACCESS_DENIED
    [06:11/16:02:41] real path: \??\Volume{a758d00a-e81c-11e2-b856-806e6f6e6963}\$Extend\$Reparse:$R:$INDEX_ALLOCATION
    [06:11/16:02:41] Consider modifying policy using these policy rules: FILES_ALLOW_ANY or FILES_ALLOW_DIR_ANY
    [06:11/16:02:41] NtCreateFile: STATUS_ACCESS_DENIED
    [06:11/16:02:41] real path: \??\UNC\nawrcs-bbc1fs\mousers\u212940\Documents\Citrix Adding a Printer.pdf
    [06:11/16:02:41] Consider modifying policy using these policy rules: FILES_ALLOW_ANY or FILES_ALLOW_DIR_ANY
    [06:11/16:02:41] NtCreateFile: STATUS_ACCESS_DENIED
    [06:11/16:02:41] real path: \??\UNC\nawrcs-bbc1fs\mousers\u212940\Documents\Citrix Adding a Printer.pdf
    [06:11/16:02:41] Consider modifying policy using these policy rules: FILES_ALLOW_ANY or FILES_ALLOW_DIR_ANY
    [06:11/16:02:46] NtCreateKey: STATUS_ACCESS_DENIED
    [06:11/16:02:46] real path: \REGISTRY\USER\S-1-5-21-1691402968-2266345157-3523873211-67461\Software\Adobe\Adobe Acrobat
    [06:11/16:02:46] Consider modifying policy using this policy rule: REG_ALLOW_ANY
    [06:11/16:02:46] NtCreateKey: STATUS_ACCESS_DENIED
    [06:11/16:02:46] real path: \REGISTRY\USER\S-1-5-21-1691402968-2266345157-3523873211-67461\Software\Adobe\Adobe Acrobat
    [06:11/16:02:46] Consider modifying policy using this policy rule: REG_ALLOW_ANY
    [06:11/16:02:46] NtCreateKey: STATUS_ACCESS_DENIED
    [06:11/16:02:46] real path: \REGISTRY\USER\S-1-5-21-1691402968-2266345157-3523873211-67461\Software\Adobe\Adobe Acrobat
    [06:11/16:02:46] Consider modifying policy using this policy rule: REG_ALLOW_ANY
    [06:11/16:02:46] NtCreateKey: STATUS_ACCESS_DENIED
    [06:11/16:02:46] real path: \REGISTRY\USER\S-1-5-21-1691402968-2266345157-3523873211-67461\Software\Adobe\Adobe Acrobat
    [06:11/16:02:46] Consider modifying policy using this policy rule: REG_ALLOW_ANY
    [06:11/16:02:46] NtCreateKey: STATUS_ACCESS_DENIED
    [06:11/16:02:46] real path: \REGISTRY\USER\S-1-5-21-1691402968-2266345157-3523873211-67461\Software\Adobe\Adobe Acrobat
    [06:11/16:02:46] Consider modifying policy using this policy rule: REG_ALLOW_ANY
    [06:11/16:02:46] NtCreateKey: STATUS_ACCESS_DENIED
    [06:11/16:02:46] real path: \REGISTRY\USER\S-1-5-21-1691402968-2266345157-3523873211-67461\Software\Adobe\Adobe Acrobat
    [06:11/16:02:46] Consider modifying policy using this policy rule: REG_ALLOW_ANY
    [06:11/16:02:46] NtCreateKey: STATUS_ACCESS_DENIED
    [06:11/16:02:46] real path: \REGISTRY\USER\S-1-5-21-1691402968-2266345157-3523873211-67461\Software\Adobe\Adobe Acrobat
    [06:11/16:02:46] Consider modifying policy using this policy rule: REG_ALLOW_ANY
    [06:11/16:02:46] NtCreateKey: STATUS_ACCESS_DENIED
    [06:11/16:02:46] real path: \REGISTRY\USER\S-1-5-21-1691402968-2266345157-3523873211-67461\Software\Adobe\Adobe Acrobat
    [06:11/16:02:46] Consider modifying policy using this policy rule: REG_ALLOW_ANY
    [06:11/16:02:47] NtCreateFile: STATUS_ACCESS_DENIED
    [06:11/16:02:47] real path: \??\C:\Users\c702939\AppData\Local\Microsoft\Windows\Caches\cversions.1.db
    [06:11/16:02:47] Consider modifying policy using these policy rules: FILES_ALLOW_ANY or FILES_ALLOW_DIR_ANY
    [06:11/16:02:47] NtCreateFile: STATUS_ACCESS_DENIED
    [06:11/16:02:47] real path: \??\C:\Users\c702939\AppData\Local\Microsoft\Windows\Caches\cversions.1.db
    [06:11/16:02:47] Consider modifying policy using these policy rules: FILES_ALLOW_ANY or FILES_ALLOW_DIR_ANY
    [06:11/16:02:47] NtCreateKey: STATUS_ACCESS_DENIED
    [06:11/16:02:47] real path: \REGISTRY\USER\S-1-5-21-1691402968-2266345157-3523873211-67461\Software\Adobe\Adobe Acrobat
    [06:11/16:02:47] Consider modifying policy using this policy rule: REG_ALLOW_ANY
    [06:11/16:02:47] NtCreateKey: STATUS_ACCESS_DENIED
    [06:11/16:02:47] real path: \REGISTRY\USER\S-1-5-21-1691402968-2266345157-3523873211-67461\Software\Adobe\Adobe Acrobat
    [06:11/16:02:47] Consider modifying policy using this policy rule: REG_ALLOW_ANY
    [06:11/16:02:47] NtCreateKey: STATUS_ACCESS_DENIED
    [06:11/16:02:47] real path: \REGISTRY\USER\S-1-5-21-1691402968-2266345157-3523873211-67461\Software\Adobe\Adobe Acrobat
    [06:11/16:02:47] Consider modifying policy using this policy rule: REG_ALLOW_ANY
    [06:11/16:02:47] NtCreateKey: STATUS_ACCESS_DENIED
    [06:11/16:02:47] real path: \REGISTRY\USER\S-1-5-21-1691402968-2266345157-3523873211-67461\Software\Adobe\Adobe Acrobat
    [06:11/16:02:47] Consider modifying policy using this policy rule: REG_ALLOW_ANY
    [06:11/16:02:47] NtCreateFile: STATUS_ACCESS_DENIED
    [06:11/16:02:47] real path: \??\C:\Users\c702939\Desktop\desktop.ini
    [06:11/16:02:47] Consider modifying policy using these policy rules: FILES_ALLOW_ANY or FILES_ALLOW_DIR_ANY
    [06:11/16:02:48] NtCreateFile: STATUS_ACCESS_DENIED
    [06:11/16:02:48] real path: \??\C:\Users\c702939\Desktop\desktop.ini
    [06:11/16:02:48] Consider modifying policy using these policy rules: FILES_ALLOW_ANY or FILES_ALLOW_DIR_ANY

  • With Reader XI There was an error opening this document. Access denied

    Hi there, It looks like I have a simular problem. I also get the error "There was an error opening this document. Access denied." This when I tried to open the file by clicling on the file. When I try to open the file from out Adobe reader it gives me the error "You don't have permission to open the file" I use Adobe XI. My OS is W8.1 By clearing protected mode doesn't help. This is what I found sofar: Only the PDF files in the documents and subfolders are giving me this error. PDF files in other folders are fine. When I copy PDF files from the documents folder to Desktop they open without any problem. First I thought I might be a permission problem with the Documents folder, but I have full access. Other files in the Documents folder like Word and Excel files open fine with MS Office. My laptop has WinXP and is shared with my PC when I open PDF files on my laptop by using the network share they open without problems. So it looks like only the PDF files in my Documents folder. I'm not sure but before upgrading to W8.1 from W8.0 I can't remember if I had this problem, but I think I did not have it. To make it even more interested is that I have also Adobe Acrobat Writer on my PC what I use for my buisiness. When I open the PDF files with this program they open without any problem. Therefore I believe it is not a permission problem, I still believe it is a problem with Reader XI, but than only after upgrading to W8.1, but as I already mentioned I'm not sure for 100% only that sofar I know it never happened under W8. Has anyone out there simular problems? And hopefully with a fix.

    This is what I did sofar: Deleted reader XI and reinstalled same problem.
    Because I think the problem is with reader XI I deleted again XI and installed reader X.
    With this version I can open PDF files located in the documents folder without any problem.
    For now I keep using version X until they fixed version XI
    This proves that reader XI will not work under W8.1 when opening PDF files in de documents folder.
    Bennie

  • Access Denied when trying to open a file that is encrypted on network share with EFS

    I just recently enabled EFS on the default domain policy and created a new network share, encrypted a file and added myself to that file and tried to open the file from my workstation.  I then receive an error "Access denied", I also tried
    to create a file and encrypt it on that same share and get an error "The requested operation cannot be completed.  The computer must be trusted for delegation and the current user account must be configured to allow delegation."  
    My steps.
    1. Enable group policy for EFS, removed the expired certificate that was already there and Created a new Data recovery agent.
    2. Created a network share, created a test file, enabled encryption on the file 
    3. certmgr.msc, personal and requested a new certificate, Basic EFS
    4. On the network share and properties of file, advanced, details and added the user
    5. from the workstation tried to access the file, Access Denied.  I can create any file I won't just can't add attributes to encrypt the file or open an encrypted file
    Now if I go to the server where the CA is located which is also the AD server and create share and run the same process it works as expected.  I'm guessing I have to export the cert from the CA server as a pfx and import that to both the server that
    has the network share and the workstation but that still doesn't seem to work.  Maybe I don't understand how EFS works and this is not possible?  Any suggestions would be appreciated.

    You are correct in not understanding how EFS works.
    When you connect to an encrypted file via a network share, the encryption/decryption takes place *on* the server. To enable over the network access, the server's computer account must be trusted for delegation.
    The server actually impersonates the user and creates a user profile on the server (containing the defined EFS certificate and private key). The important thing to remember is that the files is transmitted in clear text from the server to the client.
    See http://blogs.technet.com/b/instan/archive/2010/08/11/remote-efs-decryption-and-trusted-for-delegation-requirements.aspx
    Brian

  • Windows 7 Open and Save As dialog box gives an "Access Denied" when using common Windows Explorer features.

    On many computers in our environment we have issues in Windows 7 when using the Common Dialog Box.  Within the dialog box we get the error Access Denied whenever we try to create a folder.  If we try to rename a file it doesn't give an error but
    it doesn't work either.  We cannot delete a file, still no error, but we can create shortcut.
    Within Windows Explorer of the same user it has no issues.
    Even if we run an application as administrator it has the same results.
    Example: Open Paint (right click "Run As Administrator"); then File, "Save As", right-click in empty space; then New, Folder.  This caused the error to popup "Unable to create the folder 'New folder'  Access is denied."
    Thanks for your help,
    Daniel

    Hi Daniel,
    How are things going? As the article provided above said, for such kind of issues generally it is caused by permission settings.
    The article provided several possible solution and please let us know if there is anything unclear about the steps. 
    If you have any feedback on our support, please send to [email protected]

Maybe you are looking for