Onesignal API in Windows Phone 8.1 Silverlight App - silverlight

I made a little app started with Databound App template. Didn't have an idea that it made use of Silverlight and at same time that this was making this framework uncompatible. I have to install Onesignal API to it for push notifications. So, I followed the documentation procedure.
It failed at 1.4 with this error when pressing OK:
Microsoft Visual Studio
A reference to a higher version or incompatible assembly cannot be added to the project
So I tried to do the same thing, in case I did something wrong, on the Blank App template which doesn't feature Silverlight and it worked.
How can either install the API in my Silverlight project or "convert" (or migrate) it to non-Silverlight?

Related

Is it possible to add Windows Forms to .NET Core console application?

Just like how we right click on the project and would be able to add Windows Form in the .NET Framework console application, is it possible to add Windows Form in .NET Core console application?
Create a .net core winform project, compile, manually reference System.Windows.Forms.dll and System.Drawing.Common.dll into the project, then use [STAThread] for the Main function, it works for me.
NuGet manager, Install-Package System.Configuration.ConfigurationManager

Visual studio 2019 and IdentityServer project template

Trying to follow the tutorials for IdentityServer using Visual studio 2019.
As per the instructions created a .Net Core Web Application and then an MVC project type and as per tutorials a welcome screen for IdentityServer should come at run time
But i am getting an MVC page template only like this
Is there any difference in project templates based on new visual studio updates? Or what is the correct selection of project types to get the window similar to the first image ?
It seems you are running the mvc application insteed of the identity provider service.
Go to the solution properties, Common Properties, and select Multiple startup projects. Then change the Action to Start for debug all your projects.
If you prefer start only your identity provider service set it as the Single startup project.

Lync API using PresenceIndicator outputting TypeInitializationException within InitializationCompleted

I am using the Lync API within a WPF application. I have used the Office365 Lync Lab 9.1 within the training kit. However when I move the code into my WPF application the PresenceIndicator or ContactList doesn't work. The controls are displayed however the status of the Lync user is not shown. I am using the exact same accounts that are working within the Office365 Training Lab 9.1.
When I add logging I am shown errors like the following for the PresenceIndicator:
Applying template...
Control 'PresenceIndicator' entering 'OnLoaded'
UCClientInitializationFailed:Failed to Create Provider. Error Type: TypeInitializationException
I am also trying the ContactList and that is outputting:
UCClientInitializationFailed:Failed to Create Provider. Error Type: TypeInitializationException
Also the InitializationError property within the InitializationCompleted event is showing an Unknown error. How would I troubleshoot this issue further?
This is a complete stab in the dark, but are you attempting to add controls to an existing WPF application that has never integrated with Lync before?
It may be that you are missing references in your app - double-check you have references to the following files in %program files%\Microsoft Lync\SDK\Assemblies\Desktop
Microsoft.Lync.Controls.dll
Microsoft.Lync.Controls.Framework.dll
Microsoft.Lync.Model.dll
Microsoft.Lync.Utilities.dll
Microsoft.Office.Uc.dll
Also worth checking:
Is your app builing against .NET Framework 3.5 or 4?
Are you building for AnyCPU?
If that doesn't help, you could try creating a new WPF application using the "Lync WPF Application" template in Visual Studio. If this works correctly, then compare this against your appplication for any differences in references, configuration etc.
This MSDN page may be useful.

Debug Silverlight component from MVC application Visual Studio 2010

In my solution I have a MVC project. Then I added a Silverlight project. When I added the Silverlight project, I set to include it in the existing web application (MVC project).
It added an .aspx page that contains the Silverlight component. The problem is that I cannot debug into the Silverlight code when I start the ASP.NET MVC application. I set a breakpoint in the Application_Startup function in the Silverlight code, but it never stops there. On the breakpoint I have a tooltip:
The breakpoint will not currently be hit. No symbols have been loaded for this document
How do I fix this problem?
Which browser are you using? I've had mixed results with debugging Silverlight with anything besides Internet Explorer, so I'm making sure to use Internet Explorer when developing Silverlight applications.
If you're using Internet Explorer, then Evan's solution should work (at least that's what has stopped me some time - Silverlight debugging disabled in the web project).
Also check that your Silverlight application is present in the list located under Web project properties > Silverlight Applications.
I found the problem. The browser was caching the Silverlight application. I solved that with the following code when initializing the Silverlight component:
param name="source" value="ClientBin/form.xap?<%= DateTime.Now.Ticks %>"

Silverlight debug problem blank page

I have a Visual Studio 2010 and silverlight 4 over it. When I'm trying to run a simple application hello world in a browser, it shows only the blank page.
The type 'Deployment' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
I think the problem is above but how can I solve it?
did you use silverlight with web application? When you create a silverlight app it have one web site associated. On the default.aspx, you have the object. Check the parameters off the object and verify if everything is ok and you have installed all components that support it.

Resources