Answered by:
SharePoint + ISA Server Forms Authentication + WLW = 'Invalid response document returned from XmlRpc server'

Question
-
I maintain several blogs powered by SharePoint 2007. There are two ways to reach each of the blogs. The first one is direct access from our corp network. It uses basic authentication, so it works quite fine with WLW. But most of our bloggers work from home, so they want to be able to post via the Internet.
Our blogs are published with ISA Server 2006. It uses Forms-baset authentication (FBA) because we need user-frienly logon dialogs. Some programs like Word 2007 can handle this correctly. We have no issues blogging with Word from the Internet via ISA's FBA. But we like the features of Writer. And it seems to have problems with FBA. If I try to add a blog using public URL, which is published with ISA's FBA, I get the following error message:
---------------------------
Unexpected Error Occurred
---------------------------
An unexpected error occurred while attempting to detect weblog settings:Invalid Server Response - The response to the blogger.getUsersBlogs method received from the weblog server was invalid: Invalid response document returned from XmlRpc server
---------------------------
OK
---------------------------
Are there any plans to add support for FBA in WLW? Thanks in advance.- Edited by PronichkinMicrosoft employee Friday, June 6, 2008 10:33 AM fixed formatting
Thursday, June 5, 2008 7:19 PM
Answers
-
Okay, so here's the real solution. It is rather simple and 100% done via supported methods. All you need is to change some properties of your ISA Server installation, so it has to be done by ISA Server admin.
Firstly, please read about Fallback to Basic authentication feature at "Authentication in ISA Server 2006". Secondly, go to "Managing User-Agent Mappings" and create the scripts listed there on your ISA Server. And after that you should execute the follwing commands.
cscript AddUserAgentMapping.vbs "*Windows Live Writer*" Basic
cscript EditUserAgentMapping.vbs up 11
cscript EditUserAgentMapping.vbs up 10
cscript EditUserAgentMapping.vbs up 9
cscript EditUserAgentMapping.vbs up 8
That's all. Your Windows Live Writer should now be fully functional through FBA on this particular ISA Server (or Array). Thanks Alexander Trofimov for this tip.- Marked as answer by PronichkinMicrosoft employee Thursday, December 18, 2008 9:29 AM
Thursday, December 18, 2008 9:28 AM
All replies
-
Проничкин
Thank you for your comment and input. We had not heard about this problem with Writer before.
This is a great suggestion for something we should consider in the future. We will look into trying to address this in the future.
Becky Pezely (MSFT)- Marked as answer by Becky Pezely Friday, June 6, 2008 12:29 AM
- Unmarked as answer by PronichkinMicrosoft employee Thursday, December 18, 2008 9:29 AM
Friday, June 6, 2008 12:29 AM -
Thanks Becky, I'm very glad to hear that you're interested in this problem. Please don't hesitate to contact me at artem-at-pronichkin.com in case you need some configuration samples or testing for this issue.Friday, June 6, 2008 10:32 AM
-
Just wanted to point out I have exactly the same frustration with ISA + WLW - any update on this?
TIA,
Andy.Monday, October 6, 2008 4:37 PM -
Sorry, no--I looked into this with a developer on the ISA team and we were not able to come up with a resolution. :(Thursday, October 9, 2008 5:06 PMModerator
-
I have a problem of WLW authenticating to a sharepoint blog. our ITS has recently deployed MOSS 2007 and I am trying to connect WLW with that blog and no luck the authentication does not work... the link is a HTTPS link and I am entering my credentials but it comes back asking to login again.
ChurchillMonday, November 10, 2008 9:57 PM -
I have this exact same problem, and I am NOT connecting to sharepoint via ISA. This is an internal sharepoint site, also hosted over SSL, and WLW will not connect to sharepoint.
I get error: An Unexpected error occured while attempting to detect weblog settings: Invalid Server Response - The response to the blogger.getUsersBlogs method received from the weblog server was invalid: Invalid document returned from XmlRpc server.Thursday, November 13, 2008 11:15 PM -
Okay, so here's the real solution. It is rather simple and 100% done via supported methods. All you need is to change some properties of your ISA Server installation, so it has to be done by ISA Server admin.
Firstly, please read about Fallback to Basic authentication feature at "Authentication in ISA Server 2006". Secondly, go to "Managing User-Agent Mappings" and create the scripts listed there on your ISA Server. And after that you should execute the follwing commands.
cscript AddUserAgentMapping.vbs "*Windows Live Writer*" Basic
cscript EditUserAgentMapping.vbs up 11
cscript EditUserAgentMapping.vbs up 10
cscript EditUserAgentMapping.vbs up 9
cscript EditUserAgentMapping.vbs up 8
That's all. Your Windows Live Writer should now be fully functional through FBA on this particular ISA Server (or Array). Thanks Alexander Trofimov for this tip.- Marked as answer by PronichkinMicrosoft employee Thursday, December 18, 2008 9:29 AM
Thursday, December 18, 2008 9:28 AM -
Hmm, thanks for the info here. I am trying to accomplish a similar task (WLW + SharePoint 2007 + ISA Server 2006 w/form auth). I am able to connect and publish text, but images don't get uploaded. Instead, I get an error "File Upload Failed - The request failed with an empty response." The WLW log shows "value does not fall within the expected range" and "System.Net.WebException: The request failed with an empty response."
I checked the server and the image is not there, nor the folder that the image is supposed to be created in. Any thoughts on where things are going wrong?
Thanks,
+SteveFriday, August 21, 2009 2:23 AM -
Hmm, thanks for the info here. I am trying to accomplish a similar task (WLW + SharePoint 2007 + ISA Server 2006 w/form auth). I am able to connect and publish text, but images don't get uploaded. Instead, I get an error "File Upload Failed - The request failed with an empty response." The WLW log shows "value does not fall within the expected range" and "System.Net.WebException: The request failed with an empty response."
They say — “better late then never” :) So, today we faced exactly the same issue ourselves. It turns out that for posting images Live Writer employs native .NET Web Services Client interface. And, obviously, this client has its own User-Agent. So you should teach your ISA server to recognize this as well.
I checked the server and the image is not there, nor the folder that the image is supposed to be created in. Any thoughts on where things are going wrong?cscript AddUserAgentMapping.vbs "*MS Web Services Client Protocol*" Basic
And don't forget to check the correct order after all.
cscript EditUserAgentMapping.vbs up 10
cscript EditUserAgentMapping.vbs up 9cscript ListUserAgentMappings.vbs
Hope this helps—and many thanks to Anton Gricenko for assistance during troubleshooting this issue.
No. User-Agent headers Authentication type Enabled/disabled
1 *Blazer* XHTML-MP forms Enabled
2 *DoCoMo* cHTML forms Enabled
3 *Windows CE* XHTML-MP forms Enabled
4 *Symbain OS* XHTML-MP forms Enabled
5 *SonyEricsson* XHTML-MP forms Enabled
6 *Frontpage* Basic authentication Enabled
7 *Windows Live Writer* Basic authentication Enabled
8 *MS Web Services Client Protocol* Basic authentication Enabled
9 *Mozilla* HTML 4.01 forms Enabled
10 *Opera* HTML 4.01 forms Enabled
11 *MSRPC* Basic authentication Enabled
12 * Basic authentication Enabled- Proposed as answer by st2evn Wednesday, November 11, 2009 4:19 AM
Monday, November 9, 2009 10:38 PM -
Thank you so much! This worked perfectly. Better late than never is correct... my boss was waiting patiently for me to get this working, but his patience was beginning to run thin. I can't thank you enough!
+SteveWednesday, November 11, 2009 4:24 AM -
Thank you so much for documenting this - I had implemented your earlier fix and like Steve it was working for text - but had just encountered the problem with pictures. Checked here and found your fix which works a treat. Great job, thanks again!
Andy.Wednesday, December 2, 2009 11:53 AM