Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialization fails in WP8 #22

Open
mattisam opened this issue Jun 8, 2017 · 4 comments
Open

Initialization fails in WP8 #22

mattisam opened this issue Jun 8, 2017 · 4 comments

Comments

@mattisam
Copy link

mattisam commented Jun 8, 2017

Hi,
When I call GoogleAnalytics.Current.Config.TrackingId = trackingId;
in WP8, I experience a crash:

System.TypeInitializationException: The type initializer for 'Plugin.GoogleAnalytics.GoogleAnalyticsImplementation' threw an exception. ---> System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Plugin.GoogleAnalytics.DeviceInfo.<ReadFileAsync>d__27.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at System.Threading.Tasks.Task`1.get_Result()
   at Plugin.GoogleAnalytics.DeviceInfo.ReadFile(String path)
   at Plugin.GoogleAnalytics.PlatformInfoProvider.GetAnonymousClientId()
   at Plugin.GoogleAnalytics.PlatformInfoProvider..ctor(IDeviceInfo deviceInfo)
   at Plugin.GoogleAnalytics.PlatformInfoProvider..ctor()
   at Plugin.GoogleAnalytics.GoogleAnalyticsImplementation..cctor()
   --- End of inner exception stack trace ---
   at Plugin.GoogleAnalytics.GoogleAnalyticsImplementation..ctor()
   at Plugin.GoogleAnalytics.GoogleAnalytics.CreatePluginGoogleAnalytics()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at System.Lazy`1.get_Value()
   at Plugin.GoogleAnalytics.GoogleAnalytics.get_Current()
@KSemenenko
Copy link
Owner

Hello! Thanks for your feedback.
Unfortunately I do not have any more wp8 devices, so I can not test it.
Apparently there is something with the file system. I will be grateful for any help.

@mattisam
Copy link
Author

mattisam commented Jun 9, 2017

Ok, I don't have WP8 device either, but I just compiled the software for WP8 and run it in a new device.

I will try to find time to check this..

@KSemenenko
Copy link
Owner

KSemenenko commented Jun 9, 2017

This is an important point! What do you have for the device?

@mattisam
Copy link
Author

This is RM-984_1005, which is Nokia Lumia 830 and it has WP8.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants