UPDATE 2:
I did not mention that I do not get the error below in Chromium, but I do get it in IE8.
UPDATE 1:
Response Headers:
HTTP/1.1 200 OK
Date: Fri, 20 May 2011 15:40:23 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: application/json; charset=utf-8
Content-Length: 85
ORIGINAL QUESTION:
I have a serverside page which generates json data, which works perfectly well when accessed by jquery. However, when i navigate to the webpage which actually generates the json data, I get the following clientside error message in the browser:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Invalid at the top level of the document. Error processing resource 'http://companyname.com/json/data.aspx?id=7
[{"key":7,"value":"Default"}]
Why does that happen and how can I stop the error message from appearing?