Ayuda por favor
Publicado por laura (5 intervenciones) el 02/09/2005 00:06:19
Hice un servicio Web que hace una consulta a una base de datos y regresa un dataset, cuando lo llamo desde una pagina web falla mandando el siguiente mensaje:
The request failed with HTTP status 401: Access Denied.
Source Error:
Line 40: <System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/WSPrueba1/Service1/GetData", RequestNamespace:="http://tempuri.org/WSPrueba1/Service1", ResponseNamespace:="http://tempuri.org/WSPrueba1/Service1", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _
Line 41: Public Function GetData() As System.Data.DataSet
Line 42: Dim results() As Object = Me.Invoke("GetData", New Object(-1) {})
Line 43: Return CType(results(0),System.Data.DataSet)
Line 44: End Function
Source File: C:\Inetpub\wwwroot\WAPrinting\Web References\localhost\Reference.vb L ine: 42
Stack Trace:
[WebException: The request failed with HTTP status 401: Access Denied.]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
WAPrinting.localhost.Service1.GetData() in C:\Inetpub\wwwroot\WAPrinting\Web References\localhost\Reference.vb:42
WAPrinting.WebForm1.Button1_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\WAPrinting\WebForm1.aspx.vb:35
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() +1292
Al parecer es un problema de permisos , alguien tiene idea de como solucionar esto?
(soy nueva en .NET)
The request failed with HTTP status 401: Access Denied.
Source Error:
Line 40: <System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/WSPrueba1/Service1/GetData", RequestNamespace:="http://tempuri.org/WSPrueba1/Service1", ResponseNamespace:="http://tempuri.org/WSPrueba1/Service1", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _
Line 41: Public Function GetData() As System.Data.DataSet
Line 42: Dim results() As Object = Me.Invoke("GetData", New Object(-1) {})
Line 43: Return CType(results(0),System.Data.DataSet)
Line 44: End Function
Source File: C:\Inetpub\wwwroot\WAPrinting\Web References\localhost\Reference.vb L ine: 42
Stack Trace:
[WebException: The request failed with HTTP status 401: Access Denied.]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
WAPrinting.localhost.Service1.GetData() in C:\Inetpub\wwwroot\WAPrinting\Web References\localhost\Reference.vb:42
WAPrinting.WebForm1.Button1_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\WAPrinting\WebForm1.aspx.vb:35
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() +1292
Al parecer es un problema de permisos , alguien tiene idea de como solucionar esto?
(soy nueva en .NET)
Valora esta pregunta


0