'access is denied' - permissions issue running UaaS.cmd
hey there,
i'm getting to grips with running umbraco a service and have been working with a project that i checked out using the clone url and sourcetree without any issues.
One second...
Downloading helper executable (Waasp.exe)
Clone URL: https://blar.scm.s1.umbraco.io/blarblar.git
Namespace: MyProjectNamespace
Cloning into 'blarblar'...
remote: Counting objects: 16413, done.
remote: Compressing objects: 100% (12066/12066), done.
remote: Total 16413 (delta 8914), reused 8673 (delta 3941)
Receiving objects: 100% (16413/16413), 140.61 MiB | 1.67 MiB/s, done.
Resolving deltas: 100% (8914/8914), done.
Checking out files: 100% (4005/4005), done.
Access is denied.
Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\work\MyClient\MyProjectNamespace.Web\web.config'.
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)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
at System.Xml.XmlTextReaderImpl.OpenUrl()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at Waasp.Program.GetUmbracoVersion(String solutionPath, String alias)
at Waasp.Program.Main(String[] args)
my 1st thought was permissions so i tried running 'UaaS.cmd' as an administrator. this time, everything worked but it checked out and created the project in the 'C:\WINDOWS\system32' folder!
i've gotta be missing something either when i'm reading the documentation or how i'm running the console app...
no spaces as i tend to camel case everything path wise...
i figured out the 'C:\WINDOWS\system32' checkout path though. i'd right clicked 'UaaS.cmd' and selected 'run as administrator' and then followed the prompt... i thought it would run in the folder i'd selected it in but it didn't.
i'm guessing it has to be something to do with permissions, i'm just not sure what!
i think that's the fix, defo run the exe as an administrator.
as it happens, i've taken to setting up the solutions myself rather than using the exe. i follow the same project set up, but found that the manual set up was easier!
I have encountered the exact same issue (where it will create files under Systems32!). To resolve this while still using the UaaS.cmd. You could try the following
Open a plain Command Prompt in Admin mode
Navigate to your project folder using the command line prompt (i.e. cd
Run the UaaS.cmd
Folllow the instruction as per normal
this should help to create the solutions files at the intended location
'access is denied' - permissions issue running UaaS.cmd
hey there,
i'm getting to grips with running umbraco a service and have been working with a project that i checked out using the clone url and sourcetree without any issues.
however i'd now like to use the 'UaaS.cmd' command line tool as documented at https://our.umbraco.org/documentation/Umbraco-Cloud/Set-Up/Visual-Studio/
it runs, however i get this exception:
my 1st thought was permissions so i tried running 'UaaS.cmd' as an administrator. this time, everything worked but it checked out and created the project in the 'C:\WINDOWS\system32' folder!
i've gotta be missing something either when i'm reading the documentation or how i'm running the console app...
but what?!
any suggestions would be grand!
cheers,
jake
Did you happen to have a space in the path somewhere?
no spaces as i tend to camel case everything path wise...
i figured out the 'C:\WINDOWS\system32' checkout path though. i'd right clicked 'UaaS.cmd' and selected 'run as administrator' and then followed the prompt... i thought it would run in the folder i'd selected it in but it didn't.
i'm guessing it has to be something to do with permissions, i'm just not sure what!
Just came across this issue myself. For any one else that runs into this make sure you run the UaaS.cmd file as administrator.
hi marc,
i think that's the fix, defo run the exe as an administrator.
as it happens, i've taken to setting up the solutions myself rather than using the exe. i follow the same project set up, but found that the manual set up was easier!
cheers,
jake
I have encountered the exact same issue (where it will create files under Systems32!). To resolve this while still using the UaaS.cmd. You could try the following
this should help to create the solutions files at the intended location
-Steven
is working on a reply...