Ich habe phonegap-plugin-push zu meiner Barebones phonegap App hinzugefügt. Wenn ich die Anwendung erstellen und ausführen, erhalte ich die Fehlermeldung, dass das ServicePackager-Paket nicht ordnungsgemäß geladen wurde. Es wirft einen Fehler beim Aufruf der folgende:phonegap-plugin-push: Das Paket ServicePackager wurde nicht geladen
pushRegistration.on('notification', function (data, d2) {
alert('Push Received: ' + data.message);
});
Das Aktivitätsprotokoll zeigt den folgenden Fehler:
-
CreateInstance failed for package [ServicesPackage][Exception has
been thrown by the target of an invocation.]:{ at
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean
publicOnly, Boolean noCheck, Boolean& canBeCached,
RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean
skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly,
Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic) at
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes, StackCrawlMark& stackMark) at
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes) at
System.Activator.CreateInstanceFromInternal(String assemblyFile,
String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes, Evidence securityInfo) at
System.AppDomain.CreateInstanceFrom(String assemblyFile, String
typeName)}[Could not load file or assembly
'Microsoft.VisualStudio.WindowsAzure.CommonAzureTools.Contracts.1.5,
Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file
specified.]:{ at
Microsoft.VisualStudio.WindowsAzure.Services.Package.ServicesPackage..ctor()}
ich nicht Kopf oder Zahl aus machen können, was seine versuchen, Sag mir.
Hinweise:
Ich folge Azure Artikel Add Push Notifications to your Apache Cordova App.
Ich hatte erst vor kurzem Probleme mit VS2015/Cordova, bei denen einige Cordova-Projektsystemkomponenten nicht geladen werden konnten. Durch das Leeren und Wiederherstellen des VS MEF-Cache wurde alles wieder funktioniert.
Die gleiche Anwendung läuft perfekt auf einem anderen Computer. Tatsächlich habe ich den gesamten Projektordner auf einen anderen Computer kopiert und erfolgreich ohne Änderungen gebaut und ausgeführt. Hilfe
Bitte, Mike