Elvas Tower: Access Denied - Elvas Tower

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Access Denied A fatal error has occured and Open Rails cannot continue Rate Topic: -----

#1 User is offline   Brian Hook 

  • Apprentice
  • Group: Status: Dispatcher
  • Posts: 29
  • Joined: 31-January 13
  • Simulator:ORTS
  • Country:

Posted 13 July 2020 - 08:20 AM

Carlo,

This problem has suddenly appeared when running any MG version in Windows 7. It does not appear in any non-MG version
nor in any MG version in Windows 10. There have been no updates in Win 7 for quite a while.
I tried changing permissions for OpenRailsLog.txt but that did not help.

"A fatal error has occured and Open Rails cannot continue.
System.UnauthorisedAccessException: Access to the path C:/Users/Brian Hook/Desktop/OpenRailsLog.txt is denied."

Any ideas what is causing this?
Regards,
Brian.

The same message is on TrainSim.com, but I think ET is better.

#2 User is offline   steved 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,843
  • Joined: 19-December 09
  • Gender:Male
  • Location:South of here
  • Simulator:ORMG
  • Country:

Posted 13 July 2020 - 09:59 AM

 Brian Hook, on 13 July 2020 - 08:20 AM, said:

Carlo,

This problem has suddenly appeared when running any MG version in Windows 7. It does not appear in any non-MG version
nor in any MG version in Windows 10. There have been no updates in Win 7 for quite a while.
I tried changing permissions for OpenRailsLog.txt but that did not help.

"A fatal error has occured and Open Rails cannot continue.
System.UnauthorisedAccessException: Access to the path C:/Users/Brian Hook/Desktop/OpenRailsLog.txt is denied."

Any ideas what is causing this?
Regards,
Brian.

The same message is on TrainSim.com, but I think ET is better.
You'll need to attach a copy of the Openrailslog.txt, found on your desktop, so we can see what's going on.

Steve


#3 User is offline   Brian Hook 

  • Apprentice
  • Group: Status: Dispatcher
  • Posts: 29
  • Joined: 31-January 13
  • Simulator:ORTS
  • Country:

Posted 13 July 2020 - 10:17 AM

Hi Steve,
OR does not get far enough to create a .txt log. Thats the problem.
Regards,
Brian.

#4 User is offline   superheatedsteam 

  • Conductor
  • Group: Status: Contributing Member
  • Posts: 499
  • Joined: 28-June 08
  • Location:Perth, WA
  • Country:

Posted 14 July 2020 - 01:55 AM

Read my post on how to configure Process Monitor. http://www.elvastowe...another-process

The difference for your issue is to change the following line in that post:

In the field next to that type in the path, or partial path to that users temp folder as recorded in the openrails.txt file e.g. AppData\Local\Temp\tmp

to be:

In the field next to that type in: openrailslog.txt

Then run Process Monitor and start Open Rails until you get the error.

Then stop Process Monitor and see if there are any other programs (like anti virus software) that are accessing the openrailslog.txt file or if the operating system is denying write permissions to that location.

Cheers,

Marek.

#5 User is offline   cjakeman 

  • Vice President
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 2,866
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 14 July 2020 - 06:14 AM

Hi Brian,

 Brian Hook, on 13 July 2020 - 08:20 AM, said:

This problem has suddenly appeared when running any MG version in Windows 7. It does not appear in any non-MG version
nor in any MG version in Windows 10. There have been no updates in Win 7 for quite a while.
I tried changing permissions for OpenRailsLog.txt but that did not help.

"A fatal error has occured and Open Rails cannot continue.
System.UnauthorisedAccessException: Access to the path C:/Users/Brian Hook/Desktop/OpenRailsLog.txt is denied."

Since it has recently arrived, it may be due to a virus checker being updated and now interfering. Would you try with your virus checker(s) disabled (including Microsoft's Defender).

I am interested in this as I have recently had a user complain about something similar (System.IOException) for the log file. Although he got around it by turning off the logging, that is no way forward. I'm still waiting for details:OS version, Open Rails version, is it always or sometimes, does the route make a difference.

Marek's advice will show you what's actually happening.

#6 User is offline   Brian Hook 

  • Apprentice
  • Group: Status: Dispatcher
  • Posts: 29
  • Joined: 31-January 13
  • Simulator:ORTS
  • Country:

Posted 14 July 2020 - 08:12 AM

Hi Marek and Chris,
Marek`s advice and your suggestion both pointed to the Antivirus software as being the culprit.
Indeed it was. I use AVG which has a protected folder option. One of these folders listed as protected was the Desktop.
After removing the folder protection the MG versions 62 and 68 both work perfectly.
Probably a recent update of AVG added the protection for this folder.
Thank you both and I hope this procedure will help fellow simmers with a similar error.
Best regards,
Brian.

#7 User is offline   Aldarion 

  • Engineer
  • PipPipPipPipPip
  • Group: ET Owner
  • Posts: 627
  • Joined: 11-February 13
  • Gender:Male
  • Location:Lisbon, Portugal
  • Simulator:Open Rails
  • Country:

Posted 14 July 2020 - 11:53 PM

I'm wondering if this can help determine my problem of not being able to use fraps after starting OR MG and OR MG crashing when Fraps is already running.

#8 User is offline   cjakeman 

  • Vice President
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 2,866
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 15 July 2020 - 04:14 AM

Hi Brian,

 Brian Hook, on 14 July 2020 - 08:12 AM, said:

Thank you both and I hope this procedure will help fellow simmers with a similar error.

I'm sure it will. Thanks and I've noted the details ready for the next occurrence.

#9 User is offline   Brian Hook 

  • Apprentice
  • Group: Status: Dispatcher
  • Posts: 29
  • Joined: 31-January 13
  • Simulator:ORTS
  • Country:

Posted 16 July 2020 - 08:02 AM

Aldarion,
Have a look on Trainsim.com, I have posted details of how to remove protected folders from AVG Antivirus.
Your antivirus programme may be the culprit causing the crashes.
If not, you will need to post far more details than in your original post so we can try to help you.
Brian.

#10 User is offline   cjakeman 

  • Vice President
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 2,866
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 24 July 2020 - 04:27 AM

 cjakeman, on 15 July 2020 - 04:14 AM, said:

Thanks and I've noted the details ready for the next occurrence.


And already one of our devs has been hit by this change in AVG and has changed the settings to allow saving to Windows Desktop.

By the way, I remember seeing a config somewhere that allowed you to save the log file elsewhere and also under different filenames.



  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users