本文介绍了继续运行“指定的值具有无效的HTTP标头字符。参数名称:name"收到原始通知(MPN)的HttpNotificationReceived回调时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继续遇到"指定的值包含无效的HTTP标头字符。参数名称:name"收到原始通知(MPN)的HttpNotificationReceived回调时出错。


回调发生,但失败并显示以下堆栈跟踪:


> System.Net.dll!System.Net.ValidationHelper.CheckBadWebHeaderChars(string name,bool isHeaderValue)+ 0x166 bytes


  System.Net.dll!System.Net.WebHeaderCollection.this [string] .set(字符串名称,字符串值)


  Microsoft.Phone.dll!Microsoft.Phone.Notification.HttpNotificationChannel.OnNotificationReceived(System.IntPtr blob1,uint blobSize1,System.IntPtr blob2,uint blobSize2)+ 0xd2 bytes


  Microsoft.Phone.dll!Microsoft.Phone.Notification.HttpNotificationChannel.ChannelHandler(uint eventType,System.I ntPtr blob1,uint int1,System.IntPtr blob2,uint int2)+ 0x10 bytes


  Microsoft.Phone.dll!Microsoft.Phone.Notification.HttpNotificationChannel.Dispatch(object threadContext)+ 0x74 bytes


  mscorlib.dll!System.Threading.ThreadPool.WorkItem.WaitCallback_Context(object state)+ 0x18 bytes


  mscorlib.dll !System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext,System.Threading.ContextCallback callback,object state)+ 0x63 bytes


  mscorlib.dll!System.Threading.ThreadPool.WorkItem.doWork(object o)+ 0x47 bytes


  mscorlib.dll!System.Threading.Timer.ring()+ 0x70 bytes


 

解决方案

I Keep running into "Specified value has invalid HTTP Header characters. Parameter name: name" Error when recieving HttpNotificationReceived callback for raw notifications (MPN).

The call back occurs, but fails with the following stack trace:

> System.Net.dll!System.Net.ValidationHelper.CheckBadWebHeaderChars(string name, bool isHeaderValue) + 0x166 bytes
  System.Net.dll!System.Net.WebHeaderCollection.this[string].set(string name, string value)
  Microsoft.Phone.dll!Microsoft.Phone.Notification.HttpNotificationChannel.OnNotificationReceived(System.IntPtr blob1, uint blobSize1, System.IntPtr blob2, uint blobSize2) + 0xd2 bytes
  Microsoft.Phone.dll!Microsoft.Phone.Notification.HttpNotificationChannel.ChannelHandler(uint eventType, System.IntPtr blob1, uint int1, System.IntPtr blob2, uint int2) + 0x10 bytes
  Microsoft.Phone.dll!Microsoft.Phone.Notification.HttpNotificationChannel.Dispatch(object threadContext) + 0x74 bytes
  mscorlib.dll!System.Threading.ThreadPool.WorkItem.WaitCallback_Context(object state) + 0x18 bytes
  mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x63 bytes
  mscorlib.dll!System.Threading.ThreadPool.WorkItem.doWork(object o) + 0x47 bytes
  mscorlib.dll!System.Threading.Timer.ring() + 0x70 bytes
 

解决方案


这篇关于继续运行“指定的值具有无效的HTTP标头字符。参数名称:name"收到原始通知(MPN)的HttpNotificationReceived回调时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 23:21