求助一个关于WEBSERVICE的问题
某短信接口提供的webservice地址
http://service2.winic.org/Service.asmx
我在本地调试都正常.
但是传到服务器上报错.
代码如下:
using smsInterface.org.winic.service2;
public static class SmsInterface
{
public static string getUserInfo(string uid,string password)
{
Service1 sms = new Service1();
return sms.GetUserInfo(uid, password);
}
}
//============================================================================
using System;
namespace test
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(SmsInterface.getUserInfo("test", "123456"));
}
}
}
//================================================================================
正显示应该是:
-03/Null/Null/Null/Null/Null/Null/Null/Null/Null
//================================================================================
但是现在报错说
Server Error in '/' Application.
--------------------------------------------------------------------------------
服务器无法处理请求。 ---> 用户 'sms_dbuser' 登录失败。
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.Web.Services.Protocols.SoapException: 服务器无法处理请求。 ---> 用户 'sms_dbuser' 登录失败。
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SoapException: 服务器无法处理请求。 ---> 用户 'sms_dbuser' 登录失败。]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1485877
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +221
smsInterface.org.winic.service2.Service1.GetUserInfo(String uid, String pwd) +123
SmsInterface.ss(String uid, String password) +79
test._Default.Page_Load(Object sender, EventArgs e) +55
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +61
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1966
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30128; ASP.NET Version:4.0.30128.1
同样的文件我传到另一个服务器上正常.只有现在的服务器上有问题.怀疑是权限问题.但是找不到原因.