C# windows service question

I am a web developer who has not worked with windows development for many years.  I suddenly have to change a windows service.  
The windows service reads EDI files.  I want to check for the existence of a row in a SQL table at the beginning of the code.  If the row does not exist, then I want to stop processing the current EDI file and move on to the next file.  I already
have the code to check for the existence of the row.  My question is:  Is there an easy way to end processing of this file and move on the next file?

If the code is poorly written, you might be better of rewriting it  Personally
I always find my own code poorly written because I often code too linear and the code does not 'jump' from method to method 
Assuming that your code is basically single threaded (only processing one file at a time), you can keep a bool in the Program class to indicate if you want
to continue.
static class Program
public static bool WantToBailout=false;
static void Main()
You can set and check this everywhere in the existing code
private void someMethod()
if(Program.WantToBailout)
return;
// normal processing
if(!rowcheck())
Program.WantToBailout=true;
return;
private void anotherMethod()
if(Program.WantToBailout)
return;
someMethod();
if(Program.WantToBailout)
return;

Similar Messages

  • Windows service question (automatic start?)

    Is there a setting in OSX server that tells the box to start a specific service automatically if the machine is rebooted, specifically Windows service? When we reboot, Windows service does not start automatically.
    Thanks!

    /System/Library/StartupItems/Samba/Samba is a startup script that starts SAMBA, which provides the Windows file sharing. The script checks the entry in /etc/hostconfig for SMBSERVER to say yes, and if it does starts the daemons (smbd and nmbd).
    Roger

  • Questions about Windows services on a OS X 10.3 server

    Hi! I'm wanting to configure an OS X 10.3 server to participate in a Windows workgroup so I can share a directory on the server that the Windows machine can use as a backup drive, of sorts. I've got only ONE Windows box in an all-Mac network. The ultimate goal is to provide an automated backup solution for the Windows machine. I would like the Windows user to copy their files to the server so the scheduled Backup running on the server will backup their files, along with the rest of the files that are backed up to iDisk.
    So, I'm thinking I can use the Windows service on the OS X server to provide the backup directory/folder the Windows machine will map to a local windows drive, making it easy to copy files to the target backup area.
    I've got AFP, OpenDirectory (I think), and Windows service as the only services running on the OS X server. I've got the Windows service setup as a standalone server with the correct workgroup name and the Windows machine is setup with the same workgroup as the server. The Windows machine is running Windows XP.
    I've got the Windows service setup to act as the workgroup browse master and I do NOT have WINS enabled.
    Now for my questions:
    When I view the workgroup on the server in the "Network" area of Finder, I see nothing. When I view the workgroup on the Windows machine, I only see the Windows machine. On the server, I turned on the Windows service log and noticed only SMBD was starting, not NMBD. I presume this is why the server can't "see" the Windows machine and vice-versa, correct?
    I've read the following threads:
    http://discussions.apple.com/thread.jspa?messageID=2358362&#2358362
    http://discussions.apple.com/thread.jspa?messageID=4132419&#4132419
    and it looks like I need to create an account for the Windows user on the OS X server and I'm thinking I need to use the "Workgroup Manager" for that, right?
    There are no passwords for the Windows accounts that would be connecting to the same backup area on the server. Will I be able to create accounts without passwords on the server for these users or will I be required to specify a password for when the Windows machine connects to the server?
    This is my first time configuring an OS X server like this so please excuse my elementary questions.
    Thanks!
    Peace...

    You need to make sure the shortname in workgroup manager is the same as the logon name when you create the drive on the PC.
    Personally i'd do it all over IP. On the PC goto Run, and type \\ip address of server\sharename. It should then ask for a UN/PW, this is what you've entered into workgroup manager, and should be the shortname.
    That should then give you the drive.
    To map it so its always there when they log-in, goto my computer and map network drive, making sure you click the link that says 'use a different account to connect'

  • Question about oradim and windows services

    Hello.
    I have a db instance on my W-XP Pro machine that was created with this command:
    oradim -new -sid <my_sid> -startmode m -pfile <my_pfile>
    Since the creation I only used to need to start the windows service in order to work with the db.
    I decided to delete the instance.
    oradim -delete -sid <my_sid>
    Afterwards I recreated the instance:
    oradim -new -sid <my_sid> -startmode m -pfile <my_pfile>
    And now I have this strange situation:
    First I need to start the windows service (although it does not startup the db) and then starting the db with sqlplus.
    Would it be possible restoring to the initial situation?
    Thanks in advance.

    Did you tried changing the database startup as Auto
    oradim -edit -sid <my_sid> -startmode auto -SRVCSTART
    systemThanks.
    Although the above solution is working ok, I am also trying your solution but it seems there must be a syntax error:
    D:\>oradim -edit -sid <my_sid> -startmode auto -SRVCSTART system
    DIM-00036: Ha introducido una opci¾n no vßlida para el comando -DELETE
    D:\>oradim -edit -sid <my_sid> -startmode a -SRVCSTART system
    DIM-00003: Falta un argumento para el parßmetro
    (I am sorry but I do not understand all the oradim options).

  • How to create a client console to connect to server in windows service using c#

    my code is error
    can you check the code please
    client console code
    partial class Program : ServiceBase
            public static void Main(string[] args)
                serverservice ss = new serverservice();
                ss.myserver();
                    TcpClient tcpc = new TcpClient();
                    Console.WriteLine("connecting.......");
                    tcpc.Connect("10.128.1.116", 80);
                    Console.WriteLine("connected........");
                    Console.Write("enter msg to be transimitt");
                    string str = Console.ReadLine();
                    Stream stm = tcpc.GetStream();
                    ASCIIEncoding asc = new ASCIIEncoding();
                    byte[] ba = asc.GetBytes(str);
                    Console.WriteLine("transmitting..........");
                    stm.Write(ba, 0, ba.Length);
                    byte[] bb = new byte[100];
                    int k = stm.Read(bb, 0, 100);
                    for (int i = 0; i < k; i++)
                        Console.Write(Convert.ToChar(bb[i]));
                    tcpc.Close();
                windows service for server code is
      public partial class serverservice : ServiceBase
            public serverservice()
                InitializeComponent();
            protected override void OnStart(string[] args)
                myserver();
               Thread mythread = new Thread(new ThreadStart(myserver));
                 mythread.Start();
            public void myserver()
                char d;
                IPAddress ipad1 = IPAddress.Parse("10.128.1.116");
                TcpListener tcpc = new TcpListener(ipad1, 80);
                tcpc.Start();
               // System.Diagnostics.Process.Start(@"C:\Users\PC\Documents\Visual Studio 2010\Projects\WindowsFormsApplication1\webs\webs\clientconsole\clientconsole\bin\Debug\clientconsole.exe");
                Console.WriteLine("server is running at port 80");
                Console.WriteLine("local end point is" + tcpc.LocalEndpoint);
                Console.WriteLine("waiting for connection");
              // var client=new TestExecutionEngine
                Socket s = tcpc.AcceptSocket();
                Console.WriteLine("connection is accepted from" + s.RemoteEndPoint);
                byte[] b = new byte[100];
                int k = s.Receive(b);
                Console.WriteLine("received");
                for (int i = 0; i < k; i++)
                    d = Convert.ToChar(b[i]);
              Console.WriteLine(char.ToUpper(d));
                ASCIIEncoding asc = new ASCIIEncoding();
                s.Send(asc.GetBytes("msg is recveived"));
                Console.WriteLine("\n send aknwldge");
                s.Close();
                tcpc.Stop();
               protected override void OnStop()
                EventLog.WriteEntry("stopped");

    kavya --
    You have erroneously posted this question in a user forum dedicated to questions about Project Online, an enterprise project management application.  I would recommend you repost your question in a user forum that deals with C sharp programming questions. 
    Hope this helps.
    Dale A. Howard [MVP]

  • Windows Service does not start automatically

    Hi
    I have a .NET 4.5 C# windows service, StartType set to automatic. It is running fine in server.
    Few days ago, my server has windows update, including security update for .NET framework 4.5.1. Server auto restarted. 
    However, my service is not started.
    By referring to eventlog, it shown as below sequence
    1. Explorer initiated restart - Shutdown type - restart
    2. Sql Server Service is stopped successully
    3. My Service is stopped successully
    -- Server restarted
    4. Sql Server Service is in running state
    5. My Service is stopped successully
    Question is, why my service is stopped instead of running/started? I checked event log and my app log, no error at all.
    Any ideas?
    Thank you

    I was thinking to set "SQL Server", but I am not sure what is the service name for the SQL service name.
    Anyway to specify like "SQL Server *" ?
    thank you
    The default instance service name is MSSQLSERVER, and MSSQL$[name] for a named instance. If you're not sure what the instance is, you could check the services.msc or the registry value in this registry hive:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\InstalledInstances
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • This window service has timer for update record once in a day at 5 pm.

    Hi Guys Please help me.
    Actully i create a window service. This window service has timer for update record once in a day at 5 pm.
    I have write a code but it is not working fin
    Here is my code.
    App.Config File:-
    <appSettings>  
        <add key="IsTrace" value="YES"/>
        <add key="SourceServerPath" value="Server=DATASERVER\SQL2008R2;database=WDSBHN;User ID=Wireless;pwd=chetu@123"/>
        <add key="ArchiveServerPath" value="Server=CHETUIWK091\SQL2008R2;database=Demo;User ID=sa;pwd=Chetu@123"/>
        <add key="ReportHour" value="22"/>
        <add key="ReportMinut" value="01"/>
        <add key="ReportSecond" value="20"/>
        <add key="ReportMilisecond" value="230"/>
        <add key="DailyTimer" value="tmrProductionDataTransfer"/>
        <add key="MonthlyTimer" value="tmrProductionCleanUp"/>
        <add key="ActionParameter" value="WDS-DataTransfer"/>
      </appSettings>   
    Vb.Net Code:-
    Protected Overrides Sub OnStart(ByVal args() As String)
            ' Add code here to start your service. This method should set things
            ' in motion so your service can do its work.
            Try
                LoggingTracing.WriteTrace("DataTransfer Service START " & Now.ToLongDateString & " " & Now.ToLongTimeString())
                '***Get the Time of service run
                Dim svcRunTime As System.DateTime = Configuration.ConfigurationManager.AppSettings("ServiceRunTime")
                '***differance of these two time
                Dim ts As TimeSpan = DateTime.Now.Subtract(svcRunTime)
                '***production data transfer
                tmrProductionDataTransfer.Enabled = True
                tmrProductionDataTransfer.Interval = 1000
                tmrProductionDataTransfer.Start()
            Catch ex As Exception
                LoggingTracing.WriteError(ex.ToString())
            End Try
        End Sub
    Private Sub tmrProductionDataTransfer_Elapsed(sender As Object, e As Timers.ElapsedEventArgs) Handles tmrProductionDataTransfer.Elapsed
            Try
                Dim time As Date = Date.Now
                Dim currHour As Integer
                Dim currMinute As Integer
                Dim currnSecond As Integer
                Dim reportHour As Integer
                Dim reportMinute As Integer
                Dim reportSecond As Integer
                Dim reportMiliSecond As Integer
                Dim actionParameter As String = Configuration.ConfigurationManager.AppSettings("ActionParameter")
                Dim actionTimerName As String = Configuration.ConfigurationManager.AppSettings("DailyTimer")
                currHour = time.Hour
                currMinute = time.Minute
                currnSecond = time.Second
                reportHour = Convert.ToInt32(Configuration.ConfigurationManager.AppSettings("ReportHour"))
                reportMinute = Convert.ToInt32(Configuration.ConfigurationManager.AppSettings("ReportMinut"))
                reportSecond = Convert.ToInt32(Configuration.ConfigurationManager.AppSettings("ReportSecond"))
                reportMiliSecond = Convert.ToInt32(Configuration.ConfigurationManager.AppSettings("ReportMilisecond"))
                If currHour = reportHour AndAlso currMinute = reportMinute AndAlso currnSecond = reportSecond Then
                    ObjProductionDataTransfer.CopyDataToArchiveServerDayWiseDL(Configuration.ConfigurationManager.AppSettings("SourceServerPath"), Configuration.ConfigurationManager.AppSettings("ArchiveServerPath"),
    actionTimerName, time, actionParameter)
                End If
            Catch ex As Exception
                LoggingTracing.WriteError(ex.ToString())
            End Try
        End Sub
    It is running at 5 pm , but run 3 times, for that records has updated 3 time 
    How i can resolve it, If any problem in this code please give me the write direction or code. And this thing i have been searching for 3 days , but stile i didn't get any solution
    sonesh

    Sonesh,
    Sorry but you have posted to a forum that deals exclusively with questions/issues about customizing and programming Microsoft Project, a planning and scheduling application. I suggest you delete this post and find a more appropriate forum.
    John

  • Error while trying to load Crystal report via Windows service

    Hi,
    I am trying to generate PDF file using crystal reports. I have developed a console application which works absolutely fine, however when I converted the code to work as windows service (wcf hosted in Windows service), this below error I see from stack trace:
    Load report failed.
    at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
    at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
    at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
    at AtDataWindowsService.GetData.generatePDF(DataTable dt)
    The code used is:
    CrystalDecisions.Shared.ExportFormatType exportFormat;
    ReportDocument reportObj = new ReportDocument();
    exportFormat = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat;
    //Load the Crystal Report
    reportObj.Load("CrystalReport.rpt");
    reportObj.SetDataSource(dt);
    What might be going wrong here?

    Hello,
    Thank you for your post.
    Based on your description, I am afraid that the issue is out of support of VS General Question forum which mainly discusses
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    I suggest that you can consult your issue directly on SAP Crystal Reports:
    http://scn.sap.com/community/crystal-reports/content?filterID=content~objecttype~objecttype[thread]
      for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Oracle SOA Suite (10.1.3.3.0) install as Windows service

    Hi Guys,
    This is a repost. Since the original thread was kinda hijacked, I think maybe I should start a new thread.
    I was installing Oracle SOA Suite (10.1.3.3.0) on Windows Server 2003.
    Original issue: by default installation, 10gAS cannot run as windows service.
    Following MetaLink Note, I manually created OreacleMyHomeProcessManager service, after start this service, seems everything works fine now.
    However, in original MetaLink Note it asked to create two services, another one is OracleMyHomeASControl - but the nmesrvc.exe file cannot be found anywhere in my installation, so I did not create it.
    My questions are:
    1. Do I really need to create the 2nd service?
    2. Why the 10gAS works fine without this 2nd service?
    3. Without 2nd service, any potential problems it may cause?
    Thanks a lot in advance for reply!
    WMC
    null

    Don't worry, you are good to go. I just posted my comments on the earlier thread:
    Oracle SOA Suite (10.1.3.3.0) install question
    Thanks
    Shail

  • Create pdf-files trough prn-files in a windows service applicatio

    Hi,
    i have also the problem to create pdf-files from .prn-files.
    in normall windows aplication we ar using the distiller but we would like to create the pdf's by running our application as windows service.
    in this case it is not possible to use the distiller. As i understood we have to use the acrobat PDG Generator as a server application.
    My question is, is it possible to make function calls to the service where i pass trough the prn-file and the according pdf-file is than created immediately.
    This is important because the created pdf-file ist than used for different purposes.

    Hi psprenge,
    As per your request of refund,
    I have cancelled your subscription, and set the refund process in motion.
    Your refund no.is 66193634.
    Regards,
    Florence

  • Cluster and Windows Service

    I have three machines running weblogic 6.0 in a cluster. One of the machine is an administration server. I wish to set Weblogic as a Windows service on each machine. The problem is managed servers can't start up until the administration server is fully started. Does this mean I have to start the administration server first and wait until it is fully started before I start the managed servers?

    Hi,
    I am not quiet understanding your question, could you clarify your question, as far as I know, an answer file is an XML-based file that contains setting definitions and values
    to use during Windows Setup. In an answer file, you specify various setup options, including how to partition disks, the location of the Windows image to install, and the product key to apply. You can also specify values that apply to the Windows installation,
    such as names of user accounts, display settings, and Internet Explorer favorites. The answer file for Setup is typically called Unattend.xml.
    The related KB:
    Building an Answer File
    http://technet.microsoft.com/en-us/library/cc748874(v=ws.10).aspx
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Windows service, error Maximum request length exceeded

    What is causing this error, from the windows service?
    There was an exception running the extensions specified in the config file. ---> Maximum request length exceeded

    Hi Nick,
    Per my understanding you got this error "Maximum request length exceeded" about your reporting services, right?
    It seems the issue is caused by the request reach the max length.
    To solve the issue, please made the changes in web.config of both the Report Server and the Report Manager:
    <httpRuntime executionTimeout = "9000" maxRequestLength=" 2097151" />
    If the solution above does not help, please post the error logs of the Report Server. The error logs will help us more about troubleshooting and also provide us details information about what actions you are doing when causing this error.
    We can get the logs from:
    <Install Driver>:\Program Files\Microsoft SQL Server\MSSQL.<X>\Reporting Services\LogFiles
    Please feel free to ask, if you have any more questions.
    Regards
    Vicky Liu

  • Airport extreme with windows service pack 2

    I have just recently bought a macbook pro laptop, & have been corresponding with a forum member about a wireless setup.
    I want to have a wireless set up with a PC desktop with windows xp home service pack 2 that is stationed in the kitchen. This was recommended to me in this forum. Right now the PC has an Ethernet black box, with at&t DSL service. It has one yellow Ethernet cable coming from the black box to the PC & one grey DSL cord coming out of the black box & connects to a phone in the kitchen. I bought the laptop for my online classes so steady reliable internet service is crucial. Upon reading the specs of the airport extreme however got me a little concerned about which service pack I can use.
    Here is my question & comment from another member on this forum;
    I just noticed a PC has to have windows service pack 3, I have service pack 2, will it work with service pack 2? I am reluctant to update to service pack 3, my story behind my reluctance; the last time I did it, my PC completely crashed, the hard drive died. It had to be replaced, & ever since I get a little yellow alert to update to service pack 3, but I have not done it out of fear of another meltdown. Right now it is the only computer in our house, & I need it for my online classes. Last summer when I tried the service pack 3 update, & subsequent PC meltdown, I had to go to a public computer lab to finish off an online class, so I do not want to go through this again.
    And this is what they said;
    +That will give you wired internet access at the PC. Of course, the MacBook Pro will be wireless. I am not sure about the technical specifications required for the Airport. My initial reaction is that you should be fine to use the Airport as just a router with the PC with Service Pack 2. I think SP3 is just required for administration of the Airport using the Airport Utility for Windows. But, you could administer the Airport with your MBP. You may want to confirm this in the Airport forum unless somebody else here knows for sure! Sorry!+

    Which would be more powerful & reliable? the newest airport extreme or the aiport with the 500GB time capsule?
    Again, it will depend on what your networking requirements are. If we are talking about support for Time Machine backups, then only the Time Capsule (of the two options you listed) would work. Apple doesn't currently support these backups to drives attached to the AirPort Extreme Base Station.
    Would I be better off with something that is just for wireless internet? or a combo unit time capsule & airport?
    If you don't have any networking gear now, then it may make better sense to go with a combination unit.

  • How to move existing windows service to cloud?

    Hello team,
    We have one windows service.
    We call it as Monitor Service. This service is running at customer premise and continuously monitor the door controllers fixed at client location. it also update the database in case of any update observed at door control panel. My question is, This Window
    Service is separately running for each customer within their premise to monitor the devices fixed at customer location. How can I move this windows service to cloud (as without VM) such that it will monitor the multiple devices of more than one customers across
    the globe.  if it is not feasible then let us know any other alternate solution. Actually, this is a very grey area for us.
    Thanks,
    Bhavin Modi

    Hi,
    Here are a few key things which you might want to consider while planning your migration to Azure
    https://msdn.microsoft.com/en-us/library/azure/jj156157.aspx?f=255&MSPPError=-2147217396
    Azure provides different hosting models for running applications. Each one provides a different set of services, and so which one you choose depends on exactly what you're trying to do. You may choose any of the below offerings
    Cloud Service (PaaS)
    Virtual Machine (IaaS)
    Websites
    I suggest you to refer to the below article to find the best hosting model per your requirement
    http://azure.microsoft.com/en-us/documentation/articles/fundamentals-application-models/
    Hope this helps !
    Regards,
    Sowmya

  • Is using a taskbar icon in .exe combined with windows service a good idea as part of an alarm system?

    My client wants an alert system and his focus is on the taskbar.  He wants the icon to change, (and ideally even blink) and also to have some beeping when a new work request comes in.  It needs to run constantly, and grab the attention of an operator
    who may not be paying much attention to the screen.
    I’m excited to develop this, but after years of web development, I feel paralyzed.  I must be making this harder than it needs to be, but here’s my plan…  I'll start with a windows form, which will run minimized, and have an icon that looks like
    a hammer in the taskbar.  A timer would continually check for a new service requests.  When it sees one it would change the toolbar icon to a red x and sent a few dozen beeps out to the operator.  I think I need a windows service running that
    checks periodically to see if my windows exe is running.  If not, it should start it up.  Perhaps this could be a scheduled task, rather than a service.  
    Some of my questions are;
    How do I change the taskbar icon on the fly?
    Is this a good idea, or is there an easier way?
    Snippets of code or related articles are most welcome!
    Thanks!

    So I created a windows form and added a timer to check for unacknowledged requests.  If it finds any, it changes the icon on for the taskbar, and makes a beep.  Simple, but it works.  However, I'm having a beep of a time trying to figure out
    where to put the ico files so they are where they need when I publish it.  Others seem to suggest adding them using the properties of the application, under application / resources / Icon and manigest blah blah blah.  But I can only seem to add one
    there.  I need the three different ones.  I'm confused!  Any suggestions?
            private bool iconBig = true;
            private Icon redcross = new Icon("..\\NewRequest.ico");
            private Icon redcross2 = new Icon("..\\NewRequest2.ico");
            private Icon hammer = new Icon("..\\Hammer.ico");
     private void timer1_Tick(object sender, EventArgs e)
                List<WorkRequest> myWorkRequests = WorkRequestData.WorkRequest_unAcknowledged();
                if (myWorkRequests.Count > 0)
                    for (int i = 0; i < 5; i++)
                        SystemSounds.Beep.Play();
                        if (iconBig == true)
                            iconBig = false;
                            this.Icon = redcross;
                            this.Refresh();
                        else
                            iconBig = true;
                            this.Icon = redcross2;
                            this.Refresh();
                else
                    this.Icon = hammer;
                    this.Refresh();

