I'm trying to find any documentation on Unity configuration but it now seems that this is only available up to version 2.0? I'm getting version 2.1 through NuGet and the configuration just seems to be different...
e.g. <register /> is done using <type /> in Unity 2.1? Is there any documentation available on Unity 2.1 configuration?
Unity 2.0:
<register type="IInterfaceAlias" mapTo="ClassAlias">
<lifetime type="singleton" />
</register>
Unity 2.1:
<type type="IInterfaceAlias" mapTo="ClassAlias">
<lifetime type="singleton" />
</type>
Thanks for clearing up anybody!
Unity 2.1 is just a maintenance release. Nothing changed regarding how to configure the container from v2.0
Related
/build/Debug/ant/pdm.jar!/META-INF/versions/9/org/apache/logging/log4j/util/Base64Util.class: Class Version Error. Please recompile with a supported JDK or check for an update to DashO which supports the new version.
We are using ant as build tool and Dasho as the code trimming tool.
We are migrating our code from log4j1.x to log4j2.x and we replaced old jar with new Jars(2.xapi & 2.xcore)
Since then after adding the libraries itself we are getting this error while building the project,as we are using java 8 and as per official log4j2 documentation any version of lof4j2 above 2.17.1 does support java8
Found this line when searched for this Base64Util.class in the official documentation of 2.x
link
Tried using 2.17.1 && 2.15 && 2.13 but no luck
Why this unsupported JDK is coming even after using java8 in project??
In order to support Java 8 and all later releases the log4j-api and log4j-core artifacts are multi-release jars. The class file that gives you problems uses Java 9 bytecode.
According to their web site DashO does not support multi-release jars.
Remark: removing the Java 9 classes from log4j-api and log4j-core will break logger context selection and location information on JDK 9 and later, so it is not an option.
I'm currently using .Net framework 4.0 in my application. Upon checking i could see that the samesite attribute is available only from .Net framework 4.7.2 version(https://learn.microsoft.com/en-us/dotnet/api/system.web.httpcookie?view=netframework-4.0). Can anyone please let me know how to set samesite=None without upgrading the .Net version or How to handle samesite cookie in .Net version 4.0
Despite what Microsoft's documentation currently says about the minimum version, it does work on .NET 4.0, at least if you do it in your config file. Example:
<system.web>
<sessionState cookieSameSite="None" />
</system.web>
Why I need to check pushNotifications capability, when I use SocketActivityTrigger? What is the purpose of it?
You don't.
Push notification capability (ID_CAP_PUSH_NOTIFICATION) is for Windows Phone 8/8.1 Silverlight.
Both Windows Runtime 8.1 and UWP (Windows 10) do not have a push notifications capability, see the list of all capabilities in UWP.
If you check the official sample for SocketActivityTrigger, you'll see it only uses capabilities for internet connectivity.
<Capabilities>
<Capability Name="internetClient" />
<Capability Name="privateNetworkClientServer" />
</Capabilities>
I am working on web application with JSF and I try to make notifications by Primefaces Push but when I run the project I got this exception :
java.lang.NoSuchFieldError: framework
at org.primefaces.push.PushServlet.configureFramework(PushServlet.java:66)
at org.primefaces.push.PushServlet.configureFramework(PushServlet.java:36)
at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:74)
Also I added this Libraries :
primefaces 5.0 atmosphere-runtime-2.3.5 slf4j-api-1.7.7 commons-lang3-3.4
You should use an Atmosphere version that is compatible with PrimeFaces 5.0. That is 2.1.3 according to the docs, pom and releasenotes.
I got the following certification error when submitting to the app store.
[My App Name] takes a dependency on Microsoft .Net Native Runtime Package 1.x framework but is missing the framework dependency declaration in the manifest.
[My App Name] takes a dependency on Microsoft .Net Native Framework Package 1.x framework but is missing the framework dependency declaration in the manifest.
How does one provide this dependency in the appxmanifest? What's the syntax?
I have this currently:
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
</Dependencies>
I had the same error, and I found that ticking "Optimise Code" in build options made it go away.
I find that with Microsoft poke-and see is the most reliable technique.
Just had a similar issue. Try adding a PackageDependency line to the Package.appmanifest:
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
<PackageDependency Name="Microsoft.NET.Native.Runtime.1.4" MinVersion="1.4.24201.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" />
</Dependencies>
See: UWP App Package created with Visual Studio 2015 Update 3 won't install on phone