UWP, WinUI, WPF, and WinForms SDK Troubleshooting

Important

Visual Studio App Center is scheduled for retirement on March 31, 2025. While you can continue to use Visual Studio App Center until it is fully retired, there are several recommended alternatives that you may consider migrating to.

Learn more about support timelines and alternatives.

Analytics data doesn't show up in the portal

  1. Make sure you've integrated the SDK modules correctly.

  2. Make sure correct App Secret is included along with the Start() method call. You can copy the exact Start() code by opening the app in the portal and navigating to Getting Started page.

  3. In the console, look for an Assert log with the message - "App Center SDK configured successfully". This log verifies that the SDK is configured successfully and your logs will be forwarded.

  4. If you want to see the logs that get sent to the backend, change the log level to Verbose in your application and the SDK will print logs in the console. Call the API below before you start the SDK.

    AppCenter.LogLevel = LogLevel.Verbose;
    
  5. Make sure your device is online.

  6. At times, logs might take few minutes to surface in the portal. Wait for some time if that’s the case.

  7. To check if App Center backend received your data, go to the Log flow section in Analytics service. Your events should appear once it's been sent.

Use App Center in the background tasks

The App Center SDK doesn't support sending logs from a background task. It happens due to the process of background task can terminate unexpectedly and doesn't wait for the finnishing job of async tasks. Read more about background tasks.

Protect the App Center secret value

The app_secret is an identifier of your app, it's required to know which app the traffic applies to and it can not be used to retrieve or edit existing data. If your app_secret is exposed, the biggest risk is sending bad data to your app, but it won't have an effect on the security of the data.

To retrieve any sensitive data, you'd need to provide an app/user token, which is generated on the client’s side. There's no way to make data on the client's side completely secure.

You can improve your app's security by using an environment variable to inject the app secret into your code. That way, the secret isn't visible in your code.