Best Method Of Remotely Controlling/debugging A .NET Application?

Apr 25, 2011

I'm running a VB.NET application 24 hours a day on a dedicated machine. I'd like to be able to receive status updates and also control/debug the application remotely (i.e. from another computer via the internet).It would be an advantage if the communication was lightweight (in terms of bytes sent and received) so I can control the thing without needing a fast internet connection. Also, I'm running the application from within the IDE at the moment because there are some unhandled exceptions and it's easier to debug this way. It would be nice if I didn't have to compile it and catch all the errors.What is the easiest way to set something like this up, and what do I need to be aware of in terms of security?

Update:To clarify what input I need to give the application - in theory, none. If all went to plan I'd just set the application off and reading some sort of log would be fine. The problem is that it is unstable (mainly because it calls a web service which is very unstable and returns all sorts of weird things) and therefore seems to need constant input on my part.

It was my thinking that the only way I could do this sort of debugging remotely is by catching every error I could, reading the log, and somehow instructing the application to behave properly in future.

View 3 Replies


ADVERTISEMENT

Debugging Error 'Method Does Not Exist'

Nov 7, 2011

I am trying to run my projects and i come across this visual studio error.Is this because of the .suo?? "Method does not exist" in vb.net

View 4 Replies

C# - Calling A Method In A FACTORY Class When Application Is Closed / Disposed Without Using Application's Dispose() Method

Mar 28, 2012

I am indifferent if you are a VB.NET or C# or other .NET developer. I have a FACTORY class like the following:

[Code]...

View 2 Replies

Remotely Kill / Close Other Application?

Apr 1, 2011

I'm designing dekstop application with client server architecture with vb.net with mysql database. My question is how do i remotely kill/close my other application? for example two user are logged to the system, user a want to kick the user b out of the system. Kick/close the GUI and the app not just the connection.

View 9 Replies

Check Whether Application Is Running Locally Or Remotely?

Apr 21, 2010

My desktop application is developed in VB.Net and can be run through two types of users, one who install it on their local machine and execute locally.

Second type of users will run the application remotely from the server.i.e. Application will install on the server and user will execute that application from client side. Server can be a Citrix Meta Frame or any server accessed through Remote Desktop Connection. I want to maintain single exe for both types of users.

Is there any mechanism/way through which I can come to know programmatically whether application is running locally or remotely?

View 8 Replies

Check Programmatically Whether Application Is Running Locally Or Remotely?

Apr 21, 2010

My desktop application is developed in VB.Net and can be run through two types of users, one who install it on their local machine and execute locally.

Second type of users will run the application remotely from the server.i.e. Application will install on the server and user will execute that application from client side. Server can be a Citrix Meta Frame or any server accessed through Remote Desktop Connection.

I want to maintain single exe for both types of users.

Question:

Is there any mechanism/way through which I can come to know programmatically whether application is running locally or remotely?

View 13 Replies

Controlling An External Application

Aug 15, 2009

I am currently working on making a macro in visual basic that will control an external application. I need to know how I can click the menu options in this program. Here is the code I have so far, which makes the application window active.[code]

View 3 Replies

VS 2008 Controlling External Application

Jun 18, 2009

I need a quick way to control an external application. For example, I want to be able to... let's say... click a button and open up paint and zoom to 200%. This isn't my intention but that's basically the functionality that I need. I figured there must be a simple way to do this. I need to open the application, make choices (not all have keyboard shortcuts) and type in information.I've come across "shell" but that doesn't get me anywhere except opening the application.

View 5 Replies

Controlling A Loop In An Application From Another Application?

Mar 2, 2011

I have 2 applications, "Application A" and "Application B" In application B, there is a loop that do some work Now, from Application A, I want to control this loop, in application B, so the loop gets run once each time Application A say so Up to this point, There is no problem, I just created a Mutex that I pass from an application to the other.

The problem comes when Application A want to stop the game -If application A terminate its thread without closing the Mutex, Application B does take it and the loop goes on non stop. But what I want is to exit the loop.I can immagine 3 ways to terminate the loop, but none of them apears to be the good way to do

1) Closing the mutex in application A. This will create an exception in Application B, which I can catch to terminate the loop

2) Create a custom windows message for Application A to notify Application B that the mutex needs to be close so Application B can exit the loop and close the mutex. ( However, I am using a mutex to avoid to use this windows message pathern, I do not want the UI thread to be involve in the mecanism )

3) Create another mutex that would be own by application A and that will be blocking another thread in Application B. This way, Application A by releasing this mutex can permit this other thread to set a boolean flag telling the thread in the loop to exit the loop.

To illustrate this, I made this short code. It implement the option 1) which is using the exception to exit the loop

Application A
Public Class Form1
Dim MutexA As Threading.Mutex

[code]....

View 8 Replies

