473,499 Members | 1,922 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Test Web Method from remote machine from browser

Hello,
I have a webservice(called MyService) which exposes one method(called
MyMethod)
On the local machine, it can be tested by accessing
http://MyServerName/MySite/MyService.asmx/MyMethod

But it doesn't work if I access the above one from a remote machine. IS
there any setting I can change in the web.config to make it work remotely?

Thanks,
Jan 17 '06 #1
2 7553
This should work remotely straight off. Is the remote machine on a domain? Or
are they home networked? If they're home networked then the name of the
machine may not be translated to an IP Address by a DNS server.

Have you tried: http://192.168.2.1/MySite/MyService.asmx
(where 192.168.2.1 is the IP address of MyServerName)

What happens if you visit the above? Do you get any page displaying or an
error message?

If you get an error message what is the error message? It could be that for
the virtual directory, it's somehow become configured to allow traffic only
from a specific IP Address range, along the same lines the WebSite may have
only been configured to received HTTP requests on a particular IP Address
(127.0.0.1 / localhost) instead of "All unassigned IP Addresses".

If you could give me some more information regarding the above then I may be
able to help further.

Hope the suggestions help anyway.

--
Kurt Farrar
..NET Developer & Computer Enthusiast

"Jazz" wrote:
Hello,
I have a webservice(called MyService) which exposes one method(called
MyMethod)
On the local machine, it can be tested by accessing
http://MyServerName/MySite/MyService.asmx/MyMethod

But it doesn't work if I access the above one from a remote machine. IS
there any setting I can change in the web.config to make it work remotely?

Thanks,

Jan 19 '06 #2
The most common reason is that on a remote server ASP.Net Webservice allows
only SOAP calls. To access your webservice from another machine on your
domain Add the following to your

Web.config to enable response to Http calls

<webServices>

<protocols>

<add name="HttpGet"/>

<add name="HttpPost"/>

</protocols>

</webServices>

Hope this helps

"Jazz" <Ja**@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
Hello,
I have a webservice(called MyService) which exposes one method(called
MyMethod)
On the local machine, it can be tested by accessing
http://MyServerName/MySite/MyService.asmx/MyMethod

But it doesn't work if I access the above one from a remote machine. IS
there any setting I can change in the web.config to make it work remotely?

Thanks,

Feb 6 '06 #3

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

Similar topics

0
978
by: jinu | last post by:
hello I am developing a vb.net application in my machine and need to test the program in a remote machine. I now use to upload the BIN directory fully to the remote machine and test the exe there....
0
1870
by: Just D. | last post by:
Does anybody knows the solution if this problem? If we wrote the ASPX page and send the request to the remote browser the remote client browser returns the remote machine IP using by this machine...
1
3310
by: monsteruk | last post by:
Hi, Seems like a few people are having debug problems, mine seems subtley different though! I have a win2003 svr with my c# ASP.NET web site running all ok. I have setup all the permissions...
3
1451
by: Just D. | last post by:
I know that writing ASPX app we easily can get all required information about remote machine and network right from the user's browser using this request: NameValueCollection coll =...
1
2627
by: david | last post by:
Wehen locally access it, the browser can show me the test form for the Webmethod. But when I access it from remote machine, I get: The test form is only available for requests from the local...
5
5729
by: felecha | last post by:
I have a VB.Net application that runs as a Windows Service and monitors a MessageQueue on another machine. At times that machine will have to be rebooted, so I've been working on how to get my...
4
4796
by: Abhi | last post by:
Hi All, I have a web service method which works fine when called from my local machine i.e. from localhost but when I publish the web services to a remote machine it throws an invalid cast soap...
3
5427
by: Ing. Davide Piras | last post by:
Hi there, I use Visual Studio 2005, c# projects... I like the new unit test framework very much, it helps a lot mantaining and growing up a project with the test driven paradigm, that's so good!...
0
4599
by: mina | last post by:
My application which is written in vb.net 2005 uses sql server 2005 express as a database, this application is multi-user. So i am used 3 xp machine to install my application i can say...
0
7174
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
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6894
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
7388
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
4600
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3099
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...
0
3091
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
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 ...
0
297
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...

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.