Natty Gur

Enterprise Architect on Enterprise Architecture

  • COM+ and .Net practical approach

    This article is actually made up from three main parts. The first part handles all the aspect of using COM+. After reading this part you will know what the options that you have to host your assembly in COM+, impact on ASP.NET application performance of any option and what are, if any, limitations impose by selecting certain COM+ hosting option.

  • ASP.NET 2.0 and utility classes.

     I'm working these days with ASP.NET 2.0 (actually 1.2) for several reasons. As I already posted ASP.NET 2.0 don’t come with building option inside VS.NET. ASP.NET compiles ASPX files and code behind files while application called from the first time. So if you add utility class to the project no one will compile your utility class and you can't use it. Even if you use Page Inherits attribute to set Page base class to class inside your project, the page won't recognize your base class at runtime. The only way I found out to add classes is by creating class libraries and references them from ASP.NET project. By the way the current version doesn't support project reference from ASP.NET projects.

  • ASP.NET generates Personalization code even if you didn’t ask for it in your page.

    While writing an article about the way Whidbey handled ASPX files I notice that ASP.NET generate personalization assembly and several personalization functions inside ASPX assembly. ASP.NET generate this code although I didn’t ask anywhere on the page for Personalization. Well, it turned out that HttpPersonalization Tag in Machine.config is responsible for generation of Personalization code. HttpPersonalization has enable attribute that set by default to true and cause generation of code. If you want to turn code generation of personalization off set enable attribute to false.

  • Turning caspol -s off and Oracle ODP stops to retrieve data.

    One of my clients, which got close network, use caspol -s off to turn down client side stations security. After w while ODP code that run perfectly on developers machine stop to work, while MS oracle driver works perfectly. ODP code throws exceptions such as “Invalid Operation” or others that really didn’t tell you anything. As you probably figure out it took us a lot of time to find that turning off caspol causes ODP to misbehave, but we humans, don’t we? 

  • Trying to implement front controller for Avalon Navigation application

    Avalon Navigation application is pretty much closer to web behavior. There is one Host (Browser / Windows) that can display different content (HTML pages/Panels).  Navigation application is based on one form and several panels that can be hosts and changed by using the main page Navigate function. So I thought it will be nice to implement “front controller” in Navigation application to impose predefine logic on panel flow.