Controlling External Application Using Windows Handles

Dec 22, 2009

I am trying to control an external application using visual basic. I have spy++ in order to get the windows handles of all the tool bars/buttons etc. Can someone refer me to some code/ tutorials on how i can control the application. I will need to perform mouse clicks (ex clicking file>open) and sending key strokes in that application.

View 2 Replies

Controlling Specific Feature On An External Application

Dec 11, 2009

at work here we use a Remote Machine Viewer called FitNet which is proprietary to NCR and WalMart. However, I had no hand in developing this application and the developers no longer are emplyed here or did they assign anyone to take it over. I was asked to take a look at it and see if I could come up with something. The application is a .NET app but when I use .NET Reflector to get an idea aboutthe code it says no CLI header found.

[Code]...

View 1 Replies

Asp.net - Debugging Dll In Web Application?

Sep 3, 2010

I have a vb.net web application in visual web developer 2008 with a dll file and i need to debug a method in that dll. I also have project source files for the dll file itself. How could i make the web application use the source instead of the dll file so that i'd be able to debug it? I've tried debugging the dll project itself, but it's not a very good solution, because it seems the dll depends on the web application settings and data and it would simply be too much work to get it working. T

View 1 Replies

Application Identity Is Not Set When Debugging

Aug 30, 2011

When I try to debug my application (of which it will not be click once)I get a Application identity is not set exception.[code]

View 2 Replies

Debugging Application - No Source Available

Oct 12, 2011

When i try to debug my application it immediately switches to a new tab that says "No source available" with an error that says InvalidOperationException was unhandled, An error occured creating this form. See Exception.InnerException for details...

View 2 Replies

.net - Debugging ClickOnce Deployed Application

Nov 9, 2010

I am new to ClickOnce deployment and at first glance it seems a great way to maintain .Net applications updated with ease. I am developing a simple application that stores information on a mdb database and over some XML files. I understood how to use the "data" folder with ClickOnce and I am developing the part of my application that should migrate the data from older versions after a ClickOnce update. Now I need to debug that part of my code that only runs when the application is in "networkDeployed" mode. So actually I'm doing the following really slow process to test a new deployed version:

publishing the application on a provisional website (I can choose between a faster locale iis site or a real online one) installing the application from the deploying website (the first time) or running the old installed application so it automatically catch new updates and gets updated... running the application

So basically I have two problems here:

the whole process is much too slow :/ I'm running the app as every other app directly from the OS, so I can't access to the debugger...

I am pretty sure that there are better way to test ClickOnce deployed applications...

View 2 Replies

Debugging Windows Service Application

Sep 1, 2011

I have created and deployed a windows service application and I added this line of code "System.Diagnostics.Debugger.Launch()" in the beginning of OnStart method in order to be able to debug the service but when I start the service the nothing is happened. I think the OnStart method have never fired otherwise the visual studio will popup once the debugger.launch line is executed even I tried to write some text to the event viewer to make sure but nothing gets written to the events viewer after I started the service. I included also the debugging symbol in my windows service setup project but I end up with the same result.Why it's not working? How can I make sure that the OnStart method gets fired or not?

View 2 Replies

Debugging Application In Visual Basic?

Apr 27, 2011

my code is giving me a serious problems i thought my code has worked prefectly but theresulting valuesare not corresponding with the typed sentences in the text box .i thought when i had trimmed my sentences the code would work but thatis not the case now .i am requesting full assitance with my code is displayed here:

Dim txtInput
As
String =

[code].....

View 8 Replies

Debugging C# Silverlight Projects From Vb Web Application?

Nov 12, 2009

I have a problem whereby I cannot debug a c# silverlight application project that is hosted from within a visual basic web application. I add breakpoints to the main App constructor and the symbols are loaded ok but my breakpoints are never hit. I have concluded that it is a vb/c# interop problem as to test i did the following.

Created a new c# web application project
Added a c# silverlight application
Added a new vb web application project
Added references to the silverlight project from both web apps
set a breakpoint in App.xaml.cs constructor

if i run the c# webapp the break points are hit whereas if i run the vb webapp they are not.

View 1 Replies

JIT- Debugging - Unhandled Exception In My Application ?

Apr 18, 2010

activating just In time (JIT) debugging-- I have a propmt that I have an unhandled exception in my application (??).

View 1 Replies

Terminate The Application Is To Hit 'stop Debugging'?

Mar 17, 2011

I wrote the following code to build a basic game that makes two cars race (randomgenerator) and let the user pick their bets on the end results. I've gone terribly wrong somewhere in that my cars only race halfway then get stuck behind the start line and the programme keeps repeating the beeping and the messsagebox.show and adding results to the 'incorrect' box.

The only way to terminate the application is to hit 'stop debugging'.

Option Explicit On
Option Strict On
Public Class MainForm

