.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Is it possible to show on a site whether a service is running?

Posted By:      Posted Date: September 09, 2010    Points: 0   Category :ASP.Net
I am trying to have a marker show whether or not a particular service within the services.msc is running on a remote server(s). I have a service called Yardi Services on a virtual server.  I want to be able to show on a dashboard I am creating for work, whether this service in running or stopped.  For some reason this service will randomly stop though I have a auto restart on error.  It is really confusing and so I want to be able to know when it stops so I can restart it.       I have not been able to find anything online to support this.  I am assuming that I would need to create a web service or use WMI?  I am new to this stuff and could use some help or direction.  

View Complete Post

More Related Resource Links

cannot access sharepoint site through Internet Explorer 8 on a machine running Win XP Service Pack 3


The Sharepoint portal can be accessed fine through Firefox. Opera allows me to access it, but I cannot sign out, check out a shared document or do anything which opens a small window on clicking an option.

I can stay with Firefox, but when I try to edit a shared Word document in Word I get the message "Edit document requires a Windows Sharepoint Services compatible application and Microsoft Internet Explorer 6.0 or greater" We need to edit a shared document/calendar which is uploaded. All I know is we are using Sharepoint 2007 and the version of our site is Does that mean we have Windows Sharepoint Services SP2 on our Sharepoint server?

When I try Internet Explorer, I cannot log on at all. I get a window which asks for my credentials which I enter, it fails to authenticate me, then shows me the You are not authorized to view this page message. I tried with different computers, but cannot get in using Internet explorer.

What could be the issue?

Our Sharepoint admin does not have time to look into such matters so I am on my own.

Any suggestions would be appreciated.

Show grand total running total in GridView Footer

In many scenarios we need to display Running total as well as Grand total in GridView footer. In this post i will try to explain in an easy way that how we can display running total & Grand total in a GridView footer combindly. To explain this solution using an example here i use a sales order report. The report contains all sales order amount in a tabular way. I will use a GridView to display sales order amount and use GridView footer to display Running total & Grand total. Let we have a customer table with id and name column plus an orders table with OrderID,CustomerID,OrderDate & Amount. Now our goal is to show all customers order with amount as well as page wise running total & grand total. Note that running total is necessary when you enable paging in a GridView where as Grand total is always you can consider.

Develop a Web Service: Up and Running with the SOAP Toolkit for Visual Studio


The new Simple Object Access Protocol (SOAP) Toolkit for Visual Studio 6.0 provides the infrastructure for developers to build, expose, and consume Web services. With a few exceptions that are outlined in the toolkit, the SOAP Toolkit complies with the SOAP version 1.1 specification. It includes the Remote Object Proxy Engine (ROPE), a Service Description and Code Generation Wizard, and code that provides ASP and ISAPI reference implementations of SOAP listeners. This article describes the tools and the object model of the SOAP Toolkit, and then demonstrates ASP and ISAPI implementations of a functional Web service using this toolkit.

Rob Caron

MSDN Magazine August 2000

Sharepoint site shows Service Unavailable


Hello everyon,

I am working sith WSS 3.0.

I have one webapplication with one sitecollection.Later i wanted to provide it HTTPS URL, so i extended the WebApplication with option-Yes in SSl field.

And in the virtlay directory properties -> Directory Security -> Secure communications -> Edit

selected Required Secure Chanel.

Thats it. I didn't do anything in that.


Then because of some problems , i deleted the iis website of extended webapplication from central admin.

After that when ever i try to open the site, it shows service unavailable.  And the application pool is getting disabled.

Please help me to get the site working.


Thanks in advance.


how can we show error in our application when exception occur in webs service

how can we show error in our application when exception occur in webs service

calling a web service on a remote server from a ASPX page (web site project VS2005)

HI,I am maintaining a web site project in VS2005 and have to call a new web service on a remote server. I've done add web reference, and created the .wsdl and .discomap files in the app_webReference folder.  When I try to create a object representing the web service in the code ( wsnamespace.serviceName ws = new wsnamespce.serviceName(); ) the code wouldn't compile.The web site project is already calling other web services. When I right click on the type representing the web service and "go to definition" it takes me to a proxy class (derived from of course SoapHttpClientProtocol) in the metadata. I think this is what's missing for  the new web service i'm trying to call. Have I missed any steps?Thanks in advance.-me

Web Service and Web Site in same application? .net 2.0

Hi  Is it possible to have a web Service and Website in the same application. e.g The web service would be mydomain.com/service.asmx  and website mydomain.com/sameapplication/login.aspx    Both would share the same code for logic and data access   Thank you

Need a WebPart to show permissions on site

HiI need a web part that will display the permissions for a site (web part is added to the site) so that users can see what level of permissions have been set before they add any content.This will be Doc Libraries, Lists, Blogs etc.Does anyone know of such a thing?ThanksRob

Site Pages don't show up in mobile mode

