Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 22 2018 12:49
    per-samuelsson labeled #4643
  • May 22 2018 12:48
    per-samuelsson labeled #4643
  • May 22 2018 12:48
    per-samuelsson opened #4643
  • May 22 2018 12:43
    miyconst commented #4642
  • May 22 2018 12:42
    miyconst assigned #4642
  • May 22 2018 12:39
    per-samuelsson commented #4642
  • May 22 2018 12:34
    miyconst labeled #4642
  • May 22 2018 12:34
    miyconst commented #4642
  • May 22 2018 12:33
    miyconst labeled #4642
  • May 22 2018 12:21
    bigwad commented #4638
  • May 22 2018 12:21
    per-samuelsson edited #4642
  • May 22 2018 12:21
    per-samuelsson commented #4642
  • May 22 2018 12:21
    per-samuelsson labeled #4642
  • May 22 2018 12:21
    per-samuelsson labeled #4642
  • May 22 2018 12:20
    per-samuelsson opened #4642
  • May 22 2018 12:02
    per-samuelsson commented #4638
  • May 22 2018 10:45
    k-rus commented #4641
  • May 22 2018 10:19

    bigwad on 121

    (compare)

  • May 22 2018 10:19

    bigwad on develop

    Add blocking debugger notificat… (compare)

  • May 22 2018 10:03

    bigwad on 121

    Add blocking debugger notificat… (compare)

Per Samuelsson
@per-samuelsson
star.exe [yourapp.exe]
but you can stick to start executable, thats fine
in what way to you mean "hello!" doesn't show up?
pal88
@pal88
Thank you so much @per-samuelsson i did open it using localhost:8080/test2 it worked fine....
Per Samuelsson
@per-samuelsson
ok, great :fire:
just let us know if u need some further help
pal88
@pal88
i cannot use personal server .... as im not able to edit anything in the starcounter server
what is the extension you are talking about?? dont remember to have installed it...
Per Samuelsson
@per-samuelsson
the "extension" is what allows you to build starcounter applications in visual studio, it is enabled/installed by
default, so you probably just have it. i guess you are creating your applications by using New Project | "Starcounter Application" in
Visual Studio?
pal88
@pal88
yes...
Per Samuelsson
@per-samuelsson
ok cool, so then you have the extension
pal88
@pal88
but still what/which extension are we talking about...
Per Samuelsson
@per-samuelsson
its installed, it came as part of the installer, it runs inside visual studio, and allows u to start your application from there
whats the story with the personal server? what do u mean u cant use it?
pal88
@pal88
i cannot edit in the server...:(
it just starts...
blob
its pinned on the taskbar else its lost...
Per Samuelsson
@per-samuelsson
well, "editing the server" is not something you normally do, but of course it can be done
what exactly is it tha you want to edit?
pal88
@pal88
by edit i mean type or run files on server
Per Samuelsson
@per-samuelsson
what files?
do you mean to have static files, like .html-files, and be able to access them?
pal88
@pal88
no no..... run application /projects/files in command line tool....
Per Samuelsson
@per-samuelsson
well, sorry i dont think i understand exactly what it is you want to do :worried:
the server console you see is a machine-wide "service" that you can consider some kind of controller of all apps and databases on your machine
you never access that server directly, if thats what you mean
starcounter is about writing applications that expose themselves to the outside via REST interfaces (normally), i.e. the Handle.GET for example
pal88
@pal88
ok... so i tried running example files in command line/command prompt... it said file not found for all files... so i thought may be we can access it in the starcounter server command prompt...... sorry for confusing...
for the examples where we have accepting parameters in the examples like squaring a number.... error SCERR6066- an unhandled,unidentified nonstarcounter execption occurs
Per Samuelsson
@per-samuelsson
hi pal88
can u provide the code that fails with 6066-error? its hard to help you solve this without seeing the code
pal88
@pal88

using System;
using Starcounter;

namespace example4
{
class Hello
{
static void Main()
{
Handle.GET("/squared?{?}", (int x) =>
{
return "<!DOCTYPE html><title>Hello</title>" + x + " squared equals " + x * x;
});
}
}

}

it runs now but gives error" URI not found: GET /example4 "
when tried to open it in a browser...
Per Samuelsson
@per-samuelsson
" GET /example4" is the wrong string, you should to "localhost:8080/squared" to invoke it
pal88
@pal88
tried that as well still says the same thing...:(
it says resource not found..
Per Samuelsson
@per-samuelsson
maybe you are not formatting it correctly? are you providing a number to be squared for example?
pal88
@pal88
should not the number be given at run time
Per Samuelsson
@per-samuelsson
localhost:8080/squared?10
yes, it should, its a parameter in the call to your handler
pal88
@pal88
oh i dint know that....thanks..
Per Samuelsson
@per-samuelsson
if u define your handler like u have done in the code above, you should invoke it (from a browser for example, or using curl) like this: localhost:8080/squared?100
pal88
@pal88
im sorry may be i dint understand the tutorial properly....it should have been beginner friendly...
thanks for your patience... @per-samuelsson
Per Samuelsson
@per-samuelsson
sure, no problem! we are here to help :hand:
pal88
@pal88
is there any tutorial on how to plot a graph using starcounter??
Per Samuelsson
@per-samuelsson
hi pal88
no, not to my knowledge