我的.net2003不能“在web服务器上启动调试”!以前正确的程序现在执行时抱错:
System.InvalidOperationException: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.之前装的是2003,最近卸载了它然后先装了.net2005 再装.net2003 (IIS是以前装了的)

解决方案 »

  1.   

    System.InvalidOperationException: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
    它是说的编码格式有问题啊!改下嘛
    <?xml version="1.0" encoding="GB2312"?>
    <?xml-stylesheet type='text/xml'href='/expert/Xsl/2.xsl'?>
    <Topic>
    <Issue>
    <PostUserNickName>s</PostUserNickName>
    <rank>一级(初级)</rank>
    <ranknum>user1</ranknum>
    <credit>100</credit>
    ......
    如上代码
     type='text/xml'
      

  2.   

    <?xml-stylesheet type='text/xml' href='/expert/Xsl/2.xsl'?>是这样的
      

  3.   

    现在就是不知道怎样解决,页面出错&&不能调试