Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3315650
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:22:31+00:00 2026-05-17T22:22:31+00:00

Folks, I’ve got my sample application for WP7 running. I’ve also got a service

  • 0

Folks,
I’ve got my sample application for WP7 running. I’ve also got a service (WCF) and I’ve got a push notification sender (WPF). So far this looks pretty similar to the push notification arrangement that Microsoft has set up in the WP7 training kit. When I launch the app and then exit the app to go back to the home screen, I am able to successfully send a toast notification – it appears on the top, makes a little noise, displays the right text, and launches my app when you tap it.

However, when I send the same exact shell toast notification to my application while the application is running in the foreground, I get an error complaining that there is an invalid character for the root XML node. This error occurs deep within the bowels of WP7 as my toast notification handler is never called and the debugger can’t show me the line of code that generated the error.

I am using the NotificationSenderUtility that comes with the WP7 push notification sample in the training kit to send the notifications.

If anybody knows why this is happening or how I can fix it, I would love to know because I’ve got a demo I’m giving at a code camp on Saturday and push notifications are supposed to be part of the demo 🙂

Here’s the stack trace I get:

at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(Int32 res, String resString, String[] args)
at System.Xml.XmlTextReaderImpl.Throw(Int32 res, String resString)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at Microsoft.Phone.Notification.ShellObjectChannelInternals.ParseXMLToProperties(String xmlString, IDictionary`2& propertyBag)
at Microsoft.Phone.Notification.ShellObjectChannelInternals.OnNotificationReceived(IntPtr blob, UInt32 blobSize)
at Microsoft.Phone.Notification.ShellObjectChannelInternals.ChannelHandler(UInt32 eventType, IntPtr blob1, UInt32 blobSize1, IntPtr blob2, UInt32 blobSize2)
at Microsoft.Phone.Notification.HttpNotificationChannel.Dispatch(Object threadContext)
at System.Threading.ThreadPool.WorkItem.doWork(Object o)
at System.Threading.Timer.ring()


Thanks,
Kevin

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T22:22:31+00:00Added an answer on May 17, 2026 at 10:22 pm

    Check your code on client and sender complies with the latest documentation. There was a change to the spec during beta.

    How to: Send a Push Notification from a Web Service for Windows Phone

    How to: Set Up a Notification Channel for Windows Phone

    It’s possible the tools/code you’re using from the training kit hasn’t been brought up to spec with that yet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Folks, I'm creating a new WCF Service and started with my Service interface. Looks
Folks, TIBCO has announced support for WCF channels back in April - has anything
Hey folks - I'm writing a pretty simple iPhone application. The data comes from
Folks, we're running into some sequencing troubles with our MSI install. As part of
Folks, I'm building a pretty standard workflow that I want exposed via a WCF
Folks, in my application I'm using clock_gettime(CLOCK_MONOTONIC) in order to measure the delta time
Folks, It's a nice scope for me to architect a fairly big portal application.
Hi folks I'm trying to set up tagging in my CakePHP application. I've been
Folks, I've got a stack overflow in my .net 4.0 app. using WinDbg I've
Folks, I need a solution that allows drag-and-drop cell over the table. The cells

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.