473,399 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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

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.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall) +1303
System.Web.Services.Protocols.SoapHttpClientProtoc ol.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!

Thanks in advance,

Nov 19 '05 #1
2 1246
<Za*****@hotmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.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.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall) +1303
System.Web.Services.Protocols.SoapHttpClientProtoc ol.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
Nov 19 '05 #2
the 401 is a authentication error. most likely you are running into the
one-hop rule. if you have access to the server, try it on the server. it
should work. if you don't have access to the server, try hitting your dev
box from a different computer. if it gets the same error then the problem is
with credential forwarding (not allowed by nt).

a quck fix on the server, is to set:

<identity impersonate="true" userName="dommain\account"
password="mypass">

in the web.config

-- bruce (sqlwork.com)

<Za*****@hotmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.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.SoapHttpClientProtoc ol.ReadResponse(SoapClient
Message
| message, WebResponse response, Stream responseStream, Boolean
| asyncCall) +1303
| System.Web.Services.Protocols.SoapHttpClientProtoc ol.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!
|
| Thanks in advance,
|
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: tonyz.wrightz | last post by:
Hi, I have used the setup wizard to build an installer that installs my asp.net application. Problem is, at my current job, they have an alternative web folder at the root level (to clarify, at...
1
by: dansan | last post by:
We have a webservice that we have been deploying using the deployment project in Visual Studio. Now we are trying to deploy this service to a server that has multiple sites. I have looked...
2
by: Russ | last post by:
I am trying to deploy a web client to a new Windows 2003 Server, Web Edition via the lan, by using the Copy Project method from within Visual Studio. When I do, I get the following error: ...
2
by: Flip | last post by:
I am deploying webapps using XP (IIS5) and deploying them to a Windows 2003 Server box (IIS6). So far so good. However, when I try to manage my w2k3 server from XP, I get an error message saying...
3
by: Rachel | last post by:
Hi, I am using the data access application block successfully in our development environment, however when I deploy to our testing server as Private Assemblies I keep getting the following ...
3
by: Rachel | last post by:
Hi, I am using the data access application block successfully in our development environment, however when I deploy to our testing server as Private Assemblies I keep getting the following ...
1
by: Simon Verona | last post by:
Hope somebody can help. I have a web service written in vb.net which works fine localling on my Windows XP Pro development machine without a problem. I have deployed in onto a Windows Server...
10
by: Bryan Dickerson | last post by:
I fairly have my Web Service working the way that I want, so my next step will be to deploy it on a server. Do I just add a deployment/install project, build it and install it on the server? ...
0
by: markcash | last post by:
I have developed a ASP.NET application that contains several reports that were developed with Crystal Report XI. My development machine is Windows XP SP2. Everything works fine, but when I...
0
by: cricsanju | last post by:
Hi all, I am very new person in PHP. I am using PHP-Java-Bridge and I am facing a problem, when I deploy php-java-bridge in deploy(JBoss_home/sever/default/deploy) folder of JBoss app server with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.