Re: Deploying .NET C# App - Works on my XP box but not our 2003 Server...

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: John Saunders (johnwsaundersiii)
Date: 01/05/05


Date: Wed, 5 Jan 2005 10:01:18 -0500


<Zanthor@hotmail.com> wrote in message
news:1104929071.755796.169760@c13g2000cwb.googlegroups.com...
> When installed on my local machine it works perfectly, behaves
> normally, etc... but I take the same installer package and put it on my
> intranet server... and when I try to run it, I get the following error.
>
> [WebException: The request failed with HTTP status 401: Unauthorized.]
>
> System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
> message, WebResponse response, Stream responseStream, Boolean
> asyncCall) +1303
> System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
> methodName, Object[] parameters) +218
> emplist.com.bucolor.intranet.EmployeeInfo.ListOU() +32
> emplist.emplist.Page_Load(Object sender, EventArgs e) +56
> System.Web.UI.Control.OnLoad(EventArgs e) +67
> System.Web.UI.Control.LoadRecursive() +35
> System.Web.UI.Page.ProcessRequestMain() +750
>
> What I've got is a web service (Which appears to be working OK since I
> can get to it's dev interface page without problems and from the server
> I can invoke the functions...) being accessed by my application. I'd
> imagine I have something set wrong on permissions somewhere on the
> server, but as I'm totally new to this, and I've had no luck searching
> for a solution, I turn to the community and pray!

It looks like the 401 is coming back from the web service. You'll have to
figure out why. For instance, is the service only permitting access from
your development machine? Does it need a form of authentication which
doesn't work from your server?

John Saunders


Quantcast