C
C#5d ago
Metalkon

My MAUI App Cannot Be Deployed When Running Debugger?

My .net8 maui blazor app was running perfectly fine and was freshly pushed and merged while functional, but when I attempted to change the maui icon and splash screen properties of the svg's, in an attempt to use png's the app stopped working and I decided to undo everything. The problem is that now the project won't work anymore even though everything has been completely reverted and I don't know how to run it. I did the first 5 minutes of this video which doesn't really do anything weird when it broke, just a few svg properties and changing icon stuff only. https://www.youtube.com/watch?v=5cgrKARU3Bw What I've Tried So Far: - Clean/Rebuild/Build - Restart PC - Confirm Config Manager, Deploy was checked, even tried a newly made config. - Deleted the project from my computer and made a new clone (from when it was working, i never pushed the changes that broke it btw) - Repaired and Updated Visual Studio, with a restart. Nothing is working and I don't know what to do, any help would be greatly appreciated.
No description
128 Replies
демон404
демон4045d ago
fixed it?
Metalkon
MetalkonOP5d ago
nope 😦
демон404
демон4045d ago
try going to build then config Manager right click on the Sln then you should see it
Metalkon
MetalkonOP5d ago
No description
демон404
демон4045d ago
oh deploy is checked, mb try cleaning Sln? then rebuild?
Metalkon
MetalkonOP5d ago
The project TellarknightApp is missing Android SDKs required for building. Double-click on this message and follow the prompts to install them. after clean and rebuild didnt have this the first time i did clean and rebuild
демон404
демон4045d ago
oh i see just give me a sec
Metalkon
MetalkonOP5d ago
clicked the stuff and then back to original errors
демон404
демон4045d ago
No description
демон404
демон4045d ago
do you have the checked in Visual Studio installer? you might have mistakenly skipped that
Metalkon
MetalkonOP5d ago
No description
демон404
демон4045d ago
oh wait i think ik this is an android app right? you might have to right click on sln->prop->Target framework and pick the newest version
Metalkon
MetalkonOP5d ago
trying to debug in windows, but i also test on android
демон404
демон4045d ago
k so did you fix it> ?
Metalkon
MetalkonOP5d ago
cannot find any target framework
No description
Metalkon
MetalkonOP5d ago
when i go to sln properties
демон404
демон4045d ago
Alt+Enter
No description
демон404
демон4045d ago
No description
Metalkon
MetalkonOP5d ago
No description
No description
демон404
демон4045d ago
Target Android Framework
Metalkon
MetalkonOP5d ago
messed around with checking/unchecking targeted frameworks, now im trying to do some updates for the sdk's and everything
демон404
демон4045d ago
oh k
Metalkon
MetalkonOP5d ago
wasnt having any changes which is why im making srue sdk's are updated
демон404
демон4045d ago
btw did you download any android devices? in VS
Metalkon
MetalkonOP5d ago
yes been using it for a month
No description
демон404
демон4045d ago
oh i see
Metalkon
MetalkonOP5d ago
ill see if it runs on the android emulator, only been trying windows takes a few mins
демон404
демон4045d ago
alr
Metalkon
MetalkonOP5d ago
when trying to run it on android emulator, clicking yes gets the same error as before
No description
демон404
демон4045d ago
did you try repairing the android device
Metalkon
MetalkonOP5d ago
the android emulator runs fine if i start it up beforehand, and running the app opens it up in the emualtor if its already running
демон404
демон4045d ago
do you mind scroll up here?
No description
Metalkon
MetalkonOP5d ago
ill run it again to get that
демон404
демон4045d ago
k
Metalkon
MetalkonOP5d ago
sorry for the constant 5+ minute pauses, multitasking atm lol
демон404
демон4045d ago
take your time k?
Metalkon
MetalkonOP5d ago
just cancelling build, gonna restart emulator to see if i can get the deploy error again Build started at 10:47 PM... 1>------ Build started: Project: TellarknightApp, Configuration: Debug Any CPU ------ Build has been canceled. ========== Elapsed 03.222 seconds ==========
демон404
демон4045d ago
k
Metalkon
MetalkonOP5d ago
I'm trying rider for the first time (free version) and it seems to run on rider but not visual studio, at least the android version. Currently trying to figure out how to run a windows app in debug on rider for more testing purposes. The problem is 99% likely to be visual studio related
Metalkon
MetalkonOP5d ago
No description
Metalkon
MetalkonOP5d ago
was also never able to recreate that earlier to scroll up and check gonna uninstall visual studio completey, and reinstall
Metalkon
MetalkonOP5d ago
what im looking at, after reinstalling visual studio and whatever rider automatically did to the libraries and stuff
No description
Metalkon
MetalkonOP5d ago
Build started at 4:01 AM...
1>------ Build started: Project: TellarknightApp, Configuration: Debug Any CPU ------
1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: Assets file 'D:\Developer\C# Visual Studio\Tellarknight-App\TellarknightApp\obj\project.assets.json' doesn't have a target for 'net8.0-ios'. Ensure that restore has run and that you have included 'net8.0-ios' in the TargetFrameworks for your project.
1>Done building project "TellarknightApp.csproj" -- FAILED.
1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: Assets file 'D:\Developer\C# Visual Studio\Tellarknight-App\TellarknightApp\obj\project.assets.json' doesn't have a target for 'net8.0-windows10.0.19041.0'. Ensure that restore has run and that you have included 'net8.0-windows10.0.19041.0' in the TargetFrameworks for your project.
1>Done building project "TellarknightApp.csproj" -- FAILED.
1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: Assets file 'D:\Developer\C# Visual Studio\Tellarknight-App\TellarknightApp\obj\project.assets.json' doesn't have a target for 'net8.0-maccatalyst'. Ensure that restore has run and that you have included 'net8.0-maccatalyst' in the TargetFrameworks for your project.
1>Done building project "TellarknightApp.csproj" -- FAILED.
1>Skipping analyzers to speed up the build. You can execute 'Build' or 'Rebuild' command to run analyzers.
1>TellarknightApp -> D:\Developer\C# Visual Studio\Tellarknight-App\TellarknightApp\bin\Debug\net8.0-android\TellarknightApp.dll
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 4:01 AM and took 06.366 seconds ==========
Build started at 4:01 AM...
1>------ Build started: Project: TellarknightApp, Configuration: Debug Any CPU ------
1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: Assets file 'D:\Developer\C# Visual Studio\Tellarknight-App\TellarknightApp\obj\project.assets.json' doesn't have a target for 'net8.0-ios'. Ensure that restore has run and that you have included 'net8.0-ios' in the TargetFrameworks for your project.
1>Done building project "TellarknightApp.csproj" -- FAILED.
1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: Assets file 'D:\Developer\C# Visual Studio\Tellarknight-App\TellarknightApp\obj\project.assets.json' doesn't have a target for 'net8.0-windows10.0.19041.0'. Ensure that restore has run and that you have included 'net8.0-windows10.0.19041.0' in the TargetFrameworks for your project.
1>Done building project "TellarknightApp.csproj" -- FAILED.
1>C:\Program Files\dotnet\sdk\9.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5): error NETSDK1005: Assets file 'D:\Developer\C# Visual Studio\Tellarknight-App\TellarknightApp\obj\project.assets.json' doesn't have a target for 'net8.0-maccatalyst'. Ensure that restore has run and that you have included 'net8.0-maccatalyst' in the TargetFrameworks for your project.
1>Done building project "TellarknightApp.csproj" -- FAILED.
1>Skipping analyzers to speed up the build. You can execute 'Build' or 'Rebuild' command to run analyzers.
1>TellarknightApp -> D:\Developer\C# Visual Studio\Tellarknight-App\TellarknightApp\bin\Debug\net8.0-android\TellarknightApp.dll
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 4:01 AM and took 06.366 seconds ==========
Metalkon
MetalkonOP5d ago
and came back to this followed by original error screenshot, with a separate clone than the one i opened with rider
No description
демон404
демон4044d ago
You have to pick net8.0-macaralyst as the target framework based on the error
Metalkon
MetalkonOP4d ago
Something about rider messed things up to get those messages when opening in visual studio, imo best to start fresh with a new clone. After I opened up a fresh clone after reinstalling visual studio I got the error again, but now I get this extra popup beforehand. I did some tests it's working on android emulator but not windows.
No description
демон404
демон4044d ago
And deploy is already checked? Might have to restart pc ig
Metalkon
MetalkonOP4d ago
tested publishing it, this is what i got when i tried to use the msix installer file, tellarknightapp seems to be in the windows apps start menu folder but it's a blank file that cannot be run or uninstalled.
No description
демон404
демон4044d ago
oh so the thing is because the application dont have a valid certificate yet ,it's getting blocked expect if you create and set the certificate locally do you want to do that?
Metalkon
MetalkonOP4d ago
i know practically nothing about certificates, as far as i know my app doesnt have one unless it did it automatically.
демон404
демон4044d ago
give me a sec so
демон404
демон4044d ago
New-SelfSignedCertificate -Type CodeSigningCert -Subject "CN=YourAppName" -CertStoreLocation "Cert:\CurrentUser\My"
New-SelfSignedCertificate -Type CodeSigningCert -Subject "CN=YourAppName" -CertStoreLocation "Cert:\CurrentUser\My"
Powershell ;ref:https://learn.microsoft.com/en-us/powershell/module/pki/new-selfsignedcertificate?view=windowsserver2022-ps
New-SelfSignedCertificate (pki)
Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.
Metalkon
MetalkonOP4d ago
the "already installed" part is weird since i never published this project before, only debugger
демон404
демон4044d ago
open Certificate Manager by clicking Win+R then type certmgr.msc it is probably blocked to stop fake or unwanted app or non verified application from be ruined Personal > Certificates >All Tasks>Export and then ...selete the Certificate you created then in VS in Package.appxmanifest set the Publisher to CN=<YourAppName> does that work?
Metalkon
MetalkonOP4d ago
Ive got these now, but idk what to do with them, and in that package.appxmanifest file doesnt have anything about a publisher. Do I need to do this certification stuff to be able to uninstall the app so it will allow me to use debugger mode again?
No description
демон404
демон4044d ago
it will allow you to be able to run it but if you are planning to uninstall
демон404
демон4044d ago
No description
Metalkon
MetalkonOP4d ago
already checked before and it's not there. I'm currently under the impression that something got corrupted while I was using the debugger while making some changes and I cannot uninstall this app, and it won't let me use debugger because of that somehow. That's my guess
демон404
демон4044d ago
Get-AppxPackage | Select Name, PackageFullName
Get-AppxPackage | Select Name, PackageFullName
демон404
демон4044d ago
Get-AppxPackage (Appx)
Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.
демон404
демон4044d ago
look for the application name like TellarknightApp in the output the copy the full name which will look something like <AppName>_x64__8wsd.... then do
Remove-AppxPackage -Package <FullName>
Remove-AppxPackage -Package <FullName>
Metalkon
MetalkonOP4d ago
com.companyname.tellarknightapp com.companyname.tellarknightapp_1.0.0.0_x649zz4h110yvjzm ---
PS C:\Windows\System32\WindowsPowerShell\v1.0> Remove-AppxPackage -Package com.companyname.tellarknightapp
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor.
(Exception from HRESULT: 0x80073CFA)
Package Manager aborted the Remove operation because an invalid argument was passed: com.companyname.tellarknightapp.
NOTE: For additional information, look for [ActivityId] af86df2e-3654-0004-5799-8daf5436db01 in the Event Log or use
the command line Get-AppPackageLog -ActivityID af86df2e-3654-0004-5799-8daf5436db01
At line:1 char:2
+ Remove-AppxPackage -Package com.companyname.tellarknightapp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (com.companyname.tellarknightapp:String) [Remove-AppxPackage], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand

