Debugear Web Service En .Net

Páginas: 2 (420 palabras) Publicado: 22 de mayo de 2012
http://www.codeproject.com/Articles/10153/Debugging-Windows-Services-under-Visual-Studio-NET
Debugging Windows Services under Visual Studio .NET
Introduction
Normally, debugging a Windowsservice under Visual Studio .NET is painful. Windows services won't actually run directly within Visual Studio .NET, so the usual technique is to install and start the Windows service and then attach adebugger to it. An alternative approach is to pull the guts out of the service, stick it in a separate library, and then build some other app (e.g., a console app) to sit in front of it. This approachuses neither of those techniques.
When building a C# Windows Service project in Visual Studio, it will leave you with a class containing quite a few methods including a Main(), such as this: Collapse | Copy Code
-------------------------------------------------
// The main entry point for the process
-------------------------------------------------static void Main()
-------------------------------------------------
{
-------------------------------------------------
System.ServiceProcess.ServiceBase[]ServicesToRun;
-------------------------------------------------

-------------------------------------------------
// More than one user Service may run within thesame process. To add
-------------------------------------------------
// another service to this process, change the following line to-------------------------------------------------
// create a second service object. For example,
-------------------------------------------------
//-------------------------------------------------
// ServicesToRun = new
-------------------------------------------------
// System.ServiceProcess.ServiceBase[] {new Service1(),...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Web service con .net
  • Web Services
  • Web Service
  • Web Services
  • Web services
  • Web services
  • Web service
  • Web services

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS