Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Reafy · Jan 02, 2015 at 11:35 AM · errorinternal compiler error

Internal Compiler Error

So my game runs the way it should in unity. But when i build it i get this error

Internal compiler error. See the console log for more information. output was: Unhandled Exception: System.UnauthorizedAccessException: Access to the path "C:\Users\Marshall\Documents\New Unity Project\Temp\Assembly-CSharp-firstpass.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 :0

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

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

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

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

at Mono.CSharp.SymbolWriter.WriteSymbolFile () [0x00000] in :0

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

at Mono.CSharp.Driver.Compile () [0x00000] in :0

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

Im guessing it had something to do with unity compiling the scripts but i have no idea how to fix it. This is the script that might be causing the problem

 using UnityEngine;
 using System.Collections;
 
 public class NetworkManager : MonoBehaviour 
 {
     public Camera standbyCamera;
     spawnSpot[] spawnSpots;
 
     void Start () 
     {
         connect();
         spawnSpots = GameObject.FindObjectsOfType<spawnSpot>();
     }
     
     void connect()
     {
         PhotonNetwork.ConnectUsingSettings("poop v1.0.0");
 
     }
     
     void OnGUI()
     {
         GUILayout.Label( PhotonNetwork.connectionStateDetailed.ToString() );
     }
     
     void OnJoinedLobby()
     {
         PhotonNetwork.JoinRandomRoom();
     }
 
     void OnPhotonRandomJoinFailed()
     {
         Debug.Log ("Failed to Join a Room");
         PhotonNetwork.CreateRoom (null);
     }
 
     void OnJoinedRoom()
     {
         Debug.Log ("Successfully Joied Room");
         spawnMyPlayer();
     }
      
     //section that is most likely causing the problem
     void spawnMyPlayer()
     {
         if(spawnSpots == null)
         {
             Debug.LogError ("WTF?!?!?!");
         }  
         spawnSpot mySpawnSpot = spawnSpots [Random.Range (0, spawnSpots.Length)];
         GameObject myPlayerGO = (GameObject)PhotonNetwork.Instantiate ("PlayerController", mySpawnSpot.transform.position, mySpawnSpot.transform.rotation, 0);
 
         standbyCamera.enabled = false;
         ((MonoBehaviour)myPlayerGO.GetComponent("FPSInputController")).enabled = true;
         myPlayerGO.GetComponent<MouseLook> ().enabled = true;
     }
 }


when i say might be causing the problem I mean that is my best guess

Comment
Add comment · Show 8
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Landern · Jan 02, 2015 at 11:38 AM 0
Share

Are you running any anti-virus software? Are you executing unity as an ad$$anonymous$$istrator?

avatar image Reafy · Jan 02, 2015 at 11:44 AM 0
Share

im not sure and yes

avatar image Landern · Jan 02, 2015 at 11:48 AM 0
Share

You can go and delete the symbols file(the .mbd file) in "C:/Users/$$anonymous$$arshall/Documents/New Unity Project/" and see if that helps, if it's not there, something is blocking writing to that folder.

If it's there an tell you it can't be deleted(try again dialog) then something has a hook on the file. Save, close down applications, restart computer and give it another go.

avatar image Reafy · Jan 02, 2015 at 11:49 AM 0
Share

i know both unity and monodevelop are allowed through windows firewall

avatar image Landern · Jan 02, 2015 at 11:50 AM 0
Share

We aren't talking about firewalls(application/hardware blocking/opening ports for communication), we're talking about the file system and I/O

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Krizzen · Jan 02, 2015 at 01:03 PM

Seems you're having write permission issues, which really shouldn't happen in your Documents folder. You could have more than one user account on your computer and you (or Unity) is trying to save it in another user's Documents folder.

Make sure your user account has administrator permissions in Windows. Start->Control Panel->User & Accounts.

Alternative solutions (more than I want to post right now) are to right-click your Documents folder and make sure you have write permissions, or disable UAC.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

27 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Internal Compiler Error caused by Visual Studio project? 0 Answers

Compiler Warnings Are Now Errors 0 Answers

error CS8032: Internal compiler error during parsing, Run with -v for details 1 Answer

Internal compiler error. See the console log for more information. output was: 2 Answers

UnauthorizedAccessException during compilation 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges