Forum Discussion

Tal_BenHaim_112's avatar
Tal_BenHaim_112
Icon for Nimbostratus rankNimbostratus
Feb 22, 2007

response content type of 'text/html

Hi,

 

 

I wrote an application that uses the Interfaces.NetworkingInterfaces.get_statistics

 

sometimes a receive the following exception:

 

 

System.InvalidOperationException was unhandled

 

Message="Client found response content type of 'text/html; charset=iso-8859-1', but expected 'text/xml'.\r\nThe request failed with the error message:\r\n--\r\n \r\n--."

 

Source="System.Web.Services"

 

StackTrace:

 

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 Interfaces.NetworkingInterfaces.get_statistics(String[] interfaces) in D:\Y_SERVER\F5 - Dowloads\DistributionMonitorWithPools2\NetworkingInterfaces.cs:line 310

 

at DistributionMonitor.PoolsMaxStat.CollectInterfaceData(MemberStatistic InterfaceStatistic) in D:\Y_SERVER\F5 - Dowloads\DistributionMonitorWithPools2\PoolsMaxStat.cs:line 971

 

at DistributionMonitor.PoolsMaxStat.DataTimer_Tick(Object sender, EventArgs e) in D:\Y_SERVER\F5 - Dowloads\DistributionMonitorWithPools2\PoolsMaxStat.cs:line 692

 

at System.Windows.Forms.Timer.OnTick(EventArgs e)

 

at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)

 

at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

 

at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)

 

at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

 

at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

 

at System.Windows.Forms.Application.Run(Form mainForm)

 

at DistributionMonitor.Form1.Main() in D:\Y_SERVER\F5 - Dowloads\DistributionMonitorWithPools2\MainForm.cs:line 301

 

at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)

 

at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)

 

at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()

 

at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

 

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

 

at System.Threading.ThreadHelper.ThreadStart()

 

 

 

 

have any idea?

 

 

Thanks,

 

Tal

1 Reply

  • Looks to me like a system exception that is causing the iControl Portal to return a text/html error message. You have a few options to solve this issue:

     

     

    1. If the exception occurs infrequently, you could add a try/catch block around the calls and throw out that exception and then retry the call if it fails. Kind of lame solution but the data is cumulative so you shouldn't miss out on any data, it will just be a longer interval between polls.

     

     

    2. Contact Technical Support and issue a case ticket. This will really take some digging into your system configuration and specific product version that is beyond the means of support here on DevCentral.

     

     

    -Joe