Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4601074
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:46:26+00:00 2026-05-21T23:46:26+00:00

Im having trouble with calling my web service. When I try it localy It’s

  • 0

Im having trouble with calling my web service. When I try it localy It’s working but when I publish it and upload to binero nothing happends. I believe that it dosen’t know where to look for the web service even tho Ive added it to the ftp.

here is my index.aspx

<script language="javascript" type="text/javascript">

function pageLoad() {

    test();
}

function test() {

    MvcApplication8.WebService1.HelloWorld(callback);
}

function callback(result) {

    alert(result);

}

<h2>Index</h2>

  <form runat="server">
<asp:ScriptManager runat="server" ID="scriptservice">
<Services>
<asp:ServiceReference Path="../../WebService1.asmx" />
</Services>
</asp:ScriptManager>
</form>

Here is my webservice.asmx

namespace MvcApplication8
{

[WebService(Namespace = "http://ebrandstedt.se/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
[System.Web.Script.Services.ScriptService]
public class WebService1 : System.Web.Services.WebService
{

    [WebMethod]
    public string HelloWorld()
    {
        return "Hello World";
    }
}

}

It’s published at http://www.ebrandstedt.se

http://www.ebrandstedt.se/webservice1.asmx <– There can you find the webservice

All help is appreciated.

/MVH Emil

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T23:46:26+00:00Added an answer on May 21, 2026 at 11:46 pm

    Found my answear here, needed to add alot in my web.config to enable ajax. Very nice guide!

    http://www.asp.net/ajax/videos/how-do-i-aspnet-ajax-enable-an-existing-web-service

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im having trouble with sessions in IE. I have tested in IE 7-8, but
I am having trouble initializing a parameterless constructor with a defined game. Somehow it
I am new to JavaScript and I am having trouble understanding the scope of
Having trouble with a query to return the newest order of any grouped set
Having trouble with the db.alter command when changing a date field from null=True and
I'm having trouble coming up with a query to determine what records are missing
I'm having trouble using a selectOneRadio component. I get a NullPointerException in my Converter's
I have a solution that uses webforms for front end & mvc for admin
I have 2 sprites which when drawn together make up the correct image on
Possible Duplicate: Android How to draw a smooth line following your finger I'm new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.