System.InvalidOperationException: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- Configuration Error

Server Error in '/' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:


Line 56:             ASP.NET to identify an incoming user. 
Line 57:         -->
Line 58:     
Line 59:     
--.
   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 BCOOLViewer.WS_BCOOL.WSBCOOL.GetEventByEventID(Int64 pEventID) in C:\COOL\SRC\ServerCore\BCOOL\BCOOLTV\Web References\WS_BCOOL\Reference.vb:line 255
   at BCOOLViewer.Viewer.Page_Load(Object sender, EventArgs e) in C:\COOL\SRC\ServerCore\BCOOL\BCOOLTV\Viewer2\default.aspx.vb:line 30