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

  • Home
  • SEARCH
  • 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 6554595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:43:08+00:00 2026-05-25T12:43:08+00:00

I am Developing one Windows Smart Phone – 6 Application using C# in .Net

  • 0

I am Developing one Windows Smart Phone – 6 Application using C# in .Net 3.5 Framework. And I have created one Webservice project using ASP.Net Web Service Application 3.5. Into this Webservice project I have define Service1.asmx. Now I would like to call Webmethod “HelloWorld” on Button Click. Here is code.

Service1.asmx

using System.Web.Services;

namespace WebService1
{
    /// <summary>
    /// Summary description for Service1
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    public class Service1 : System.Web.Services.WebService
    {

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

And Button Click Event

    private void button1_Click(object sender, EventArgs e)
    {
        WebService1.Service1 myService = new WebService1.Service1();
        string str = myService.HelloWorld();
    }

I am Getting Error On This Line

WebService1.Service1 myService = new WebService1.Service1();

Please Give Me Guidance As I am Very New In This.

Thanks In Advance

Pratik Bhatt

  • 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-25T12:43:08+00:00Added an answer on May 25, 2026 at 12:43 pm

    Problem Solved.

    Error Was Occurring Because The Smart Device Emulator has No Access Permission for internet(network)so you have to install Microsoft Active Sync to connect emulator to network

    Thanks Ralf Ehlert For Suggesting…..

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

Sidebar

Related Questions

Hai every one I am developing an windows application in which i have to
I'm developing an web application using asp.net mvc, and i need to do a
I'm developing a Windows Mobile 5.0 or above application with .Net Compact Framework 2.0
We are developing an RetailPOS .net (windows) application. One of the customer asks 'What
I'm a one man show developing a C++ Windows application for a customer. Over
I am developing windows mobile application. I am using the SQLlite database. I am
I'm developing a .NET Windows Forms application. I use the model-view-presenter design pattern, supervising
I'm developing a WinForm Windows Mobile 5.0 or above with .Net Compact Framework 2.0
I'm developing a Windows Phone 7 (WP7) app and I'm using a LongListSelector control
We're developing a large desktop application using Windows Presentation Foundation. Currently, the application is

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.