Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2004

Tip: Looking for answers? Try searching our database.

Access Denied Error.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stephen Noronha - 12 May 2004 00:37 GMT
Hi,

I have created a web service on machine "X" and its using Windows
Authentication. I am creating a web application on machine "Y". I add
reference to machine "X" for calling web methods from machine "Y" by using
username and password.
but when i run the web application I get the following error and I have no
clue whatsoever.

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 43:
<System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.o
rg/LMWebServiceNew/Service1/GetLogin",
RequestNamespace:="http://tempuri.org/LMWebServiceNew/Service1",
ResponseNamespace:="http://tempuri.org/LMWebServiceNew/Service1",
Use:=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)>
_
Line 44:         Public Function GetLogin() As login1
Line 45:             Dim results() As Object = Me.Invoke("GetLogin", New
Object(-1) {})
Line 46:             Return CType(results(0),login1)
Line 47:         End Function

Source File: c:\inetpub\wwwroot\LM\LMWebProject\Test\Web
References\Server\Reference.vb    Line: 45

Stack Trace:

[WebException: The request failed with HTTP status 401: Access Denied.]

System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
Message message, WebResponse response, Stream responseStream, Boolean
asyncCall)
  System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
  Test.Server.Service1.GetLogin() in
c:\inetpub\wwwroot\LM\LMWebProject\Test\Web
References\Server\Reference.vb:45
  Test.WebForm1.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\LM\LMWebProject\Test\Login.aspx.vb:60
  System.Web.UI.Control.OnLoad(EventArgs e)
  System.Web.UI.Control.LoadRecursive()
  System.Web.UI.Page.ProcessRequestMain()
CT - 12 May 2004 02:39 GMT
Stephen,

This will help you:
http://support.microsoft.com/default.aspx?scid=kb;en-us;811318

Signature

Carsten Thomsen
Enterprise Development with VS .NET, UML, and MSF
http://www.apress.com/book/bookDisplay.html?bID=105

> Hi,
>
[quoted text clipped - 16 lines]
>
> Line 43:

<System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.o
> rg/LMWebServiceNew/Service1/GetLogin",
> RequestNamespace:="http://tempuri.org/LMWebServiceNew/Service1",
[quoted text clipped - 14 lines]
>
> [WebException: The request failed with HTTP status 401: Access Denied.]

System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClient
> Message message, WebResponse response, Stream responseStream, Boolean
> asyncCall)
[quoted text clipped - 8 lines]
>    System.Web.UI.Control.LoadRecursive()
>    System.Web.UI.Page.ProcessRequestMain()

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.