ورود

View Full Version : اشکال در وبسرویس



zgh_zgh
سه شنبه 14 شهریور 1391, 13:57 عصر
سلام
من یه وبسایت درست کردم که متدهایی که توی وبسرویسم تعریف کردم رو صدا میزنه ولی هر وقت که سیستممو خاموش و روشن میکنم با وبسرویسم نمیتونم ارتباط داشته باشم و خطا میده وباید وب رفرنسمو حذف و یه وبرفرنس دیگه ایجاد کنم تا دوباره بتونم متدهارو صدا بزنم
دوستان لطفا راهنماییم کنید


وب سرویسم روی سیستم خودمه
اسم وبسایتم testmokh2 هست
و اسم وبسرویسم testmokh3
اینم اروری که میده


Server Error in '/testmokh2' Application. No connection could be made because the target machine actively refused it 127.0.0.1:1310 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:1310 Source Error: Line 244: [System.Web.Services.Protocols.SoapDocumentMethodAt tribute("http://tempuri.org/Search", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse .Literal, ParameterStyle=System.Web.Services.Protocols.SoapP arameterStyle.Wrapped)] Line 245: public System.Data.DataSet Search(string DeletTextBox) { Line 246: object[] results = this.Invoke("Search", new object[] { Line 247: DeletTextBox}); Line 248: return ((System.Data.DataSet)(results[0])); Source File: c:\Users\YA-HAGH\AppData\Local\Temp\Temporary ASP.NET Files\testmokh2\9b6fde8f\a14eff88\App_WebReference s.n7epksdd.0.cs Line: 246 Stack Trace: [SocketException (0x274d): No connection could be made because the target machine actively refused it 127.0.0.1:1310] System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +239 System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +35 System.Net.ServicePoint.ConnectSocketInternal(Bool ean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +224 [WebException: Unable to connect to the remote server] System.Net.HttpWebRequest.GetRequestStream(Transpo rtContext& context) +1872577 System.Net.HttpWebRequest.GetRequestStream() +13 System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String methodName, Object[] parameters) +103 localhost.Service.Search(String DeletTextBox) in c:\Users\YA-HAGH\AppData\Local\Temp\Temporary ASP.NET Files\testmokh2\9b6fde8f\a14eff88\App_WebReference s.n7epksdd.0.cs:246 UpdateData.SearchButton_Click(Object sender, EventArgs e) in c:\Users\YA-HAGH\Documents\Visual Studio 2010\WebSites\testmokh2\UpdateData.aspx.cs:19 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111 System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument) +110 System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565 Version Information: Microsoft .NET Framework Version:2.0.50727.5420; ASP.NET Version:2.0.50727.5420

mehrbani
شنبه 18 آذر 1391, 18:01 عصر
فایروال شما پورت 1310 رو بسته.فایروال رو غیر فعال کنین مشکلتون حل میشه