.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

Remote monitoring and diagnostics for managed application

Posted By:      Posted Date: October 27, 2010    Points: 0   Category :WCF

Please advice me...

I have a need to monitor (collect diagnostics) an application deployed, as a Windows Service, to over 40,000 (yes, forty thousand machines). Majority of the machines does not have standard tools like Visual Studio remote debugger, etc that are used for such purpose.

Also, I am not sure if WCF can be used as I am concerned about security - please enlighten me about pros and cons of having a WCF-Service-In-a-box approach. If so, what is the best binding.

Can WinRM be used to interact with a WCF NetPipe listening in the application? Any, article on this would be useful? What are the security aspects that should be focussed in this scenario.

Thanks in advance


View Complete Post

More Related Resource Links

C++ Q&A: Performance Monitoring, Managed Extensions, and Lock Toolbars


In the June 2004 issue of MSDN®Magazine, I described a class called ShowTime that you can use to do simple performance monitoring for your app. ShowTime uses its constructor/destructor to record the start/stop times of its existence so you can instantiate it in a block of code like so: { ShowTime st(_T("Total time is:")); // some lengthy operation } .

Paul DiLascia

MSDN Magazine September 2004

Error Handling: Throwing Custom Exception Types from a Managed COM+ Server Application


Exception handling semantics in .NET are based on type, so you can create custom exceptions that have their own properties and methods. In .NET, exceptions are first-class citizens, and since they're the built-in error handling mechanism, all .NET-compliant languages must support exceptions. In addition, COM+ services are available to .NET code as Enterprise Services, so you can leverage exceptions in your Enterprise Services design.In this article the author describes custom exceptions, throwing exceptions across COM interop boundaries, and working with Enterprise Services.

Bob DeRemer

MSDN Magazine March 2004

.NET CLR Profiling Services: Track Your Managed Components to Boost Application Performance


The Microsoft .NET platform provides you with a rich set of services for building profilers and application monitors for applications targeting the Common Language Runtime (CLR). These services expose runtime events that occur during the execution of a .NET application. They can be used to obtain information about managed code being executed under the runtime. This article describes the .NET CLR Profiling Services and shows how to use the services to build a simple profiler that will provide hot spot information for any .NET application. The sample profiler can easily be modified to suit other profiling and monitoring needs.

Anastasios Kasiolas

MSDN Magazine November 2001

C# and the Web: Writing a Web Client Application with Managed Code in the Microsoft .NET Framework


When the author wanted to build a middleware Web client to connect to other applications over the Internet, he realized that the XMLHttpRequest COM object was not sufficient for his purposes. In order to build a Web client using managed code, the author had to use the HTTPWebRequest and HTTPWebResponse classes provided by the Microsoft .NET framework. These classes are used in the sample project as a substitute for the less powerful XMLHttpRequest COM object, allowing the author to build a full-featured Web client. They also take advantage of all the benefits that the CLR and managed code have to offer.

Avi Ben-Menahem

MSDN Magazine September 2001

Accessing memory of a remote process (x64) from application (x86) - and the other way

Hi everyone, My program access a remote process, e.g. to get the text of ListViewItem. It uses ReadProcessMemory, WriteProcessMemory, SendMessage, LV_ITEM via PInvoke. Below is a little codesnippet. This doesnt work, when i compile for x86 and the remote process is x64 (or the other way). I know that is because the size of IntPtr - and so of the LV_ITEM-Structure - is different. Is there any way, to access x86 and x64 remote processes from the same application?  Is there any way to find out if the remote process is x86 or x64 and make my call's with a suitable LV-Item Structure? thanks Torsten Codesnippet: LV_ITEM lvitem = new LV_ITEM(); // Allocate memory in the remote process's address space string s = string.Empty; IntPtr pszTextMemory = VirtualAllocEx(hProcess,IntPtr.Zero,  1024, (int)(AllocationType.MEM_RESERVE|AllocationType.MEM_COMMIT), (int)(AccessProtectionType.PAGE_READWRITE)); lvitem.pszText = pszTextMemory; ... IntPtr pLVItemMemory = VirtualAllocEx(hProcess, IntPtr.Zero,  Marshal.SizeOf(lvitem), (int)(AllocationType.MEM_RESERVE|AllocationType.MEM_COMMIT), (int)(AccessProtectionType.PAGE_READWRITE)); IntPtr lvItemPtr = Marshal.AllocHGlobal(Marshal.SizeOf(lvitem)); Marshal.StructureToPtr(lvitem,lvItemPtr,false); WriteProcessMemory(hProcess, pLVItemMemory, ref lvitem, Marshal.SizeOf(lvitem), ref written); SendMessage(hListView, LVM_GETITEM

Error while Deploying WebMatrix Beta Application having SQL Database on Remote Server


Hello All,

I have created "DotNetNuke SQL Database Application" from the WebMatrix Gallery.

Now I want to deploy it on the remote server using Web Deploy method.

Without selecting SQL database, application is deployed successfully but when I select SQL database it gives following error:

Publish : Error - Make sure the database connection string for the server is correct and that you have appropriate permission to access the database. (Web Deploy provider is dbFullSql).

Can anyone have the solution of this error?

Thanks in advance....

Managed Metadata Service - No EMM application proxy can be found



I have Managed Metadata Service configured with the default language German and the target Content Hub it also in German. When I try to publish a content type i got this error "cannot check for changes because no emm application proxy can be found". Any ideea?


How would I set a Enviroment Variable on Several remote Machines from one Application

I think my title covers the high level, but for indepth; i need to be able to connect to a machine through and ip and set a enviroment variable, i have over 60 machines in different states all on one network that i need to do this for as well as someother things for the machine. currently this is being done through a PCEXEC command in a batch file they want more control on how this operates. I just really have no idea where to even start looking for the enviroment variable change(setting one on a machine that the app is running is simple we all know that. but on a external machine im lost) on a remote machine. any one have any ideas.

Remote Debug an XBAP application in VS 2010



I have an XBAP application that I created in VS 2010.  On my local machine I browse to the XBAP on the hosting server, via the folder structure [UNC] and run it.  The application does load and start.  I then go to "Attach to Process" in VS 2010 and browse to the server [which has msvsmon.exe running], but I cannot see the process to attach to.  I can debug ASP.NET applications remotely with no issues.  What am I doing wrong?

Thanks in advance

Issue using Managed Metadata with custom fields in the User Profiles application


Hi there,

I've created several custom properties in my User Profile Application.

I've also created several Term Sets in the Managed Metadata service application Term Store for use with these custom properties. Some of the Term Sets contain terms and have a closed submission policy whilst others have an open submission policy.

If the user hasn't already populated any of these custom fields in their profile, when they click on the Edit My Profile link from their My Site Profile page everything seems okay (for the first time).

The user is then able to successfully select values for these custom fields - the metadata is available. They can click on the "tag" icon to select values, or start typing and the suggestions appear. They are also able to enter new values into custom property fields where the term set is open to submission.

If they then Save and Close then go back into Edit My Profile, often not all of the existing data is populated in the metadata custom fields. On different occasions different fields may be blank. Sometimes this is accompanied by the error "Message from webpage / The server method 'ValidateTerms' failed", but not always.

Has anyone else tried this or have any suggestions are to what the issue might be?

Thanks in advance.

How do I set up a webpart to access a terminal server remote web application?

I hope i am posting in the right place...


sharepoint site (MOSS 07) running on 2008 x64
SQL 08 running 2008 x64
TS server 2008 x32

I am trying to set up the webpart to access terminal server remote web application by following MS DOC -
Customizing TS Web Access by Using Windows SharePoint Services

I followed the steps on my sharepoint web server..  Do i need to install sharpoint services on the TS server..??

i am assuming

In the <SafeControls> section of the Web.config file, add the following line under the other SafeControl Assembly entries (as a single line):

<SafeControl Assembly="TSPortalWebPa

How To connect remote server in windows form application


Hi All

i have implementing one Windows application in that i need to get the Forex market quotes values form perticulat server how can i implement this i have some Php Code but i need to in C# application.

This is my Php code to receive the quotes form server;

define('T_HOST','');  // MetaTrader Server Address  

define('T_PORT',443);                   // MetaTrader Server Port
define('T_TIMEOUT',1);                  // MetaTrader Server Connection Timeout, in sec


define('T_CACHEDIR','cache/');         // cache files directory
define('T_CACHETIME',1);               // cache expiration time, in sec

define('T_CLEAR_DELNUMBER',1);        // limit of deleted files, after which process of cache clearing should be stopped

$MQ_CLEAR_STARTTIME = 0; // time
$MQ_CLEAR_NUMBER = 0;    // deleted files counter

// query quotes and parse result
                          // $re=MQ_Query($q);
$qRes = MQ_Query($q);
function MQ_Query($query,$cacheDir=T_CACHEDIR,$cacheTime=T_CACHETIME,$cacheDirPrefix='')

   $ret = 

Managed Metadata Service: Cannot check for changes because no EMM application proxy can be found


We have a managed metadata service with two owners. Both of them can't change anything to the term store anymore. The moment they try they get access denied:

The user doesnt have enough permissions. When looking into the log of SharePoint i found the following message:

Cannot check for changes because no EMM application proxy can be found

When I try to add another administrator using the Install_Admin account (who is farm admin) I get the same message that the user doesnt have enough permissions.

Our term store is setup in multiple languages with Dutch being the primary one.

Any help much appreciated.


How to upload files to remote machine using FTP or other method in VB.Net 2005 (Windows Application)



I have to create an application to upload and download files using FTP.
Are there any classes, methods in VB.Net 2005(Windows Application) to do this?

I have created a small GUI for this.

It contains 4 text boxes - Path of Local file to be uploaded, IP address of remote machine, User name and password of remote machine At last there is one Transfer button when I click on this transfer button that file should get copied to the remote machine.


I tried this using FTPWebRequest class by reading example in msdn.

But to connect to remote machine it requires URI format of FTP and I only have IP address of that remote machine. I think there is no web server on that remote machine.

Should I need to install web server on that remote machine.

Or is there any other method to do upload files to remote machine ?


Service Application Connection: Managed Metadata Service is inaccessible


 Hello all,

I have published the MMSA in one farm so it can be connected to and consumed by another farm. The publishing farm URL is https (SSL) and the consuming farm is http (Non-SSL). The connection to the MMSA shows in Central Admin as succesful, however when I try to open the Managed Metadata in the term store in the consuming farm I get the following error:

"The Managed Metadata Service is inaccessible because the current web application has not been granted permissions to access it."

I followed all the steps in technet, including the certificate exchanges and the publishing farm MMSA has granted the consuming farm full control.


Any clues? Can a farm with SSL publish service applications to non-SSL farms?


How to connect to remote desktop from console application?



I'm trying to connect to remote desktop from console application without opening window using this code:

MsRdpClient7Class rdp = new MsRdpClient7Class();

rdp.Server = "";
rdp.UserName = @"username";
rdp.AdvancedSettings2.ClearTextPassword = "password";


But, there's an error message:

Error 1 Interop type 'MSTSCLib.MsRdpClient7Class' cannot be embedded. Use the applicable interface instead. C:\gtk\GetRemoteDesktop\ConsoleRemoteDesktop\Program.cs 16 7 ConsoleRemoteDesktop

How to accomplish it?

Thank you in advance.



How to call a remote server .EXE from an ASP.Net web application?


Hi All,

I have a web application. This application collects some information from the user and the details needs to be passed to a .EXE. It processes the parameters and gives the output as a text file.

The .EXE is hosted in another server (Application Server). I need to call the .EXE with the a set of parameters from the Web Server. Is there any way to call this .EXE through an web service? If yes how to call the .EXE with parameters within the web service?

Thank you.


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