Hi,
I have add it as web reference! If I "using myserver.service", it return error!!!
Now, I have it. No more compiling error. However, I get any error while call my webmethod which built using vfp!!
error:
Server Error in '/WebApplication1' Application.
--------------------------------------------------------------------------------
The request failed with HTTP status 401: Access Denied.
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.WebException: The request failed with HTTP status 401: Access Denied.
Source Error:
Line 56: [return: System.Xml.Serialization.SoapElementAttribute("Result")]
Line 57: public object mymethod() {
Line 58: object[] results = this.Invoke("mymethod", new object[0]);
Line 59: return ((object)(results[0]));
Line 60: }
Source File: d:\inetpub\wwwroot\WebApplication1\Web References\ckkiet\Reference.cs Line: 58
Stack Trace:
[WebException: The request failed with HTTP status 401: Access Denied.]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream)
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
WebApplication1.ckkiet.aaa.mymethod() in d:\inetpub\wwwroot\WebApplication1\Web References\ckkiet\Reference.cs:58
WebApplication1.WebForm1.Button1_Click(Object sender, EventArgs e) in d:\inetpub\wwwroot\webapplication1\webform1.aspx.cs:70
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.209; ASP.NET Version:1.0.3705.0
Any ideas?
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...