Maybe you are looking for

  • New Macbook Air stopped transmitting to overhead projector

    Hello, Up until last week, I was successfully using 2 different overhead projectors with my MacBook Air (purchased around 2008 or 2009). I've just bought a new MacBook Air, and it has stopped projecting. I use the same connector (VGA?). Seems like it

  • How to Include Java sourcecode into ER File in Web Dynpro

    Hi Everyone, There should be a setting in the developer studio , where in which we can include the source code into a ER File after we build the source code. I am unable to get this settings. Please help me out Regards, Raj

  • BAPI / FM for Purchase Requisition Change

    Hello All, I need to add items to the existing requisition. I tried <b>BAPI_REQUISITION_CHANGE / ME_UPDATE_REQUISITION / BAPI_PR_CHANGE / FMFG_MM_REQ_CHANGE</b>, but none of them seem to be working fine for me. Anybody worked on this task or any othe

  • How to utilize 'Location' in Smart Folders

    I've been trying to make a smart folder that I can use in conjunction with Dropbox, to filter what photos I am yet to upload. I was thinking something along the lines of 'Location is Pictures' and 'Location is not Dropbox' or something similar. Thoug

  • Logging into vmware server

    I have installed VMWare Server 2.0.x from AUR.  I cannot figure out how to log into the console.  When running vmware-config.pl the first time I used my normal username as the administrator username.  When I realized it had to be an administrator on