473,396 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Debugging a remoting service

I have a service that is set up to use remoting. Is there a way that calls
from a web page to this service can be debugged in Visual Studio 2005?
Feb 22 '07 #1
4 3596
Start two instances on your machine, one with the app calling the Remoting
Service, one with the service. Set breakpoints in the service and call. That
is the easiest and least intrusive way to do it. When the service is called,
it will break. It is not as straightforward as a web service, but there are
plenty of pages out there to help.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

********************************************
Think outside the box!
********************************************
"John Wilmot" <nf*@nospam.comwrote in message
news:O8**************@TK2MSFTNGP04.phx.gbl...
>I have a service that is set up to use remoting. Is there a way that calls
from a web page to this service can be debugged in Visual Studio 2005?
Feb 23 '07 #2
Sorry... not following you here. The remoting "service" is running as an
actual service on my local machine. I want to be able to set breakpoints in
the service, but it is not obvious how to do this and Google searches tend
to land on "remote debugging" rather than debugging remote "remoting
services".

I am wondering... is it even possible? If so, I am thinking it is somehow
related to attaching a process in the debugger.

You would think something with such an obvious need would have more
information available, but that does not seem to be the case.

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:94**********************************@microsof t.com...
Start two instances on your machine, one with the app calling the Remoting
Service, one with the service. Set breakpoints in the service and call.
That is the easiest and least intrusive way to do it. When the service is
called, it will break. It is not as straightforward as a web service, but
there are plenty of pages out there to help.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

********************************************
Think outside the box!
********************************************
"John Wilmot" <nf*@nospam.comwrote in message
news:O8**************@TK2MSFTNGP04.phx.gbl...
>>I have a service that is set up to use remoting. Is there a way that calls
from a web page to this service can be debugged in Visual Studio 2005?

Feb 23 '07 #3
Hi,

Thirsty Traveler wrote:
Sorry... not following you here. The remoting "service" is running as an
actual service on my local machine. I want to be able to set breakpoints in
the service, but it is not obvious how to do this and Google searches tend
to land on "remote debugging" rather than debugging remote "remoting
services".

I am wondering... is it even possible? If so, I am thinking it is somehow
related to attaching a process in the debugger.

You would think something with such an obvious need would have more
information available, but that does not seem to be the case.
In such case, I like to use the "Attach to process" menu in VS2005. You
find this menu under "Debug" for example.

In the dialog, select the process you want to attach to. If the PDB
files are also available (you must use the "Debug" version for this),
then you'll be able to place breakpoints in the code. Using this
technique, there is no need to start two instances of Visual Studio,
though I find that it sometimes helps to keep a better overview (one
instance of VS being the client and the other being the service).

HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Feb 23 '07 #4

One thing I've found helpful is to have all my services offer a
console option which runs them as a console app instead of as a
windows service. Then I can hook up the start command in VS to run
the service as a console and immediately debug. Choose console option
usually by passing "/console" as an argument and detecting it within
Main().

Attach to process is another option as a previous poster mentioned.

HTH,

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.
>"John Wilmot" <nf*@nospam.comwrote in message
news:O8**************@TK2MSFTNGP04.phx.gbl...
>>>I have a service that is set up to use remoting. Is there a way that calls
from a web page to this service can be debugged in Visual Studio 2005?
Feb 23 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: anders | last post by:
Hi! I have a config file that looks like this: <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.runtime.remoting> <application> <service> <wellknown mode="SingleCall"...
12
by: Mural Kumar via .NET 247 | last post by:
(Type your message here) -------------------------------- From: Mural Kumar Which is the best way to make a remoting server? 1)As a Windows service 2)As a simple exe, which will run in a...
2
by: Stephajn Craig | last post by:
Is it possible to apply remoting techniques to a Windows Service Application? I have an application that I'm building that is primarily ASP.NET based. However, there are some functions that I...
14
by: | last post by:
I cannot for the life of me get remove debugging to work. I continue to receive "Error while trying to run project: Unable to start debugging on the web server. Access is denied. Verify that you...
0
by: Kirk | last post by:
I'm trying to use a Web Service to be a Remoting client of an existing ..NET 2.0 server. But I get the following error when I try to use System.Runtime.Remoting.Channels.Http in my WebService. ...
8
by: nyhetsgrupper | last post by:
I have written a windows service and want to expose a web based user interface for this service. I then wrote a class library containing a ..net remoting server. The class library have a method...
8
by: schaf | last post by:
Hi Ng! My application (version 1 a1) communicates with a service (version 1 s1). Now I would like to update the service and create a service version 2 (s2). The new function calls within s2 are...
13
by: José Joye | last post by:
Hello, What is the best way to stop a remoting server (Singleton SAO) that has been started with RemotingConfiguration.Configure(). For sure, I want to do this without quitting the application...
2
by: erbilkonuk | last post by:
Hi, I am very new to .NET Remoting and I try to run a simple program to subscribe to an event raised by Remoting Class. The Remoting Server initiates an instance of Remoting Class as Singleton /...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.