dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement

More articles by Enrico Sabbadin

Author Bio
Enrico Sabbadin is a software architect and developer who specializes in the Microsoft platforms. He trains and consults for Francesco Balena's Code Architects in .NET, application design, and security. He also maintains his own site for MTS, COM+, VBCOM, and .NET Enterprise Services FAQs.
For Database Development Zone | May 26, 2004
Get to know the main features of SQL Server Reporting Services and learn how to extend it with an XML Data Provider Extension.
For Enterprise Zone | May 7, 2004
A connection broker enables your business layer to control transaction boundaries in a compact and efficient way. Learn how to roll your own broker to centralize and manage your application code's access to database resources.
For Code Download | June 2, 2003
This add-in for VS.NET 2003 automatically:   1) Registers the assembly in the GAC right after it has been built.   2) Exports types to COM: produces the type library (and registers it if specified) .. as tlbexp.exe does.   3) Registers classes in the registry ..as regasm.exe does.   4) Avoids the bulding of an Assembly if its read-only attribute is set.   5) If a build fails, it stops the build process for the remaining assembly in the solution. You configure the Add-in behaviour for your VS.NET project by placing appropriate entries in the section of the project app.config file. Note: if you use VS.NET 2003, read this tip to see how you can configure simple pre and post-build actions without the help external add-ins.
For Code Download | May 26, 2003
This registry file adds the following entries to the Windows Explorer's context menus, that will help you speed your development and test cycle: 1) .idl files : Build : run midl.exe against the idl file top produce a type library from it. 2) .dll files: register/unregister COM dll using regsvr32, register .NET assembly in the GAC, register .NET assembly for COM Interop (regasm.exe), register .NET assembly for COM Interop using the codebase switch (regasm.exe /codebase), register/unregister COM EXE. 3) .tlb files : use regtlib to register a type library. 4) Any directory: Open a DOS console and sets required PATH and INCLUDE environment variables (runs vsvar32.bat).
This macro routine makes VS.NET switch to the previously selected code editor / designer window, if it is still open. It is equal to opening the Windows menu and selecting the 2nd window. Note: put this routine in the MyMacro project, by using the Macro Explorer. To use it, just click the ...
For Com Or Dcom Or Com+ | December 2, 2002
If you install a COM+ application proxy on a client and open its Properties dialog, you'll see that the field "Remote Server Name" is set to the server where you created and exported the application. Before you export the component, you can also change the server name by setting the ...
For VB-2-the-Max | November 18, 2002
In the first part of this article series, we developed a remoting based object broker that managed pools of objects. The max and min pool size of each poolable class was defined by placing on it a custom attribute. In this second part we are going to enhance the solution to provide transparent activation of pooled objects.
For VB-2-the-Max | November 11, 2002
Object Pooling is a powerful feature available when hosting .NET or COM components in a COM+ application. You may be quite surprised when you find out there is no built-in support for object pooling in the .NET Remoting infrastructure. Luckily the Remoting infrastructure is completely extensible, so you can hook into it to provide additional functionalities such as Authorization, data compression or encryption and, as you might have guessed, object pooling. That
For VB-2-the-Max | February 2, 2002
Code access security (CAS) is a new feature provided by the .NET Common Language Runtime. CAS is a security model that lets you grant or deny execution permissions to an assembly according to its "properties," called evidence, such as its strong name or publisher. CAS is completely orthogonal to classic security models that lie on the authentication-permissions mechanism based on the identity of the caller. This article is a concise introduction to this compelling and fascinating topic.
For Com Or Dcom Or Com+ | January 15, 2002
It was and it is still easy to debug MTS components written on Visual C++ version 5 and higher. Debugging components written on Visual Basic 5 is possible under VC IDE. Starting with version 6, Visual Basic allows to debug under its own IDE. Here are the things you should keep in mind while ...
For Com Or Dcom Or Com+ | December 15, 2001
If you don't take specific actions, you get an Access Denied Error when you try to raise an event from an MTS component into a client. This happens because the client executable doesn't have the proper DCOM security settings to let the server call it back. In order to have it working you have ...
For Com Or Dcom Or Com+ | December 15, 2001
Among the different COM details that VB hides to the programmers, one of the most problematic one is that it doesn't let you take control on interface GUIDs. Binary compatibility settings in VB try to make you follow COM rules (as a fact breaking such rules with the interface forward mechanism ...
For Com Or Dcom Or Com+ | December 15, 2001
What I describe for COM+, applies to MTS with some slight differences as well. Registering COM objects remotely has been quite a pain before MTS showed up (remember the VBR file?). In COM+ it's very easy to do: 1) Right click on the COM+ application and choose export Choose ...
For Com Or Dcom Or Com+ | December 15, 2001
COM doesn't have a built in security mechanism, but relies on Windows authentication services (Security Service Providers). When you access a resource or invoke a method in a remote DCOM server (or MTS package / COM+ Application), security checks cannot be performed in the standard way if the ...
For Com Or Dcom Or Com+ | December 15, 2001
There is quite a lot of misunderstanding among COM newbies about what really happens when a COM interface is passed as a method parameter. As in most of the cases, VB programmers are protected from a lot of details on the COM run-time, but you do have to know such details if you want to ...
Thanks for your registration, follow us on our social networks to keep up-to-date