Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8332195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:39:13+00:00 2026-06-09T02:39:13+00:00

I am working on a c#/soap/php project where the php web interface will do

  • 0

I am working on a c#/soap/php project where the php web interface will do a soap request to determine if the console application is running.

The soap request calls a function that gets the processes and then loops through to determine if the process name contains EmailServer. However, this is never being found even though I can see the process EmailServer.exe in Task Manager. I’ve also put a breakpoint so I can look through what processes is in the array and EmailServer is not there.

I’m running Windows 7 x64 with .net framework 3.5 and I am logged in as Administrator account so it can’t be a permissions problem.

Below is a screenshot which shows my process running in Task Manager enter image description here

Below is the code that gets the process list

public bool checkIfProcessIsRunning()
        {
            Process[] processes = Process.GetProcesses();
            foreach (Process process in processes)
            {
                if (process.ProcessName.ToLower().Contains("EmailServer"))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            return false;
        }

Thanks for any help you can provide.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T02:39:14+00:00Added an answer on June 9, 2026 at 2:39 am

    process.ProcessName.ToLower().Contains(“EmailServer”)

    You’re checking if an all lowercase string contains a string with uppercase characters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C# application that communicates with a PHP-based SOAP web service for
I'm working on a project where we have several SOAP Web Services developed on
I got a PHP web service that had been running great for a long
I am struggling to get some SOAP request working using SOAP Ligth and PHP
I'm writing a PHP application which uses a number of SOAP web services to
I would like to get a working example in PHP that parses a SOAP
I am working on a cross platform project with c#/soap and php on Windows
I have a working SOAP request from my website to a .net based API.
I'm working with SOAP using the javax.xml.soap package. I have a javax.xml.soap.SOAPMessage object that
I am working on making a web service using soap. I'm stuck at trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.