"Object Moved Here" Exception

  • Thread starter Thread starter Patrick Grier
  • Start date Start date
P

Patrick Grier

I get an exception when calling a web service from my winform application.
Can anyone help with this?

Below is some details from the stack trace:

Exception Information Details:
======================================
Exception Type: System.Net.WebException
Status: ProtocolError
Response: System.Net.HttpWebResponse
Message: The request failed with the error message:
--
<html><head><title>Object moved</title></head><body> <h2>Object moved to <a
href="%2fwestinghouse.uam.data%2fHelpPage.aspx%3faspxerrorpath%3d%2fwestinghouse.uam.data%2fTransactionsWS.asmx">here</a>.</h2>
</body></html>

--.
Data: System.Collections.ListDictionaryInternal
TargetSite: System.Object[]
ReadResponse(System.Web.Services.Protocols.SoapClientMessage,
System.Net.WebResponse, System.IO.Stream, Boolean)
HelpLink: NULL
Source: System.Web.Services

StackTrace Information Details:
======================================
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
Westinghouse.Uam.TransactionsWS.TransactionsWS.UpdateExcelInvoiceTransactions(TransactionsDS ds, Boolean ProcessAverageCostCalc)
at
Westinghouse.Uam.TransactionsBLL.UpdateExcelInvoiceTransactions(TransactionsDS ds, Boolean saveWithWarnings, Boolean ProcessAverageCostCalc)
at Westinghouse.Uam.UI.SalesExcelBillingModule.SaveData()
at
Westinghouse.Uam.UI.SalesExcelBillingModule.GenerateExcelToolStripButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e,
ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e,
ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
 
I get an exception when calling a web service from my winform application.
Can anyone help with this?

Below is some details from the stack trace:

Exception Information Details:
======================================
Exception Type: System.Net.WebException
Status: ProtocolError
Response: System.Net.HttpWebResponse
Message: The request failed with the error message:
--
<html><head><title>Object moved</title></head><body> <h2>Object moved to
<a
href="%2fwestinghouse.uam.data%2fHelpPage.aspx%3faspxerrorpath%3d%2fwestinghouse.uam.data%2fTransactionsWS.asmx">here</a>.</h2>
</body></html>

Sounds like you're getting a 302 (redirect) error. Has the ASMX page moved
to a different URL? Follow the path above
(/westinghouse.uam.data/HelpPage.aspx/aspxerrorpath=/westinghouse.uam.data/TransactionsWS.asmx)
and see what that page tells you.
 
This is the generic error page for the site. I've set customErrors to Off to
see if I get a better error message next time this happens. It is
intermittent and only happens on a web service call that is rather lengthy in
time.

I’ve read a couple of articles that refer to authentication problems when
encountering this type of error. I run Windows authentication on this web
service and pass credentials when I instantiate the proxy class object.

ws.Timeout = -1
ws.EnableDecompression = True
ws.Credentials = System.Net.CredentialCache.DefaultCredentials

' Call web service to update transactions dataset
Return ws.UpdateExcelInvoiceTransactions(ds, ProcessAverageCostCalc)
 
Back
Top