473,799 Members | 3,098 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can invoke a webmethod from a consoleapp but not from javascript..

Hi, I'm currently developing my first .NET 2.0 webservice and I have
stumbled into some problems. When i call webmethods from a console app
which has a webreference to the webservice everything works fine. It
also works just fine when I call a webmethod with javascript code from
a computer that is on the same subnet as the webservice if the
"webpage" is published on the "calling" computer. However computers
outside of that subnet gets an "service unavailable" error when they
run the javascript code which calls the webservice. Anyone knows what
might be wrong??

Other info:

I never use relative urls only absolute. So there is nothing wrong with
them.

The webservice worked fine with .NET 1.1 except that the firewall
sometimes removed the soapaction row from the http header. So I can't
use .NET 1.1..

I'm so confused. It works just fine except when i try to call the
freaking webservice with javascript code outside of the subnet... :(

Dec 14 '05 #1
1 1507
Changed some security settings in internet explorer and now everything
works.. :)

Dec 14 '05 #2

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

Similar topics

1
1727
by: Eshrath Ali Khan | last post by:
Hi, I have a requirement where I am creating table object with different ids using XSL by taking an XML as input. The no of objects (tables) is not fixed. I want to write a javascript to invoke all these objects. I can pass the number of objects (Tables) available in the documents as a parameter to the javascript function. Can you please tell me how to invoke all those objects. Basically these objects are nothing but a active X...
1
1374
by: KGarvin | last post by:
Open Visual Studio and create a new ASP.NET Web Services Project. Uncomment the test webmethod (Hello World) in the .asmx file, set as starup file, save and build project and run. Click on the Hello World link in the web page that appears. Co-workers recieve the expected page but I get an error similar to this in the web page (http://localhost/MytestService/Service1.asmx/HelloWorld) System.IO.FileNotFoundException: File or assembly name...
1
1264
by: kays.btk | last post by:
Hi All, I am trying to invoke a webservice and a webmethod (exposed by the WS) from the browser which accepts an xml file as a parameter. Can I specify a filename in the parameter? If yes, whats the probable syntax Any help appreciated. Cheers Kays
2
5577
by: jojoba | last post by:
Hello to all! I have a fairly simple webservice running in asp.net ajax under c# (vs 2008). I built the service and it runs just dandy when i test it by itself in visual studio. However, to make it work, i had to break up the webmethod into the BeginXXX, EndXXX model as per http://msdn2.microsoft.com/en-us/library/aa480516.aspx But now, i can no longer call this method from javascript (since to
1
2114
by: jojoba | last post by:
Hi I am running asp.net ajax (vs 2008) I have the following webservice listed below. However, i have no idea how to call this from javascript. Originally, before i started using the BeginXXX and EndXXX as per http://msdn2.microsoft.com/en-us/library/aa480516.aspx I could easily call the webmethod via in this case "WebService_speech.GenerateSpeechDataForText" but now im not sure how to call it.
0
1960
by: omer013 | last post by:
Hi; I have an aspx page with a WebMethod to redirect the user to another page. The Default.aspx.cs is; public partial class _Default : System.Web.UI.Page { public static void redirect_user() { HttpContext.Current.Response.Redirect("home.aspx"); }
1
2208
by: daokfella | last post by:
I have a Webmethod in a server control which needs to be called using AJAX. The control writes a javascript block that uses setTimeout to call a an ajax js function after 10 seconds. When developing (not using a server control) on an aspx page, this worked great. I set the EnablePageMethods() to true on the ScriptManager. The method was marked as WebMethod in the page class. Thus, I could call the ajax method like this:...
2
2146
by: John | last post by:
I'm calling the Webmethod from JS and at the end of the function I would like to do a a ListViewBillable.DataBind() in the Webmethod, calling a postback from JS is not rendering the correct results. How would I make a Reference to it as an Object to call the DataBind in the Webmethod VB code? Thanks John
0
2403
by: anithaapr05 | last post by:
Dear All, I have try to call the webmethod inside a master page browser close javascript function.It not working. This is my scriptcode: function BrowserClose() { var getValues = "webmethod"; PageMethods.ClearValues(getValues,OnSucceeded);
0
9541
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,...
0
10482
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10251
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10027
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9072
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6805
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4139
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
3
2938
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.