473,748 Members | 4,178 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Different behaviour when adding the same WSDL from the local development server or from a remote machine

Hi,

we're developing some web services and use the local development server of
Visual Studio 2005 to create, run and debug the project. The web service
methods connect to a database hosted on a dedicated server and the Microsoft
CRM 3.0 server, also on a separate machine. As the CRM server installation
makes changes to the Active Directory, they are located in a separate
domain, while the development machines are member of the companies domain.
There's no trust relationship between these domains. However, authentication
works fine with one problem:

Scenario 1:
The web service is hosted on a remote machine and in VS 2005 we add a web
reference to it, say http://remoteMachine:4444/webservice/service.asmx. When
creating a new instance of the generated web service proxy class, we set the
URL to the location of the web service (which is the same as the web
reference location, thus the default) and the Credentials property to a
valid NetworkCredenti al. Beside authenticating the user, the web service
further uses this credential to connect to the web services offered by the
CRM server. All of this works fine.

Scenario 2:
The exactly same web service is hosted on the local development machine and
in VS 2005 we add a web reference to it, say
http://localhost:2142/webservice/service.asmx. Beside that reference,
everything else is the same, so we create a new instance of the generated
web service proxy class, set the URL to the location of the web service
(which is http://remoteMachine:4444/webservice/service.asmx, thus different
from the default) and the Credentials property to a valid NetworkCredenti al.
So our request still goes to the remote machine, but this time each request
fails with 401 Forbidden/Access denied.

This is reproducable. If I change the web service reference back to the
remote machine, the application will work without problems. If I use the
local address, authentication errors will occur in each call to a web
service, though the remote address and network credential do not change.

Any suggestions?

Thanks
Michael
Dec 9 '05 #1
0 1708

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

Similar topics

20
17637
by: xixi | last post by:
hi, we use db2 udb v8.1 on windows, i am trying to use federated database objects to create wrapper, even though i have update dbm cfg using federated yes, i still get error "the instance for the db is not enable for the specified action", do i miss sth else?
1
2188
by: thomasb | last post by:
When setting up federation between two databases on the same instance everything works fine. When trying to do the same between two databases on different instances on the same machine I get into trouble. SQL1013N The database alias name or database name "UDB" could not be found. SQLSTATE=42705
6
2063
by: Jim H | last post by:
I have an app I working on that was working fine a few days ago. Now I get a jscript error: Microsoft JScript runtime error: Object expected in a part of the code that has not been modifed or touched. It's actually part of a separate project. I only get this error when I try to view the page on my local machine. If I connect to my webserver from another machine it works fine. What can cause this? Why does it only fail on my local...
4
2433
by: Benne Smith | last post by:
In our company, i have three servers; 1) a development server (mine only - here i make daily changes and test my stuff) 2) a test server (for the users to test milestone builds - changes weekly) 3) production server (for when a new build is fully tested, and stable) The problem is that the connectionstring in the web.config, should be replaced with something else, for each of the enviroments.
1
3895
by: POnfri | last post by:
Hi, I have a problem in a peace of code were i'm doing a file copy using File.Copy. The Source is local and the target is a remote machine. Example: File.Copy(C:\temp\hi.txt, \\myremote\c$\temp\hi.txt, true); This API is run from a web service that exposes it. The problem is as follows: 1) I request a page (On the web service machine) from my web server (Note
10
2193
by: Christina N | last post by:
When compiling my ASP.Net application, VS puts the new DLL under the local cached directory 'VSWebCache' in stead of on the server. How can I make it save the DLL file on the server when compiling? I have opened the source code project through 'File - Open - Open project from web..' Best regards, Christina
2
1438
by: Just D. | last post by:
Why same version working fine on one machine has a permanent bug when I upload it to another remote machine and refuses to work at all from the third machine working on my home LAN? All latest service packs and updates are installed. I'm using WinXPPro on my local machine where it works fine, Win2000Pro on my second machine on LAN where it complains about settings, and Win2000 Advanced Server on the remote machine where it returns one bug....
0
3018
by: Orbit | last post by:
Hi, I hope someone could help me. I have a simple web service that I developed on my laptop that resides within a large web application. It queries Northwind & presents the data in a grid in the asp.net client page that called it. I moved the whole app to a test server, & when I try to run it, I get the error "No connection could be made because the target machine actively refused it". It looks like the wsdl still points to my laptop...
3
6627
by: Yves Gagnon | last post by:
Hi, I try to debug a WCF hosted in a windows services on a serveur that is on an other domaine then my developpement machine. I tried many things without succes. Here is what I tried: First I installed on the server I want to debug, the remote debugger tools from the VS 2005 CD. I just install the windows application. I tried from there to debug, without succes. I could connect to the remote machine only when the msvsmon.exe is in the...
0
8987
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8826
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9316
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6793
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4597
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3303
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2777
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2211
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.