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 7127979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:05:24+00:00 2026-05-28T11:05:24+00:00

So I made a simple service that allows Registrations and LogIns, so the only

  • 0

So I made a simple service that allows Registrations and LogIns, so the only methods in my service contract are : Register(string username, string password) and LogIn(string username, string password). When starting the service in the Visual Studio service hosting gizmo I can call my methods properly and everything works well.

My problem is when I try to implement my service in an application. I kept it really simple, one form with fields for username and password for a login. I added a the service by going to Data -> Add New Data Source and gave my address from IIS (the service is hosted in IIS7). Here is a snipped of the would-be implementation code

public class LoginServiceClient
{
    static LoginService.LoginClient client = new LoginClient();

    public static bool LogIn(string username, string password)
    {
        string Username = username;
        string HashedPassword = password; // No hash in place yet.

        client.
        return true;//Its *that* easy to get in my system.
    }
}

Now the part that isn’t working is the line where I started typing “client.” expecting to find method names like LogIn and Register instead its LoginAsync and RegisterAsync. Both does not return anything therefore I cannot use them, neither are they offering callback methods.

What did I do wrong ? I can post more code if needed, from the service or details about implementation (as small as it is).

  • 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-28T11:05:25+00:00Added an answer on May 28, 2026 at 11:05 am

    Worry not, you’ve done nothing wrong. The fact of the matter is that Silverlight requires many operations to be asynchronous; calling a WCF service (or making any sort of network request, for that matter) falls into that category of operations.

    You’re going to want to look into consuming asynchronous patterns in the .NET Framework and Silverlight to get used to this new way of doing things. (Oh, and before you ask, Silverlight doesn’t support turning these into synchronous operations; you might have to restructure some of your code to work this way.)

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

Sidebar

Related Questions

I made a simple web service which worked nice with few systems that it
I made simple email in wordpress but it would only send email to the
We made a simple application and using GoogleAppEngineLauncher (GAEL) ran that locally. Then we
I made this simple function to filter the data. I add the symbols that
I made a simple application that adds 1 to the count and displays the
I made the simple hello world NODEJS Server. I have a enyo web service
I have a Windows Service that overrides the OnStart and OnStop methods to call
I've just written (in Perl) a simple web service that displays a web form
I have a simple WCF service which has a method that returns a complex
I'm currently working on benchmarking a RESTful service I've made, and part of that

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.