This is a place devoted to giving you deeper insight
into the news, trends, people and technology behind Bing.
I want to use ping service for bing site map,
I used this code for google webmaster tools and it works fine but bing returns this error:
The remote server returned an error: (500) Internal Server Error
What should I do?
Dim pingUrl As String = "http://www.bing.com/webmaster/ping.aspx?siteMap="
Dim EncodeULR As String = System.Web.HttpUtility.UrlEncode(baseUrl & siteMapLocation & "index.xml")
Dim theUri As Uri
theUri = New Uri(pingUrl & EncodeULR)
Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(theUri)
request.Method = System.Net.WebRequestMethods.Http.Post
request.ContentLength = 0
request.ContentType = "application/x-www-form-urlencoded"
Dim response As System.Net.HttpWebResponse
response = request.GetResponse()
If request.HaveResponse And response.StatusCode = Net.HttpStatusCode.OK Then
hasErr = True
Errmessage = response.StatusCode
Errmessage += response.StatusDescription
Catch ex As Exception
hasErr = True
Alternatively, you can log into Bing Webmaster Center Tools and add the sitemap there.
I have already submited in webmaster tools,
I want to notify bing by ping service
Why ping service return 500 error?
500 errors occur when a client receives an HTTP data stream that contains a 500 status code. These errors are normally not client-side issues and easily resolved by hosting providers, so I suggest you to contact your hosting company.
The bing server return 500 intenal error, This is not my host server error. my host server (as a client) just send request to bing server (as the server) and bing server return internal error. So the error is in bing server.
So there are 2 possible problem:
1- There is an problem in details of my request, (It works fine with yahoo and google ping service)
2- There is a problem in bing ping servise
So I want bing server tell me the detail of error and what is the origin of the error?
I know the correct way to ping Bing is: http://www.bing.com/webmaster/ping.aspx?siteMap=[your sitemap web address]
Thansk for your kind answer
I know that, I want to khonw when I ping y url to bing with that syntax, why it returns error
RoshdI know that, I want to khonw when I ping y url to bing with that syntax, why it returns error
Please provide the URL of your site.
Yes, please provide the url of the site.
You are using a Post, you should use a Get.
Something as simple as this should do the job:
WebClient client = new WebClient ();
string reply = client.DownloadString (pingUrl);
© 2013 Microsoft