Click here to Skip to main content
15,570,131 members

Comments by V.Lorz (Top 75 by date)

V.Lorz 5-Dec-20 6:20am View    
Thanks for the comment.
I understand, that's the point, to my best understanding for certain time now services can't have any UI and must use other means for communicating with users.
But thing is these guys at coretechnologies have AlwaysUp, as I introduced in my question. They claim AlwaysUp can run the application in the isolated session 0, yet the UI will not be visible, of course.
Using something similar, if the user needs to change any application settings, he/she can stop the service, start the application in normal user space (current session), change whatever is needed, then restart the service again.
Using that workaround I could manage to have the user starting one instance that could be configured for using the MQTT data channels I already have in the application for sharing sensors data and see the overall state.
That's my idea, you think it would work? Any alternative to AlwaysUp you could know of?
Thanks a lot again
V.Lorz 15-Apr-20 12:37pm View    
Hi F-ES Sitecore, thanks for your comment.
The first request (login) requires a POST, not a GET. And the second requires a session id returned by the server on this first login request. Maybe my question was not self explanatory, sorry for that.
I've already solved the issue, see my comment below under MadMyche's solution.
V.Lorz 15-Apr-20 12:29pm View    
Thanks a lot for taking your time to answer, @MadMyche. Here what I did, and worked for me:

CookieContainer Cookies = new CookieContainer();
Cookies.Add( new Cookie( "thesessionidcookiename", SessionId, "", "the server domain" ) );

HttpWebRequest request = HttpWebRequest.CreateHttp( $"{Uri}?{POSTData}" );
request.Method = "GET";
request.CookieContainer = Cookies;

using (WebResponse response = request.GetResponse())

At the end the server is using a java servlet engine, so the session id can also be given as part of the url. There is no session id cookie, neither any cookie at all, in the login response, it comes as part of its headers.
V.Lorz 5-Nov-13 3:42am View    
Copy the same file to two different locations? Yes, it's possible.

Take a look into Segey's solution for a better than xcopy approach.
V.Lorz 5-Nov-13 1:20am View