Click here to Skip to main content
15,300,205 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Am I approaching this problem the wrong way? Pin
jkirkerx13-Dec-17 9:53
professionaljkirkerx13-Dec-17 9:53 
QuestionHow to setup and use VSTS for five user Pin
Mou_kol7-Dec-17 23:19
MemberMou_kol7-Dec-17 23:19 
AnswerRe: How to setup and use VSTS for five user Pin
Richard MacCutchan8-Dec-17 0:05
mveRichard MacCutchan8-Dec-17 0:05 
QuestionVisual Studio Update 15.5.0 - MVC View editor comes up with just black text Pin
jkirkerx7-Dec-17 13:38
professionaljkirkerx7-Dec-17 13:38 
AnswerRe: Visual Studio Update 15.5.0 - MVC View editor comes up with just black text Pin
Richard Deeming8-Dec-17 1:28
mveRichard Deeming8-Dec-17 1:28 
GeneralRe: Visual Studio Update 15.5.0 - MVC View editor comes up with just black text Pin
jkirkerx8-Dec-17 6:20
professionaljkirkerx8-Dec-17 6:20 
AnswerRe: Visual Studio Update 15.5.0 - MVC View editor comes up with just black text Pin
jkirkerx10-Dec-17 10:33
professionaljkirkerx10-Dec-17 10:33 
QuestionConsuming a homemade rest service in asp.net webform Pin
wilcodk7-Dec-17 2:47
Memberwilcodk7-Dec-17 2:47 
Hi

I've created my own rest service. For test purpose i've used Soap UI for testing of the service.

Now i try to consume this service in a webform. On the controller i can see that it has processed a call, so the service request gets through to my service. By debugging i can see that the rest server gets the data from the database.

When i try consuming the service in a asp.net 4.5 webform it hangs...

it just hangs on this statement
var response = await client.GetAsync("ServerConfig");


My request code looks like this:

private WebApiClientOptions options = new WebApiClientOptions("http://localhost:54990/api", "ServerConfig");

    protected void Page_Load(object sender, EventArgs e)
    {
        List<ServerConfig> list = null;

        list = this.Index().Result;
      
    }

    public async Task<List<ServerConfig>> Index()
    {
        List<ServerConfig> list = null;

        using (WebApiClient<ServerConfig> client = new WebApiClient<ServerConfig>(options))
        {
            var liste = await client.GetManyAsync();

        }

        return list;
    }


i hope there is a clever person WHO can help a complete newbiee
Yours

Wilco

AnswerRe: Consuming a homemade rest service in asp.net webform Pin
Richard Deeming7-Dec-17 8:54
mveRichard Deeming7-Dec-17 8:54 
GeneralRe: Consuming a homemade rest service in asp.net webform Pin
wilcodk7-Dec-17 22:20
Memberwilcodk7-Dec-17 22:20 
QuestionPopulating pdf on the server Pin
Michael Clinton6-Dec-17 7:49
MemberMichael Clinton6-Dec-17 7:49 
AnswerRe: Populating pdf on the server Pin
Richard Deeming6-Dec-17 9:43
mveRichard Deeming6-Dec-17 9:43 
QuestionHow to disable gridview by checkbox? Pin
samflex4-Dec-17 7:56
Membersamflex4-Dec-17 7:56 
AnswerRe: How to disable gridview by checkbox? Pin
jkirkerx4-Dec-17 8:02
professionaljkirkerx4-Dec-17 8:02 
GeneralRe: How to disable gridview by checkbox? Pin
samflex4-Dec-17 8:48
Membersamflex4-Dec-17 8:48 
GeneralRe: How to disable gridview by checkbox? Pin
jkirkerx4-Dec-17 10:11
professionaljkirkerx4-Dec-17 10:11 
GeneralRe: How to disable gridview by checkbox? Pin
samflex4-Dec-17 10:32
Membersamflex4-Dec-17 10:32 
QuestionHow can I use CimCredential in Web Page to get Printer Status ? Pin
David Mujica28-Nov-17 7:31
MemberDavid Mujica28-Nov-17 7:31 
AnswerRe: How can I use CimCredential in Web Page to get Printer Status ? Pin
Richard Deeming28-Nov-17 8:36
mveRichard Deeming28-Nov-17 8:36 
GeneralRe: How can I use CimCredential in Web Page to get Printer Status ? Pin
David Mujica28-Nov-17 8:39
MemberDavid Mujica28-Nov-17 8:39 
GeneralRe: How can I use CimCredential in Web Page to get Printer Status ? Pin
Richard Deeming28-Nov-17 8:48
mveRichard Deeming28-Nov-17 8:48 
QuestionIIS Rewrite rule: Attach country code with all hyperlinks in page Pin
Mou_kol23-Nov-17 0:53
MemberMou_kol23-Nov-17 0:53 
Rant[REPOST] IIS Rewrite rule: Attach country code with all hyperlinks in page Pin
Richard Deeming23-Nov-17 1:01
mveRichard Deeming23-Nov-17 1:01 
QuestionLooking for MCSD Web Applications sample test Q/A Pin
Mou_kol22-Nov-17 22:12
MemberMou_kol22-Nov-17 22:12 
AnswerRe: Looking for MCSD Web Applications sample test Q/A Pin
Richard MacCutchan22-Nov-17 22:55
mveRichard MacCutchan22-Nov-17 22:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.