PS C:\Windows\System32\WindowsPowerShell\v1.0>
PS C:\Windows\System32\WindowsPowerShell\v1.0> Remove-AppxPackage -Package com.companyname.tellarknightapp
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor.
(Exception from HRESULT: 0x80073CFA)
Package Manager aborted the Remove operation because an invalid argument was passed: com.companyname.tellarknightapp.
NOTE: For additional information, look for [ActivityId] af86df2e-3654-0004-5799-8daf5436db01 in the Event Log or use
the command line Get-AppPackageLog -ActivityID af86df2e-3654-0004-5799-8daf5436db01
At line:1 char:2
+ Remove-AppxPackage -Package com.companyname.tellarknightapp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (com.companyname.tellarknightapp:String) [Remove-AppxPackage], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand

PS C:\Windows\System32\WindowsPowerShell\v1.0>
```PS C:\Windows\System32\WindowsPowerShell\v1.0> Remove-AppxPackage -Package com.companyname.tellarknightapp_1.0.0.0_x64
9zz4h110yvjzm Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor. (Exception from HRESULT: 0x80073CFA) NOTE: For additional information, look for [ActivityId] af86df2e-3654-0001-fd36-8aaf5436db01 in the Event Log or use the command line Get-AppPackageLog -ActivityID af86df2e-3654-0001-fd36-8aaf5436db01 At line:1 char:1 + Remove-AppxPackage -Package com.companyname.tellarknightapp_1.0.0.0_x ... + ~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (com.companyname...__9zz4h110yvjzm:String) [Remove-AppxPackage], IOException + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand PS C:\Windows\System32\WindowsPowerShell\v1.0>```
демон404
демон4044d ago
Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm"
Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm"
Metalkon
MetalkonOP4d ago
first time to using powershell lol
PS C:\Windows\System32\WindowsPowerShell\v1.0> Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm"
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor.
(Exception from HRESULT: 0x80073CFA)
NOTE: For additional information, look for [ActivityId] af86df2e-3654-0002-5e67-91af5436db01 in the Event Log or use
the command line Get-AppPackageLog -ActivityID af86df2e-3654-0002-5e67-91af5436db01
At line:1 char:2
+ Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (com.companyname...__9zz4h110yvjzm:String) [Remove-AppxPackage], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand

PS C:\Windows\System32\WindowsPowerShell\v1.0>
PS C:\Windows\System32\WindowsPowerShell\v1.0> Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm"
Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor.
(Exception from HRESULT: 0x80073CFA)
NOTE: For additional information, look for [ActivityId] af86df2e-3654-0002-5e67-91af5436db01 in the Event Log or use
the command line Get-AppPackageLog -ActivityID af86df2e-3654-0002-5e67-91af5436db01
At line:1 char:2
+ Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (com.companyname...__9zz4h110yvjzm:String) [Remove-AppxPackage], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand

PS C:\Windows\System32\WindowsPowerShell\v1.0>
демон404
демон4044d ago
open powershell as admin and try that or
Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm" -AllUsers
Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm" -AllUsers
Metalkon
MetalkonOP4d ago
same result
No description
демон404
демон4044d ago
try
dism /Online /Remove-ProvisionedAppxPackage /PackageName:com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm
dism /Online /Remove-ProvisionedAppxPackage /PackageName:com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm
cmd as admin
Metalkon
MetalkonOP4d ago
No description
демон404
демон4044d ago
this is the full name right?"com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm"
Metalkon
MetalkonOP4d ago
thats what i got here and it matches the error in visual studio, changing the appid in my project file doesn't change anything either
No description
демон404
демон4044d ago
can you run
Get-AppPackageLog -ActivityID af86df2e-3654-0002-5e67-91af5436db01
Get-AppPackageLog -ActivityID af86df2e-3654-0002-5e67-91af5436db01
and send a Screenshot of what it shows
Metalkon
MetalkonOP4d ago
No description
демон404
демон4044d ago
Stop-Service -Name "AppXSvc"
Remove-Item -Path "C:\ProgramData\Microsoft\Windows\AppRepository\StateRepository-Deployment.srd" -Force
Start-Service -Name "AppXSvc"
Stop-Service -Name "AppXSvc"
Remove-Item -Path "C:\ProgramData\Microsoft\Windows\AppRepository\StateRepository-Deployment.srd" -Force
Start-Service -Name "AppXSvc"
try doing that then run the Remove-.... again
Metalkon
MetalkonOP4d ago
Remove-Item : Cannot remove item C:\ProgramData\Microsoft\Windows\AppRepository\StateRepository-Deployment.srd: Access
to the path is denied.
At line:2 char:1
+ Remove-Item -Path "C:\ProgramData\Microsoft\Windows\AppRepository\Sta ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (C:\ProgramData\...-Deployment.srd:FileInfo) [Remove-Item], ArgumentExc
eption
+ FullyQualifiedErrorId : RemoveFileSystemItemArgumentError,Microsoft.PowerShell.Commands.RemoveItemCommand
PS C:\Windows\system32>
Remove-Item : Cannot remove item C:\ProgramData\Microsoft\Windows\AppRepository\StateRepository-Deployment.srd: Access
to the path is denied.
At line:2 char:1
+ Remove-Item -Path "C:\ProgramData\Microsoft\Windows\AppRepository\Sta ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (C:\ProgramData\...-Deployment.srd:FileInfo) [Remove-Item], ArgumentExc
eption
+ FullyQualifiedErrorId : RemoveFileSystemItemArgumentError,Microsoft.PowerShell.Commands.RemoveItemCommand
PS C:\Windows\system32>
демон404
демон4044d ago
is powershell opened as admin?
Metalkon
MetalkonOP4d ago
yes
демон404
демон4044d ago
takeown
Reference article for the takeown command, which enables an administrator to recover access to a file that was previously denied.
демон404
демон4044d ago
takeown /F "C:\ProgramData\Microsoft\Windows\AppRepository\StateRepository-Deployment.srd"
takeown /F "C:\ProgramData\Microsoft\Windows\AppRepository\StateRepository-Deployment.srd"
icacls "C:\ProgramData\Microsoft\Windows\AppRepository\StateRepository-Deployment.srd" /grant %username%:F
icacls "C:\ProgramData\Microsoft\Windows\AppRepository\StateRepository-Deployment.srd" /grant %username%:F
cmd as admin why is it SO difficultttttttttt then try running the remove thing again
Metalkon
MetalkonOP4d ago
No description
Metalkon
MetalkonOP4d ago
want me to stream things in vc? 😄
демон404
демон4044d ago
can you try
Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm" -AllUsers
Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm" -AllUsers
if still not working try
Metalkon
MetalkonOP4d ago
PS C:\Windows\system32> Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm" -AllUsers
Remove-AppxPackage : The remote procedure call failed.
The remote procedure call failed.
At line:1 char:1
+ Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.Windows.Appx.PackageManager.Comman
ds.RemoveAppxPackageCommand