[Code].....

View 1 Replies

VS 2005 Debugging A Not Responding Application

May 7, 2009

I can pause the application and see that it thinks no threads are running so no call stack. The other projects in the same solution are all responding fine, just this one stalls. I can not think of any way to work out what it was doing at time of stall, I have no event logs, no breakpoints, there is no particular thing I can check for in my own logging system (which is quite extensive) that shows where/why/what the application is hanging for. Any clues on how to solve/investigate? To add, this is on a Vista box, but not able to move the system to anything else (source controlled) until I can find out what this is. Its an avenue I can go down if required however.

View 4 Replies

VS 2010 Application Error While Debugging?

Apr 5, 2012

I am trying to create a ListBox in which every item can have it's own context menu. To do this I have created the classes as shown in the code. Now when I test this, I get the following error when adding an item to the collection using the 'Add' method:

INTERNAL ERROR:
Unhandled exception in Debugger::HandleIPCEvent.
Event ID=0x246.

[code].....

View 7 Replies

DB/Reporting :: Debugging On Xp Machine Data-set Gets Filled / Debugging On Vista Box It Fails

May 1, 2009

I'm having to write a reporting application that gets information from some Interbase servers and it also has to work on Vista as well as XP, I'm using to connect Borlands Data Provider.[code]My Issue is that debugging on my xp Machine the dataset gets filled, debugging on my vista box it fails ("Interbase provider initialization failed"), my initial thought was that this could be UAC related but I've compiled the application and 'ran as admin' and still same issue. (by the way it failes on the line Dim da as BdpDataAdapter...)

View 1 Replies

'Class Not Registered' Error Comes While Debugging Application

Apr 21, 2010

i were working in Windows xp. last week I changed my OS to Windows 7.The project i have done in Vb.net(2008) . While running class not registered error comes. In another computer its works well. Why it comes.

View 1 Replies

Application Error When Closing In Debugging Mode

Aug 12, 2010

I keep receiving an "Access violation at address xxxxxx. Write of address xxxxxx." error when i close my MDI form (and hence my application).However this error only occurs after i have created a new child form.

I have stepped through the code and found that the exception is being thrown in the Settings.Designer file (Namespace My module). This is the chunk of code that throws the error[code]...

View 1 Replies

IDE :: Error With Debugging A Windows Form Application?

Jun 20, 2010

I have windows xp professionalx64 installed on my C:/ drive and windows xp home edition installed on my D:/ drive, i have adminstration priveledges.This is the error i receivedError while trying to run project: Unable to start debugging.Microsoft Visual Studio Remote Debugging Monitor (MSVSMON.EXE) failed to start. Verify that the remote debugger is installed.I uninstalled Visual Studio 2008 Professional and reinstalled it

View 8 Replies

Asp.net - Ways To Reduce Application Building/debugging Time?

Oct 2, 2010

My new office project is based on an MVP design and is in VB.NET (.NET 3.5), using multiple libraries (like EntLib, internal corporate framework, etc.). The number of DLLs used as references is so huge (almost 50) that when I try to build/debug the application in VS2008, it takes almost 3-4 minutes to get the website running successfully.

Wanted to know if there are any settings/areas which upon some modifications can help me reduce the build time? and what exactly can be the major reasons behind this long loading duration?

View 1 Replies

IDE :: Debugging - Declarations Fails To Initialize After Application.Restart

Apr 14, 2009

In my code the application will restart using the Application.Restart statement from another form named frmDatabase.

The application seems to restart while debugging but yet the dataset, tables etc which is declared right below the class declaration for the startup form seems to fail initializing when the restart is done.

Compiling and running the application works like a charm and there is no error like this when running the executeable.

I also Inserted a breakpoint in the Form_Load event and the debugger seems to skip all the statements when the application is restarted all the way down to where the exception occurs.

Declarations:

Public Class frmMain
Public objConnection As New OleDbConnection(strConnectionString)
Public objDataSet As New DataSet
Public objCommand As New OleDbCommand
Public objDataAdapter As New OleDbDataAdapter(objCommand)

View 3 Replies

Trace Debugging / Application Data Safe To Remove?

Mar 17, 2011

Taking up 3gbC:Documents and SettingsAll UsersApplication DataMicrosoft Visual Studio10.0TraceDebugging.

View 3 Replies

Why Application Pause Debugging When Hold The Titlebar With Mouse

Sep 17, 2009

I am putting two questions in one thread. I am using VS2008 Pro.

1- Why my application stops running when I 'Click and hold the left mouse button' and resume after releasing the mouse button on Titlebar? i.e. why this happens when I grab the title bar? How can I avoid this so that my application run regardless if the form is moving or title bar is grabbed with mouse while debugging?

2- I want to make one button to pause the whole application then restart the application from the point where it stopped.

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved