Forum Discussion

Mike_Thompson_9's avatar
Mike_Thompson_9
Icon for Nimbostratus rankNimbostratus
Aug 27, 2007

InvalidOperationException - HELP!

I have a SOAP interface which makes calls to the F5 to get data about stats, pools, members, etc. You ask, why write another web service that talks to the F5. Simply because I have simplified a lot of the tasks needed to get the data out of the F5 for different scripts around the company. In other words, they can call my service, pass in a few args and get lots of data back.

 

 

To get back to the point, 90%/95% of the time, this service works. However, the other 5%/10% of the time I get the following:

 

 

System.InvalidOperationException: Client found response content type of 'text/html; charset=iso-8859-1', but expected 'text/xml'.

 

 

Sometimes this happens when calling get_session_status(String[] pool_names) and other times it happens when calling get_monitor_status(String[] pool_names). However, I belive it can happen on any of the functions being called.

 

 

It seems to me that the F5 is choking on the request and throwing an exception back to my service in the form of HTML. However, there is no HTML to read in as part of the exception.

 

 

This is the full exception:

 

 

: GetPoolMemberStatus_Error_InvalidOperationException: System.InvalidOperationException: Client found response content type of 'text/html; charset=iso-8859-1', but expected 'text/xml'.

 

The request failed with the error message:

 

--

 

 

--.

 

at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

 

at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

 

at LocalLB.PoolMember.LocalLBPoolMember.get_session_status(String[] pool_names) in c:\Users\thompsmd\AppData\Local\Temp\Temporary ASP.NET Files\f5manager\0ec0b867\38653d1b\App_WebReferences.5.cs:line 588

 

at WebSvcMgr.GetPoolMbrSession() in C:\My Data\ASP.NET Applications\F5Mgr\App_Code\WebSvcMgr.vb:line 182

 

at WebSvcMgr.GetPoolMbrDetail() in C:\My Data\ASP.NET Applications\F5Mgr\App_Code\WebSvcMgr.vb:line 162

 

at F5Services.GetPoolMemberStatus(String[] inServerNames, Int32 inEnvironmentID) in C:\My Data\ASP.NET Applications\F5Mgr\App_Code\F5Services.vb:line 161

 

 

As you can see, it is dying on ReadResponse.

 

 

Can anyone help here or offer some insight?

15 Replies