PS C:\Windows\system32>
PS C:\Windows\system32> Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm" -AllUsers
Remove-AppxPackage : The remote procedure call failed.
The remote procedure call failed.
At line:1 char:1
+ Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.Windows.Appx.PackageManager.Comman
ds.RemoveAppxPackageCommand

PS C:\Windows\system32>
демон404
демон4044d ago
Get-AppxPackage -AllUsers | Where-Object { $_.PackageFullName -like "*tellarknightapp*" } | ForEach-Object { Remove-AppxPackage -Package $_.PackageFullName -AllUsers }
Get-AppxPackage -AllUsers | Where-Object { $_.PackageFullName -like "*tellarknightapp*" } | ForEach-Object { Remove-AppxPackage -Package $_.PackageFullName -AllUsers }
try that
Metalkon
MetalkonOP4d ago
PS C:\Windows\system32> Get-AppxPackage -AllUsers | Where-Object { $_.PackageFullName -like "*tellarknightapp*" } | ForEach-Object { Remove-AppxPackage -Package $_.PackageFullName -AllUsers }
Remove-AppxPackage : The remote procedure call failed.
The remote procedure call failed.
At line:1 char:110
+ ... ch-Object { Remove-AppxPackage -Package $_.PackageFullName -AllUsers ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.Windows.Appx.PackageManager.Comman
ds.RemoveAppxPackageCommand

PS C:\Windows\system32>
PS C:\Windows\system32> Get-AppxPackage -AllUsers | Where-Object { $_.PackageFullName -like "*tellarknightapp*" } | ForEach-Object { Remove-AppxPackage -Package $_.PackageFullName -AllUsers }
Remove-AppxPackage : The remote procedure call failed.
The remote procedure call failed.
At line:1 char:110
+ ... ch-Object { Remove-AppxPackage -Package $_.PackageFullName -AllUsers ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.Windows.Appx.PackageManager.Comman
ds.RemoveAppxPackageCommand

PS C:\Windows\system32>
демон404
демон4044d ago
do you think you can bootup in safe mode? then try the cmds again?
Metalkon
MetalkonOP4d ago
I could prolly try in a bit
демон404
демон4044d ago
k
Metalkon
MetalkonOP4d ago
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Windows\System32\WindowsPowerShell\v1.0> Stop-Service -Name "AppXSvc"
>> Remove-Item -Path "C:\ProgramData\Microsoft\Windows\AppRepository\StateRepository-Deployment.srd" -Force
>> Start-Service -Name "AppXSvc"
Remove-Item : Cannot remove item C:\ProgramData\Microsoft\Windows\AppRepository\StateRepository-Deployment.srd: The
process cannot access the file 'C:\ProgramData\Microsoft\Windows\AppRepository\StateRepository-Deployment.srd' because
it is being used by another process.
At line:2 char:1
+ Remove-Item -Path "C:\ProgramData\Microsoft\Windows\AppRepository\Sta ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\ProgramData\...-Deployment.srd:FileInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
Start-Service : Service 'AppX Deployment Service (AppXSVC) (AppXSvc)' cannot be started due to the following error:
Cannot start service AppXSvc on computer '.'.
At line:3 char:1
+ Start-Service -Name "AppXSvc"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],
ServiceCommandException
+ FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand

PS C:\Windows\System32\WindowsPowerShell\v1.0>
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Windows\System32\WindowsPowerShell\v1.0> Stop-Service -Name "AppXSvc"
>> Remove-Item -Path "C:\ProgramData\Microsoft\Windows\AppRepository\StateRepository-Deployment.srd" -Force
>> Start-Service -Name "AppXSvc"
Remove-Item : Cannot remove item C:\ProgramData\Microsoft\Windows\AppRepository\StateRepository-Deployment.srd: The
process cannot access the file 'C:\ProgramData\Microsoft\Windows\AppRepository\StateRepository-Deployment.srd' because
it is being used by another process.
At line:2 char:1
+ Remove-Item -Path "C:\ProgramData\Microsoft\Windows\AppRepository\Sta ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\ProgramData\...-Deployment.srd:FileInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
Start-Service : Service 'AppX Deployment Service (AppXSVC) (AppXSvc)' cannot be started due to the following error:
Cannot start service AppXSvc on computer '.'.
At line:3 char:1
+ Start-Service -Name "AppXSvc"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],
ServiceCommandException
+ FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand

PS C:\Windows\System32\WindowsPowerShell\v1.0>
PS C:\Windows\System32\WindowsPowerShell\v1.0> Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm"
Remove-AppxPackage : This service cannot be started in Safe Mode
This service cannot be started in Safe Mode
At line:1 char:1
+ Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], Exception
+ FullyQualifiedErrorId : System.Exception,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand

PS C:\Windows\System32\WindowsPowerShell\v1.0>
PS C:\Windows\System32\WindowsPowerShell\v1.0> Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm"
Remove-AppxPackage : This service cannot be started in Safe Mode
This service cannot be started in Safe Mode
At line:1 char:1
+ Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], Exception
+ FullyQualifiedErrorId : System.Exception,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand

PS C:\Windows\System32\WindowsPowerShell\v1.0>
Metalkon
MetalkonOP4d ago
No description
Metalkon
MetalkonOP4d ago
basically either same error or "cannot do this in safe mode"
демон404
демон4044d ago
oh i see can you do Win+R services.msc then see if Remote Procedure Call,DCOM Server Process Launcher and RPC Endpoint Mapper is set to Automatic and also AppXSvc is also set to Manual or Automatic then click start for each of them and try the cmd again in normal mode btw
Metalkon
MetalkonOP4d ago
cannot find an appxsvc
No description
демон404
демон4044d ago
it should be in the 'A" category
Metalkon
MetalkonOP4d ago
all the a's
No description
демон404
демон4044d ago
right there AppX Deployment and start it
Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm" -AllUsers
Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm" -AllUsers
Metalkon
MetalkonOP4d ago
ahh sorry, spent an all nighter so didnt notice it at the end of the name lol
демон404
демон4044d ago
no worries
Metalkon
MetalkonOP4d ago
PS C:\Windows\system32> Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm" -AllUsers
>>
Remove-AppxPackage : The remote procedure call failed.
The remote procedure call failed.
At line:1 char:1
+ Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.Windows.Appx.PackageManager.Comman
ds.RemoveAppxPackageCommand

PS C:\Windows\system32>
PS C:\Windows\system32> Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm" -AllUsers
>>
Remove-AppxPackage : The remote procedure call failed.
The remote procedure call failed.
At line:1 char:1
+ Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.Windows.Appx.PackageManager.Comman
ds.RemoveAppxPackageCommand

PS C:\Windows\system32>
refreshed it to make it run (was grayed out)
демон404
демон4044d ago
can you send a screenshot?
Metalkon
MetalkonOP4d ago
No description
демон404
демон4044d ago
can you try cmd-admin
dism /Online /Remove-ProvisionedAppxPackage /PackageName:com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm
dism /Online /Remove-ProvisionedAppxPackage /PackageName:com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm
Metalkon
MetalkonOP4d ago
C:\Windows\system32>dism /Online /Remove-ProvisionedAppxPackage /PackageName:com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm

Deployment Image Servicing and Management tool
Version: 10.0.19041.3636

Image Version: 10.0.19045.5131


Error: 2

The system cannot find the file specified.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

C:\Windows\system32>
C:\Windows\system32>dism /Online /Remove-ProvisionedAppxPackage /PackageName:com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm

Deployment Image Servicing and Management tool
Version: 10.0.19041.3636

Image Version: 10.0.19045.5131


Error: 2

The system cannot find the file specified.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

