Problem with Unity 5 3D Development

Asked

Viewed 307 times

7

I’m developing a game using the Unity 5 and when executing (give play in the game), the following error appears and I am not able to understand it, I think it has to do with some process denied, but I do not know what is.

There is the mistake:

Unhandled Exception: System.UnauthorizedAccessException: Access to the path "C:\Users\Public\Documents\Unity Projects\Jogo Nightmare\Temp\Assembly-CSharp.dll.mdb" is denied.

  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0 

  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync, Boolean anonymous) [0x00000] in <filename unknown>:0 

  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access) [0x00000] in <filename unknown>:0 

  at Mono.CompilerServices.SymbolWriter.MonoSymbolWriter.WriteSymbolFile (Guid guid) [0x00000] in <filename unknown>:0 

  at Mono.CSharp.SymbolWriter+SymbolWriterImpl.WriteSymbolFile () [0x00000] in <filename unknown>:0 

  at Mono.CSharp.SymbolWriter.WriteSymbolFile () [0x00000] in <filename unknown>:0 

  at Mono.CSharp.CodeGen.Save (System.String name, Boolean saveDebugInfo, Mono.CSharp.Report Report) [0x00000] in <filename unknown>:0 

  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 

  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0 

If anyone knows please tell me.

  • 1

    Do you happen to have any antivirus running (maybe Mcafee)? A quick Google search seems to demonstrate that it has been common for antivirus to block access to this file. Source 1. Source 2. Maybe if you set up Antivirus to add these files as trustworthy (trustee) resolve.

  • Luiz Vieira, I have Mcafee installed, but I didn’t know that the problem would be him, I was reading the sources you gave me, and a person who had the same problem as mine, reported that, disabling the real-time scan and windows Firewall would solve the problem, but with this my computer would be quite vulnerable, being that I can not uninstall because I have the paid version of it. Do you see any way I can solve this problem ? I appreciate your help already.

  • 1

    Yes, that’s what I suggested: add the file to your Antivirus’s trusted file list to stop it from blocking access to that file. I don’t use Mcafee, so I don’t know how it does it. But if that’s the problem, this kind of configuration should fix it. By the way, if you can solve with this approach, please add yourself a detailed answer here to help other people in the future. :)

  • I manage to run it by disabling the scan option in real time, but while running it is showing this error: "'Player' Animationevent 'Restartlevel' has no receiver! Are you Missing a Component? " would you happen to know the reason for this error? I will try to look for the option to add it to the list of trusted files and as soon as I get it, I will write a detailed answer here.

  • 1

    If it is another mistake, open another question. By the way, already have a question about that error message, but the author did not give more details as requested...

  • All right. I’ll take a look here, thank you.

Show 1 more comment

1 answer

1

With the help of Luiz Vieira and searching on Google, discover that this error is caused by the anti-virus, in my case Mcafee that blocks access to the file, because it thinks it is an invasion/ virus. I can not add a trusted list, and as I can not uninstall it as I have paid version, the most viable output, is, disable real-time scanning, run your game and as soon as it finishes enable again or if possible change the anti virus. Thanks again for the help Luiz Vieira.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.