<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>WinForms</title><link>https://www.dotnetzone.gr:443/cs/forums/12/ShowForum.aspx</link><description>Θέματα για rich client / windows εφαρμογές, σε οποιαδήποτε γλώσσα (VB.NET, C#, managed C++, κ.α.)</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Απ: Windows service</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/6389.aspx</link><pubDate>Mon, 24 Oct 2005 23:16:05 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:6389</guid><dc:creator>axaros</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/6389.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=6389</wfw:commentRss><description>&lt;P&gt;Άρη,&lt;BR&gt;Το δοκίμασα και με Network Service και δεν ...&lt;BR&gt;Πάω για custom και θα επανέρθω ...&lt;/P&gt;</description></item><item><title>Απ: Windows service</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/6388.aspx</link><pubDate>Mon, 24 Oct 2005 23:01:17 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:6388</guid><dc:creator>Aris</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/6388.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=6388</wfw:commentRss><description>&lt;P&gt;Ναι μεν, αλλά δε .. &lt;/P&gt;
&lt;P&gt;Εάν το service σου δεν έχει ανάγκες επικοινωνίας, τότε το LocalService αρκεί. Εάν έχει (η περίπτωσή σου) δεν αρκεί. Δοκίμασε το NetworkService ή φτιάξε ένα custom account.&lt;/P&gt;
&lt;P&gt;Άρης&lt;/P&gt;</description></item><item><title>Απ: Windows service</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/6371.aspx</link><pubDate>Mon, 24 Oct 2005 19:30:09 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:6371</guid><dc:creator>axaros</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/6371.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=6371</wfw:commentRss><description>&lt;P&gt;Άρη καλημέρα !!&lt;BR&gt;Συμφωνούμε,&lt;BR&gt;αν και δεν έχει να κάνει με την κλήση του serviced component.&lt;BR&gt;Κάνοντας και ένα dummy action (write ένα message στο log) πάλι&lt;BR&gt;δεν σηκώνεται το άτιμο !!!!&lt;BR&gt;&lt;BR&gt;Δεν έχω κανένα ιδιαίτερο λόγο να μην το τρέχω κάτω από κάποιο custom account απλά&lt;BR&gt;είδα στα περισσότερα άρθρα να συνιστούν όλοι να αποφεύγεται το Local system για λόγους security.&lt;BR&gt;&lt;BR&gt;Εξάλλου ακριβώς για αυτό το λόγο (services) δεν φτιάχτηκε το Local Service ;&lt;/P&gt;</description></item><item><title>Απ: Windows service</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/6370.aspx</link><pubDate>Mon, 24 Oct 2005 19:00:32 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:6370</guid><dc:creator>Aris</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/6370.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=6370</wfw:commentRss><description>&lt;P&gt;Το βλέπω χλωμό να τρέξει ...&lt;/P&gt;
&lt;P&gt;Η κύρια αιτία είναι τα δικαιώματα του NTAUTHORITY\LocalService. &lt;/P&gt;
&lt;P&gt;Αντιγράφω από MSDN:&lt;BR&gt;&lt;FONT style="BACKGROUND-COLOR: #f5f5dc" face=Garamond color=#000080 size=3&gt;LocalService: An account that acts as a non-privileged user on the local computer, and presents anonymous credentials to any remote server. &lt;FONT style="BACKGROUND-COLOR: #ffffff" face=Tahoma color=#000000 size=2&gt;Τα δικαιώματα αυτά, τα βλέπεις αρκετά; Δεν ξέρω φυσικά πως λειτουργεί το serviced component που αναφέρεις, αλλά υποψιάζομαι ότι δεν "δικαιούσαι" να το καλέσεις.&lt;BR&gt;Γιατί δεν χρησιμοποιείς το NetworkService ή κάποιο custom account;&lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="BACKGROUND-COLOR: #ffffff" color=#000000&gt;Ως προς το &lt;FONT face="Courier New" color=#000080&gt;net start xxx&lt;/FONT&gt; (&amp;amp; αντίστοιχα,&amp;nbsp;&lt;FONT face="Courier New" color=#000080&gt;net stop xxx)&lt;/FONT&gt; και ο ServiceController αυτό κάνει ...&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Άρης&lt;/P&gt;</description></item><item><title>Απ: Windows service</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/6339.aspx</link><pubDate>Sat, 22 Oct 2005 03:30:21 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:6339</guid><dc:creator>axaros</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/6339.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=6339</wfw:commentRss><description>&lt;P&gt;Στο OnAfterInstall ή στο OnCommited μπερδεύτηκα ....&lt;img src="/cs/emoticons/emotion-3.gif" alt="Surprise [:O]" /&gt;&lt;BR&gt;&lt;BR&gt;Συγνώμη για τα αποσμασματικά σχόλια αλλά τώρα το γράφω και μου έρχονται ένα - ένα ...&lt;BR&gt;Overview... Θέλω :&lt;BR&gt;&lt;BR&gt;1) Να τρέξω ένα script που θα δημιουργεί μια βάση(SQL Server)&lt;BR&gt;2) Να κάνω registered ένα serviced component&lt;BR&gt;3) Να κάνω install το service μου και να το ξεκινήσω σε LocalService account&lt;BR&gt;&lt;BR&gt;Αντίστοιχα στο Uninstall&lt;BR&gt;1) Να κάνω stop το service (που ανα χ δεύτερα καλεί το serviced component)&lt;BR&gt;2) Να κάνω shutdown το serviced component και uninstall&lt;BR&gt;3) Να διαγράψω τη βάση που δημιούργησα&lt;/P&gt;
&lt;P&gt;Πολλά θέλω ε;&lt;img src="/cs/emoticons/emotion-2.gif" alt="Big Smile [:D]" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Απ: Windows service</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/6335.aspx</link><pubDate>Sat, 22 Oct 2005 02:02:36 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:6335</guid><dc:creator>axaros</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/6335.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=6335</wfw:commentRss><description>&lt;P&gt;Αναφερόμουνα στο άρθρο ...&lt;BR&gt;Σε&amp;nbsp;LocalService&amp;nbsp;τρέχω .. ή μάλλον προσπαθώ ....&lt;img src="/cs/emoticons/emotion-9.gif" alt="Crying [:'(]" /&gt;&lt;BR&gt;&lt;BR&gt;Δεν&amp;nbsp;κάνει timeout&amp;nbsp;σίγουρα πάντως (30 default).&amp;nbsp;Με&amp;nbsp;που το καλώ το&amp;nbsp;start&amp;nbsp;&lt;img src="/cs/emoticons/emotion-3.gif" alt="Surprise [:O]" /&gt;(σχεδόν αμέσως) μου γυρνάει το error του άρθρου.&lt;BR&gt;Με LocalSystem όλα πάνε πρίμα ...&lt;img src="/cs/emoticons/emotion-2.gif" alt="Big Smile [:D]" /&gt;&lt;BR&gt;Πιθανολογώ λοιπόν ότι είναι κάτι σχετικό με security όπως πρωτοείπες ...&lt;BR&gt;Πως θα κάνω configure τον LocalService account;&lt;BR&gt;&lt;BR&gt;Κάτι ακόμη περί starting (αφού τελειώσει το installation).&lt;BR&gt;Δεν θα ήταν καλύτερο να χρησιμοποιήσω το System.ServiceProcess.ServiceController class;&lt;BR&gt;&lt;BR&gt;Θα πρέπει υποθέτω να το "ρίξω" στο ovveride του OnAfterInstall του αντίστοιχου service Installer:&lt;BR&gt;&lt;BR&gt;ServiceController sc = new ServiceController( base.ServiceName );&lt;BR&gt;sc.Start();&lt;BR&gt;sc.WaitForStatus( ServiceControllerStatus.Running, waitTo );&lt;/P&gt;
&lt;P&gt;sc.Close();&lt;/P&gt;</description></item><item><title>Απ: Windows service</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/6333.aspx</link><pubDate>Sat, 22 Oct 2005 00:44:57 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:6333</guid><dc:creator>Aris</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/6333.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=6333</wfw:commentRss><description>&lt;P&gt;Δεν κατάλαβα κάτω από ποιό account τρέχεις τελικά. Local SERVICE ή Local SYSTEM;&lt;/P&gt;
&lt;P&gt;Εάν το σύστημα είναι σωστά ενημερωμένο, τότε η πιθανότερη αιτία είναι ότι η εκκίνηση παίρνει περισσότερο από 30 sec (περίπου), οπότε το σύστημα αποφασίζει ότι το δεν μπορεί να ξεκινήσει και το σκοτώνει. &lt;img src="/cs/emoticons/emotion-6.gif" alt="Sad [:(]" /&gt;&lt;/P&gt;
&lt;P&gt;Άρης&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Απ: Windows service</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/6320.aspx</link><pubDate>Fri, 21 Oct 2005 22:35:14 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:6320</guid><dc:creator>axaros</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/6320.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=6320</wfw:commentRss><description>&lt;P&gt;Επίσης βρήκα κάτι εδώ :&lt;BR&gt;&lt;A href="http://support.microsoft.com/?kbid=839174#kb3"&gt;http://support.microsoft.com/?kbid=839174#kb3&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;Αν και έχω στήσει το SP1 και δεν κάνω pause αλλά ούτε τρέχει στο LocalSystem account.&lt;BR&gt;To error όμως είναι ακριβώς αυτό ....&lt;BR&gt;&lt;BR&gt;Καμία γνώμη ;&lt;/P&gt;</description></item><item><title>Απ: Windows service</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/6310.aspx</link><pubDate>Fri, 21 Oct 2005 18:27:23 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:6310</guid><dc:creator>axaros</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/6310.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=6310</wfw:commentRss><description>&lt;P&gt;Καλημέρα Άρη !!!&lt;BR&gt;Sorry για το μαργαριτάρι ... SP2 φυσικά ... &lt;BR&gt;Θα το κοιτάξω και θα επανέλθω.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Απ: Windows service</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/6293.aspx</link><pubDate>Fri, 21 Oct 2005 01:10:37 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:6293</guid><dc:creator>Aris</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/6293.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=6293</wfw:commentRss><description>&lt;P&gt;Για το (2):&lt;BR&gt;net start "service short name" &amp;lt;-- Property "ServiceName" στο design &lt;BR&gt;&lt;BR&gt;Για το (1):&lt;BR&gt;α. Πότε βγήγε το SP3 &lt;img src="/cs/emoticons/emotion-4.gif" alt="Stick out tongue [:P]" /&gt;&lt;BR&gt;β. Μήπως τα rights του LocalService δεν είναι αρκετά και έχεις exceptions στην OnStart(); &lt;BR&gt;&lt;BR&gt;Άρης&lt;/P&gt;</description></item><item><title>Απ: Windows service</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/6287.aspx</link><pubDate>Thu, 20 Oct 2005 20:01:38 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:6287</guid><dc:creator>axaros</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/6287.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=6287</wfw:commentRss><description>&lt;P&gt;Παιδιά συνεχίζω με κάποια μικροπροβλήματα :&lt;BR&gt;&lt;BR&gt;1) Αν κάνω το service μου register να τρέχει κάτω από το Local service account δεν ξεκινά.&lt;BR&gt;Αντιθέτως κάτω από local system (που θα ήθελα να αποφύγω) δεν έχω πρόβλημα.&lt;BR&gt;(Το test client PC είναι XP Pro SP3)&lt;/P&gt;
&lt;P&gt;2) Το StartType του service είναι automatic. Πως μετά το installation &lt;BR&gt;θα κάνω start το service (χωρίς restart του συστήματος);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Απ: Windows service</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/5652.aspx</link><pubDate>Thu, 22 Sep 2005 21:45:20 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:5652</guid><dc:creator>axaros</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/5652.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=5652</wfw:commentRss><description>&lt;P&gt;Πάνο ευχαριστώ!!&lt;BR&gt;Μπορώ να δώσω και προτεραιότητες εκκίνησης στα dependant services;&lt;BR&gt;Να υποθέσω ότι ισχύει η σειρά που θα τα δηλώσεις στο string array;&lt;/P&gt;</description></item><item><title>Απ: Windows service</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/5651.aspx</link><pubDate>Thu, 22 Sep 2005 21:27:41 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:5651</guid><dc:creator>Παναγιώτης Καναβός</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/5651.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=5651</wfw:commentRss><description>Μπορείς να ορίσεις ότι το δικό σου service εξαρτάται από ένα άλλο service περνώντας τα ονόματά τους στο ServicesDependedOn property του ServiceInstaller που θα φτιάξεις για να εγκαταστήσεις το service σου. Με τον τρόπο αυτό τα Windows ελέγχουν αν τα άλλα services έχουν ξεκινήσει και αν δεν έχουν τα ξεκινάνε. Επίσης, αν κλείσεις ένα από τα services, θα κλείσει και το δικό σου.&lt;br&gt;</description></item><item><title>Απ: Windows service</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/5648.aspx</link><pubDate>Thu, 22 Sep 2005 20:44:47 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:5648</guid><dc:creator>axaros</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/5648.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=5648</wfw:commentRss><description>&lt;P&gt;Παιδιά σας ευχαριστώ και πάλι όλους !!!&lt;BR&gt;Μία ερώτηση ακόμη :&lt;/P&gt;
&lt;P&gt;Πως μπορώ να βεβαιωθώ ότι το service μου θα ξεκινήσει μετά από κάποιο άλλο ;&lt;/P&gt;</description></item><item><title>Απ: Windows service</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/5641.aspx</link><pubDate>Thu, 22 Sep 2005 17:29:52 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:5641</guid><dc:creator>Χρήστος Γεωργακόπουλος</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/5641.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=5641</wfw:commentRss><description>Ψψψψψψ.... πολύ καλό, ανατρίχιασα !. Αυτές τις εντολές του compiler δεν τις έχω ψάξει καθόλου.... :-(</description></item></channel></rss>