In Site actions, I get the regular URL and the Mobile URL - - I've created several aspx pages with aspx controls on them. Two pages have dropdownlists, textboxes and gridviews. One just has a regular HTML table with aspx buttons, with postbackurls. Any list I create shows just fine, but none of the content in my aspx pages show up in mobile mode. I can get a list of the page names (with the extensions) when I click on 'view All Pages', however, when I click on the links, the content in the page does not show. What are we supposed to do for pages like these, for mobile mode?

How to show a document from the Document library from another site?

I have a document library that includes all documents of portal in site A "Document center". How to display documents in site B "Personnel"? We need to show to documents, which have metadata column "personnel" in the site B.  Kenny_I

Error while invoking wcf service and running its methods

Failed to invoke the service. Possible causes: The service is offline or inaccessible; the client-side configuration does not match the proxy; the existing proxy is invalid. Refer to the stack trace for more detail. You can try to recover by starting a new proxy, restoring to default configuration, or refreshing the service.    I am using a wcf service with some methods in it called by some layers wherein i am putting all my business logic.While invoking the service from wcftestclient  and when running few methods i am getting this error . I am getting output for some methods in the same service but for some other methods i am getting this error . I am using LINQ in the methods.    My solution has number of projects .For running the service ,i am right clicking on the project and viewing in the browser as i cannot build whole solution as i have few errors in some unit test projects.       As i am getting output for some methods ,this is definetly not about starting the service .  

Site Aggregator web part does not show new tab

HI we have two sharepoint2010 sites on both when we add a new Site Aggregator web part we don't see the add new tab. I used this webpart quite a bit in 2007 and now in 2010 its not working.  is there some thing i have i have enable i am logging in as the site admin.   Thanks    

Sharepoint Search Service is running but no results

Hi,   I am new in working with Sharepoint. I recently installed the sharepoint foundation 2010 on a windows server 2008 machine. The sharepoint installed properly and the Sites are working fine. But I just cannot make the Sharepoint Search feature (using the search from the search bar). It always returns no results found. The Sharepoint foundation Search service is started. Also I cannot find the "Search Service" link under the Manage Service applications tab. Did I do anything wrong while installing Sharepoint. Also it will be very helpful if someone can point to a resource where the details about the Search Installation process and working is explained. Thanks

Running code after site definition site creation in a event receiver or feature receiver

Hi guys I've got a site definition which is pretty much based on STS.This is it's own sharepoint project. Let's call this project SiteDefProj. Next in another SharePoint project (same solution though). Let's call this CustomListProject. In this project I've got a feature which provisions a bunch of lists based on custom content types - this feature is a site scoped. Let's call this feature: CustomListInstances. I have added a feature receiver to this feature to execute some custom code on the lists themselves (under feature activated) In my ONET.XML (part of the SiteDefProj) I have CustomListInstances feature ID as part of my <sitefeatures>. When I do a create site I can actually step through the code and see it actually being executed but after the site is created the list instances are created but it's like the code never run or did anything. The weird part is that stepping through the code while creating a site collection using my SiteDefProj the code runs great with no errors. All lists are there and the code runs smooth. If I manually create a STS site and activate my feature everything works and the code does actually run and the effects are visible after the feature is created. Again I can actually step through it in debug. My suspicion is that there's some sort of a race condition in the CREATE SITE functionality where maybe the web or site collection hol

Site Web Analytics reports and Site Collection Web Analytics reports show no data

Although I have enabled all the web analytics and health data collection option and can see that usage data files are being created both my Site Web and Site Collection analytics reports show no activity. I have checked the Sharepoint 2010 documentation and it basically states only thing to do is enable the respective option under the 'Configure web analytics and health data collection' section.

Meetings.asmx web service to inherit parent site permissions



I am using the Meetings.asmx web service to create a sub site.  Unfortunately this does not provide a mechanism to inherit parent site permissions, it just creates a sub site with unique permissions which is not what I want.   In order to inherit the parent permissions I am using the Permissions.asmx.  Can someone please provide some sample code on how to do this, I tried various mechanims through the Permissions.asmx but does not seem to be able to get it right.




Unable to connect to local host service when a splash screen is show before start the services

Hi all:

I want to show a splash screen before start the local host services, the host can be open without error, however the client (Form1) is not able to connect to the service. Without the splash screen, every thing work fine. Any idea why ?

Here is the code.

Imports System.ServiceModel

<ServiceContract()> _
Public Interface IHelloWorldService
   <OperationContract()> _
   Function SayHello(ByVal name As String) As String
End Interface

Public Class HelloWorldService
   Implements IHelloWorldService

   Public Function SayHello(ByVal name As String) As String Implements IHelloWorldService.SayHello
      Return String.Format("Hello, {0}", name)
   End Function
End Class

Module Module1
   Private host As ServiceHost
   Private frmSplash As Form

   Sub Main()
      AddHandler AppDomain.CurrentDomain.AssemblyLoad, Addres
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend