Project Centennial - Access Denied when running Desktop App Convertor - win-universal-app

This is the error I am getting when I run the convertor:
Exception calling "RunIsolatedProcessWithMappedDirectoryAndExport" with "6" argument(s): "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))" At C:\Users\Harsimran\Downloads\DesktopAppConverter\converter_util\Sequencer.ps1:140 char:9
+ $installerExitCode = [Microsoft.Centennial.Tools.DesktopAppCo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : UnauthorizedAccessException
I am able to silently run the installer and install my program, so the error has to do with Project Centennial. I am not sure what to do.
I could not find the appropriate tags for this question, so it might seem vague.

This is actually a known issue in Windows Insider Build 14332. The new insider build in the fast ring should fix this issue.

Related

Node.js: Access Denied

Just installed node.js on Windows 10 via msi installer.
Any command results to access denied error.
PS D:\sasha\Angular\ExampleShop> node -v
Сбой выполнения программы node.exe: Отказано в доступестрока:1 знак:1
+ node -v
+ ~~~~~~~.
строка:1 знак:1
+ node -v
+ ~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
Eventually, resolved the issue by myself. I changed Owner of the folder in which I installed node.js to my domain account.

Is there a way to force the Invoke-DscResource cmdlet?

I am trying to use the Invoke-DscResource cmdlet in a series of tests (using Pester) to see if a configuration has been successfully applied to a VM.
This works 9/10 times, but sometimes the following error is thrown:
==> azure-arm.dsc_node: Cannot invoke the Invoke-DscResource cmdlet. The Consistency Check or Pull cmdlet is in progress and must return
==> azure-arm.dsc_node: before Invoke-DscResource can be invoked. Use -Force option if that is available to cancel the current operation.
==> azure-arm.dsc_node: + CategoryInfo : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException
==> azure-arm.dsc_node: + FullyQualifiedErrorId : MI RESULT 1
==> azure-arm.dsc_node: + PSComputerName : localhost
Is there a way to force the Invoke-DscResource cmdlet?
The problem is that Desired State Configuration cannot run at the same time as another process is changing the configuration of the machine.
I would guess that you are running Invoke-DscResource before the process that you are testing is complete.
Try putting a pause in your test.

How to start a BITS download as System Account? current error: "user has not logged on to the network" 0x800704DD

I'm trying to launch a BITS service download in a GPO Startup Script. Startup Scripts are started as the local SYSTEM account, which works well for background downloads as per Microsoft's documentation https://msdn.microsoft.com/en-us/library/windows/desktop/aa363152(v=vs.85).aspx
Sadly when I try to start a download (disregarding valid source or destination) I get the following error:
Start-BitsTransfer : The operation being requested was not performed because
the user has not logged on to the network. The specified service does not
exist. (Exception from HRESULT: 0x800704DD)
At line:1 char:1
+ Start-BitsTransfer -Source localhost -Destination c:\temp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Start-BitsTransfer], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBitsTransferCommand
This is just a test, the actual BITS transfer is started within a c# application that is launched within the GPO Startup Script. Further tests with a manually created process through Sysinternals PSExec yield the same error.
Additional checks for security principals in whoami /all look fine:
User Name SID
=================== ========
nt authority\system S-1-5-18
GROUP INFORMATION
-----------------
...
CONSOLE LOGON Well-known group S-1-2-1
...
LOCAL Well-known group S-1-2-0
BUILTIN\Administrators Alias S-1-5-32-544
I checked for services BITS and SENS - all running.
To summarize:
How can i successfully launch a BITS download as SYSTEM in Startup Script?
How does the error "user has not logged on to the network" make sense, considering System account is always logged on? What is the meaning of "The specified service does not exist." - what service?

Desktop App Converter "Fatal Error 1000"

I receive the following error when attempting to run the Desktop App Converter (Project Centennial):
Assert-RequiredFeatureEnabled: fatal error 1000: required feature is not installed or enabled. Please refer to machine setup instructions.
At C:\Users\%%%\Documents\DesktopAppConverter\converter_util\EnvironmentAssertions.ps1:40 char:9
+ throw "Assert-RequiredFeatureEnabled: fatal error 1000: requi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Assert-Required...p instructions.:String) [], RuntimeException
+ FullyQualifiedErrorId : Assert-RequiredFeatureEnabled: fatal error 1000: required feature is not installed or enabled. Please refer to
machine setup instructions.
The relevant script is in EnvironmentAssertions.ps1:
$feature = Get-WindowsOptionalFeature -Online -FeatureName "Containers"
if (!$feature) {
throw "Assert-RequiredFeatureEnabled: fatal error 1000: required feature is not installed or enabled. Please refer to machine setup instructions."
}
I found no items in Windows Features that appear related to containers.
How can this error be resolved?
Windows 10 Pro insider preview (build 14316) and Desktop App Converter preview (0.1.8.release_2016-04-05_17-47_5aa8cc)
After looking around, it appears that the "Containers" feature is only on Enterprise versions of Windows 10 at the moment - perhaps they will extend this to Pro eventually, but I think that's why we can't get it working.

Nuget error after adding AzureCloudServce to existing MVC4 app

I have an MVC 4 application that I want to convert to an Azure Cloud Service. These are the steps I took:
Update-Package to get everything on the latest
I followed the steps at this blog
Build Solution (succeeds)
F5 -> Get error that VS2012 needs to run elevated
Restart VS2012 elevated -> get this error in Package Manager Console:
At C:\Users\jlearmouth\Documents\Visual Studio 2012\Projects\MeetingMinutes\packages\MvcScaffolding.1.
0.9\tools\init.ps1:35 char:45
| %{ [System.IO.Directory]::EnumerateFiles <<<< ($_, "*." + $extension, [System.IO.SearchOpt
ion]::AllDirectories) }
CategoryInfo : NotSpecified: (:) [], MethodInvocationException
FullyQualifiedErrorId : DotNetMethodException
The solution seems to run, but I don't like this error. I don't know what it means and I don't know what to do about it. Google has similar things but not the same MethodInvocationException... tried their solutions - nothing (mostly uninstall/reinstall MvcScaffolding)
What is this error and how do I fix it?
This looks like an error coming from the MvcScaffolding package. Have you tried contacting the author of this package? Go to this page and click the Contact Owners link on the left bar https://nuget.org/packages/MvcScaffolding/

Resources