Forum Discussion
Tal_BenHaim_112
Nimbostratus
Feb 22, 2007response 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
- 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:
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects