Terraria

Terraria

View Stats:
Omnimon Jun 16, 2018 @ 9:27pm
Help Terraria Access error message:System.UnauthorizedAccessException: Access to the path 'C:\Users\Windows 10\Documents\My Games\Terraria\favorites.json' is denied.
System.UnauthorizedAccessException: Access to the path 'C:\Users\Windows 10\Documents\My Games\Terraria\favorites.json' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Terraria.Utilities.FileUtilities.Write(String path, Byte[] data, Int32 length, Boolean cloud)
at Terraria.Utilities.FileUtilities.WriteAllBytes(String path, Byte[] data, Boolean cloud)
at Terraria.IO.FavoritesFile.Save()
at Terraria.IO.FavoritesFile.SaveFavorite(FileData fileData)
at Terraria.IO.WorldFileData.MoveToLocal()
at Terraria.GameContent.UI.Elements.UIWorldListItem.CloudButtonClick(UIMouseEvent evt, UIElement listeningElement)
at Terraria.UI.UIElement.Click(UIMouseEvent evt)
at Terraria.UI.UserInterface.Update(GameTime time)
at Terraria.Main.DoUpdate(GameTime gameTime)
at Terraria.Main.Update(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
at Microsoft.Xna.Framework.GameHost.OnIdle()
at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Microsoft.Xna.Framework.WindowsGameHost.Run()
at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
at Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
Last edited by Omnimon; Jun 16, 2018 @ 9:31pm
< >
Showing 1-8 of 8 comments
Jones Jun 16, 2018 @ 10:28pm 
idk
wat happened
Omnimon Jun 17, 2018 @ 9:40am 
when i try to create a new world this error pops up and this may be unrelated but all worlds are listed in red and the game crashes when saving and exiting a world
Bear Jun 17, 2018 @ 11:25am 
its saying ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group.

hope this helps
Last edited by Bear; Jun 17, 2018 @ 11:25am
Omnimon Jun 17, 2018 @ 11:37am 
thanks that fixed the error message
kitty Jul 10, 2019 @ 11:16pm 
I can't figure out how to get this ASP.NET to work. If I could get a more in depth explaination that would be appreciated. Thanks
cushbot May 20, 2020 @ 9:38am 
Originally posted by Bear:
its saying ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity.

To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group.

hope this helps
Can you please explain how do I "Add" the appropriate user ?
Nekuu May 20, 2020 @ 1:55pm 
yes, but if I want to click add it is blocked and I can't do anything
chamomilepurple Nov 10, 2023 @ 2:27pm 
I'm not sure how to add a specific user, however it may help to run the .bat file as administrator. this should bypass permission requirements.
< >
Showing 1-8 of 8 comments
Per page: 1530 50

Date Posted: Jun 16, 2018 @ 9:27pm
Posts: 8