background preloader

Remoting

Facebook Twitter

How To Host .NET Remoting Objects in Windows Service Application. Run Windows Service as a console program » tech.einaregilsson.com. Posted: Last updated: Visual Studio and the .NET framework make it really easy to create Windows Services. All you have to do is create a new project, select "Windows Service" as your project type and you're all set. However, debugging Windows Services in Visual Studio can be a big pain. The recommended way is to use InstallUtil to install them, and then restart the service and attach the debugger everytime you want to debug it. This will allow you to use your program as either a normal console program or a windows service, with no special builds, #DEBUG directives, command line parameters or anything like that.

Two things to watch out for: You'll have to right click on your project in Visual Studio, choose Properties and select the Output type as "Console application" for this to work. While using this trick has worked perfectly well for my services, which have all been pretty simple, it might not work for everyone. Wiki. .Net Remoting: the Quick and Dirty Guide. Format for .NET Remoting Configuration Files. Piet Obermeyer and Jonathan Hawkins Microsoft Corporation September 2001 Updated March 2002 Summary: This article provides a detailed description of the schema used in remoting configuration files. (26 printed pages) Contents IntroductionHosting Remote ApplicationsWhy Register ChannelsWhy Register ObjectsSettings Schema Introduction All remote objects have to be registered with the Remoting Framework before clients can access them.

Although programmatic registration is a simple process, it is not always desirable to use for real-life applications where large numbers of remote objects have to be managed on a corporate network. Hosting Remote Applications Object registration is normally done by a hosting application that starts up, registers one or more channels with ChannelServices, registers one or more remote objects with RemotingServices and then waits until it is terminated.

Why Register Channels Why Register Objects There are 2 different types of server-activated objects namely: None Example: Fran Diaz. [SSRS] Algunos sub-reports no se muestran cuando vienen vacíos Estos días hemos tenido un caso cuanto menos extraño, sigue pareciéndome rarísimo y al final con un apaño hemos conseguido echarlo a andar. Resulta que tenemos un cuadro de mando con muchos secciones y para que el cliente pudiese imprimirlo del tirón y este se pudiese exportar también, se dividieron todas las secciones en subinforme donde desde un informe índice los llamaría a todos. Pues bien, en mi caso con la versión 2012 de RS y SSAS como servicio de base de datos OLAP (mirando por internet un poco me dí cuenta que para R2 ya también pasaba), cuando quieres mostrar más de un subinforme en un mismo report, si uno de ellos no trae datos, este no se muestra. El caso es que es muy raro, porque hemos probado a ponerlo dentro de rectángulos y nada, que no funciona.

No es que sea un solución muy adecuada, pero me sirve por ahora, seguiré investigando a ver porqué puede ser Un Saludo Reporting Services no va en Chrome o Safari . . Totalizar una Columna en un DataGridView - PepLluis. Siguiendo la consulta de Jesús Pérez, preguntando como totalizar la suma de una columna de un DataGridView, poniendo como ejemplo recorrer las filas de una columna y efectuar las operaciones que consideremos oportunas. Tambien como entrada del post os dejo un aporte gracias a Enrique Martinez, que introduce la funcion explicita y correcta para efectuar sumas en encolumnados de DataGridView's... Saludos,Pep Lluis, Aqui teneis el enlace : ' Computar la suma de la columna 'Capital' Dim total As Object = dt.Compute("SUM(Capital)", Nothing) ' visualizar el resultado en la barra Me.Text = total.ToString A continuacion... recorriendo las filas de la Columna... ..

Pd. Coding Best Practices Using DateTime in the .NET Framework. Dan Rogers Microsoft Corporation February 2004 Applies to Microsoft® .NET Framework Microsoft® ASP.NET Web Services XML serialization Summary: Writing programs that store, perform calculations, and serialize time values using the DateTime type in the Microsoft .NET Framework requires an awareness of the different issues associated with time representations available in Windows and .NET. This article focuses on key testing and development scenarios involving time and defines the best practice recommendations for writing programs that use the DateTime type in Microsoft .NET-based applications and assemblies. (18 printed pages) Contents Background What Is a DateTime, Anyway? Background Many programmers encounter assignments that require them to accurately store and process data that contain date and time information. What Is a DateTime, Anyway? The V1.0 and 1.1 documentation for System.DateTime makes a few generalizations that can throw the unsuspecting programmer off track.

The Rules. Enterprise Lybrary . Alois Kraus's blog. When you try to make sense of Windows Event Tracing files (.etl) it is often helpful to add some special events into the event stream so you can closer examine near the “Here it was slow” event which helps a lot to look at the right spots. If you are lucky you can do this by routing your tracing data to ETW or you need to set some marker events by hand. The traditional was of doing this was to call xperf –m “Here it was slow” during your repro session. I have observed several times since then that this command did no longer work on some machines. C:\Program Files (x86)\Windows Kits\8.1\bin\x64> xperf -m "hi" xperf: error: Set Mark failed These things did never happen on my Windows 7 machine.

I thought it was some oversight in Windows 8. That does explain why I cannot add mark events anymore on Windows 8 machines. C:\Program Files (x86)\Windows Kits\8.1\bin\x64>tracelog.exe -l Each tool has another syntax and philosophy behind which makes it a bit cumbersome to use the right tool.