怪!在 ASP.NET 中调用Web Service的一个很怪的问题,请高手指教!(高分)
我做了一个Web Service,然后在ASP.NET页面中调用,
try
Dim upload As New localhost.QTServices()
upload.WriteArticle(ArticleTitle, ArticleContent, AreaID, _
StyleID, writer, PictureID, BgID, 0)
Catch ex2 As Exception
Throw New AppException(ex2.ToString)
End Try
程序能经过try里的程序,但执行完后又进入了catch 抛出异常,实际上更本就没有执行.
出错提示如下:
----------------------------------------------------
System.Threading.ThreadAbortException: 线程正被中止。
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpResponse.Redirect(String url, Boolean endResponse)
at System.Web.HttpResponse.Redirect(String url)
at QingTeng.Upload.ImageButton1_Click(Object sender, ImageClickEventArgs e) in G:\inetpub\wwwroot\School_Web\Web\QingTeng\Upload\Upload.aspx.vb:line 198</pre>
请高手执教!