C:\Windows\system32>
демон404
демон4044d ago
Get-AppxPackage -AllUsers | Select Name, PackageFullName
Get-AppxPackage -AllUsers | Select Name, PackageFullName
and can you also send ScrrenShot of the output where the package is at?
Metalkon
MetalkonOP4d ago
No description
No description
Metalkon
MetalkonOP4d ago
i think thats it oops blue ss is wrong
демон404
демон4044d ago
can you try deleting it from the folder?
Metalkon
MetalkonOP4d ago
No description
демон404
демон4044d ago
can you delete it from ?
No description
Metalkon
MetalkonOP4d ago
deleted and no change, even restarted laptop
демон404
демон4044d ago
Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm" -AllUsers
Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm" -AllUsers
try again
Metalkon
MetalkonOP4d ago
PS C:\Windows\system32> Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm" -AllUsers
Remove-AppxPackage : The remote procedure call failed.
The remote procedure call failed.
At line:1 char:1
+ Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.Windows.Appx.PackageManager.Comman
ds.RemoveAppxPackageCommand

PS C:\Windows\system32>
PS C:\Windows\system32> Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm" -AllUsers
Remove-AppxPackage : The remote procedure call failed.
The remote procedure call failed.
At line:1 char:1
+ Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.Windows.Appx.PackageManager.Comman
ds.RemoveAppxPackageCommand

PS C:\Windows\system32>
демон404
демон4044d ago
try starting the RRC locator
Metalkon
MetalkonOP4d ago
No description
демон404
демон4044d ago
can you go to Registry Editor and go to
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Appx
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Appx
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Appx
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Appx
and delete any keys or entries for tellarknightapp last hope... and also in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
TellarknightApp
Metalkon
MetalkonOP4d ago
No description
демон404
демон4044d ago
try deleting that everything in the Tellar...
Metalkon
MetalkonOP4d ago
a few things that it wont let me delete, but been deleting everything with "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm"
демон404
демон4044d ago
try the ps cmd again ig
Metalkon
MetalkonOP4d ago
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Windows\system32> Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm" -AllUsers
Remove-AppxPackage : The remote procedure call failed.
The remote procedure call failed.
At line:1 char:1
+ Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.Windows.Appx.PackageManager.Comman
ds.RemoveAppxPackageCommand

PS C:\Windows\system32>
PS C:\Windows\system32>
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Windows\system32> Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_x64__9zz4h110yvjzm" -AllUsers
Remove-AppxPackage : The remote procedure call failed.
The remote procedure call failed.
At line:1 char:1
+ Remove-AppxPackage -Package "com.companyname.tellarknightapp_1.0.0.0_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.Windows.Appx.PackageManager.Comman
ds.RemoveAppxPackageCommand

PS C:\Windows\system32>
PS C:\Windows\system32>
restarting laptop
демон404
демон4044d ago
AAAAAAAAAAA
Metalkon
MetalkonOP4d ago
is it possible to change the id of the project so it doesn't conflict? (gonna need to have some rest soon for a few hours lol)
демон404
демон4044d ago
yea
Metalkon
MetalkonOP4d ago
though will say that simply renaming this does nothing
<ApplicationId>com.companyname.tellarknightapp</ApplicationId>
<ApplicationId>com.companyname.tellarknightapp</ApplicationId>
демон404
демон4044d ago
you can just open the VS then project prop and change the identity section
Metalkon
MetalkonOP4d ago
talking about applicationid?
No description
Metalkon
MetalkonOP4d ago
(one of the first things i tried was changing that a day or two ago)
демон404
демон4044d ago
No description
демон404
демон4044d ago
Alt + Enter
Want results from more Discord servers?
Add your server