Visual Studio 2017 UWP Apps crash - windows-10-universal

I have just installed Visual Studio 2017 Ent on Windows 10 (Creators update patch level)
After the installation UWP apps that I have developped no longer start. They crash with this error:
"Unable to activate Windows Store app. The xzy.exe process started, but the activation request failed with error 'The app didn't start'"
Event creating a new project with a blank UWP application produces the same error.
The failure happens before the App.xaml.cs init is called.
Has anyone else ancountered this issue, and if so - how was ti resolved?
Edit: after further testing - it woudl appear that apps installed through Windows App Store work ok. Any side loaded apps fail.

I have managed to resolevd the issue by reinstalling the Microsoft.NET.CoreRuntime.1.1.appx and Microsoft.VCLibs.x64.Debug.14.00.appx dependencies from the app packages folder. Hope this will save someone some time.

Related

UWP App WPF .Net Core has no access right to dependencies

We're making a new application using WPF .Net Core. To use the auto update function we decided to pack it with the MSIX Packaging Tool as a UWP App in VS2019. I was able to host the appinstaller File on an IIS and to Install the App over a link to that file over the web. Auto updating is also working fine.
Now to the problem:
When I run the installed App it's icon is not showing in the task bar but it is shown in the Task-Manager using a lot of cpu. In the Process Monitor it shows that the App tries to access its dependencies (like PresentationFramework.dll) but is not successful as the result is always "File locked with only readers". The DLL itself is present in the WindowsApps/xxx/ Path. Also I can not start the EXE manually as my user do not have the rights. What am I missing here?
Edit: Also I realized now that my app is only starting as a background process in the task manager and not as an app. When I go to the app directory under WindowsApps/xxx/MyApp I can not start the EXE directly because of no rights as mentioned before. But when I copy the whole folder I can start the EXE, the GUI appears and the app is an app again in the task manager.
We found an answer. As the GUI is a WPF .Net Core Project and we make the setup with a Windows Application Packaging Project to generate a UWP App from it the technology used seems to be the so called Desktop Bridge.
In the process monitor it seems that it tries to access the files under the correct path but somehow it does it not in the right way as long as the application path is not set correctly in the WPF Projects App.xaml.cs.
To fix this use the solution from Andrew Leader

Error while publishing an EF Core Angular app to Azure App service

One year back I have worked for a project using the EF Core Angular app (.NET Core 2.1). Now we got some modification to the existing application. So when I try to execute the same application by changing the connection string in the appsettings.json file, it's working fine in local machine. But when I try to publish it in Azure app service it's giving some irrelevant error.
Note: The database is in an Azure VM earlier and now. But when we stop the VM and start the IP will be changed so we need to change only the connection string.
I tried installing all the run time SDK and host bundles. But it doesn't work. I wonder when it is working fine in local, Why it's not getting published in Azure.
Can somebody help me with this?
Congratulations that the issue is error is solved by #vamsi himself:
"I have fixed the issue by commenting the some of the lines in .csproj file."

Getting error when create octopus release

I am using TFS as a CI tool and using Octopus to deploy my C# Web API project. Build artifacts package pushing and creating release successfully from TFS to octopus side, But When try to deploy for IIS in Assembly server, It's getting error as like this, Please check attached error log.
The line that's throwing that error is this one in Calamari. That function Assert-WebsiteExists only gets invoked when you try to do one of the following:
A) Deploy a Web Site in IIS under an already existing Web Application.
B) Deploy a Virtual Directory in IIS under an already existing Web Application.
Both of the above will fail if the parent Web Application (in your case WKLS.Mockservice) doesn't exist before you run that step, which is apparently what's happening in your case.
If you are trying to create the Web Application from that same Octopus deployment process, then you should use this step. If you want to use a Web Application that already exists, then perhaps you just typed the name incorrectly?

How to publish Windows Phone 8.1 Silverlight app to Windows Phone store?

I created Windows Phone 8.1 Silverlight app, and I can't to upload it into WP store. I want to use Create App Packages tool in Visual Studio 2013 Professional, but it's impossible for Silverlight apps. I read many guides on dev.windows.com. It's necessary to upload only .appx, .appxbundle or .appxupload files, but I have .xap file only in Bin\ARM\Release folder. May anyone help me?
I'm having the same problem, which I just solved.
WP8.1 Silverlight application may not be packaged with the "Create App Packages" tool, so you have to perform several operations manually.
The process is described on msdn (https://msdn.microsoft.com/en-us/library/windows/apps/dn655122%28v=vs.105%29.aspx)
- First you have to start the submission of the app on your msdn dashboard.
- From here, you'll get some informations, such as reserved application name, and several IDs that you have to edit into both WMAppManifest.xml and Package.appxmanifest
- Then you can deploy your app (or run the emulator for release)
- This last step will create the package you can upload.

Lightswitch: Load operation failed for query 'GetAuthenticationInfo'. The remote server returned an error: NotFound

I'm currently creating a small silverlight application for testing, to see if it can works with other projects.
In debug, everything is working, but once I deploy it to my local IIS Server, I got this error:
Load operation failed for query 'GetAuthenticationInfo'. The remote
server returned an error: NotFound.
I've done a lot of research on the net, but nothing seems to resolve my problem.
I've the anonymous mode correctly enabled(and all other not) I've
done a clean publish on my IIS(7.5) from visual studio
My IIS has the two IIS lightswitch extensions, installed through the WPI
I'm not using the beta version
The application is just displaying some list, I've the windows auth set.
I've tried to publish as a Desktop application, as a Web application for the Client configuration, and Application serverconfiguration set to local or IIS Server, it's always the same problem(the goal is to have a two tier application(database - application), but hosted in an htm file).
I can't find what is going wrong, My IIS is just fresh installed with all components
Try restoring .NET Framework 4 at first, before diving into the problem deeper.
This solved the problem in my case
check that if you ".net framework 4.5 advanced service->WCF service -> HTTP activation" is checked or not , I solved it by this way.
When I get that darn "Not Found" ( which could be any number of things ) I crank up Fiddler and examine what is actually being returned by the web service. If you do that, you'll see the real error and a lot more about what's happening in the communications.
I had the same problem when I only had .NET Framework 4.5 installed on the server.
My solution was:
Uninstall .NET Framework 4.5 (you have to do that in order to install .NET Framework 4.0)
Install .NET Framework 4.0
Reinstall .NET Framework 4.5
Make sure that you site runs under the applicationpool ASP.NET v4.0.

Resources