Jump to content

I cannot install CKAN.


Recommended Posts

I have a problem with trying to install CKAN. It used to work just fine when I played KSP earlier this year, but after not having touched it for a while it did not work anymore. Trying to reinstall it and any subsequent attempts to install CKAN have only yielded this error message in the CMD-prompt:


Unhandled Exception: System.UnauthorizedAccessException: Access to the path "C:\Users\chr7s\AppData\Local\CKAN\config.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, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
   at System.IO.File.WriteAllText(String path, String contents)
   at CKAN.Configuration.JsonConfiguration.SaveConfig()
   at CKAN.Configuration.JsonConfiguration.set_DownloadCacheDir(String value)
   at CKAN.KSPManager.TrySetupCache(String path, String& failureReason)
   at CKAN.KSPManager.LoadInstancesFromRegistry()
   at CKAN.CmdLine.MainClass.Execute(KSPManager manager, CommonOptions opts, String[] args)
   at CKAN.CmdLine.MainClass.Main(String[] args)

I’ve tried running it as administrator and moved the .exe to another folder etc. in the hopes it at least would give me a different error message to pin down the problem, but I’m at a loss. If anyone has/had the same problem or knows how to maybe fix it, I’d be ever so thankful :)

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...