Suresh Behera

The Microsoft .Net Junkies

News

Blogroll

Reading

January 2004 - Posts

Java Architecture Versus .NET Architecture

Hi,

        There is nice article by narayan about Java/.Net......Bit impressed on it.

.NET Architecture

Java Architecture

Designed to support multiple different programming languages. Currently, 30 languages support the .NET architecture.

Though other languages' code can be converted to run under JVM, they don't acquire true cross-language capabilities.

Compiles the source code to Intermediate Language (IL), which is itself a language.

Compiles the source code to Java bytecode, which by itself is not a language.

CLR implements a contiguous memory allocation algorithm.

JVM implements a noncontiguous memory allocation algorithm.

Compiles the source code twice during the process of converting to native code. Compiling works faster than interpreting.

Compiles and interprets the source code once during the process of converting it to native code.

find more at ....http://www.informit.com/isapi/product_id~{6C5E3ADE-BAAE-40F0-8BC0-0616F007707C}/element_id~{57147C6E-310B-4845-85D4-739D29B6221C}/st~{D06674E4-4033-4F5E-85D4-5D32A6FD7B71}/session_id~{51FC785A-347F-4B99-9766-771A9DD6982F}/content/articlex.asp

and few other chat transcript

A comparison of Virtual Machines: JVM Vs CLR http://www.microsoft.com/india/msdn/chat/transcripts/14.aspx

Microsoft Visual J# .NET: Bringing the Java language to the .NET Framework http://www.microsoft.com/india/msdn/chat/transcripts/79.aspx

Java to .NET – Migration Path                                      http://www.microsoft.com/india/msdn/chat/transcripts/21.aspx

Microsoft Visual J# .NET: Bringing the Java language to the .NET Framework http://www.microsoft.com/india/msdn/chat/transcripts/79.aspx

Benchmark Comparison: .NET vs J2EE         http://www.microsoft.com/india/msdn/chat/transcripts/37.aspx

Enjoy .Net........................................................................................

Ping me if u have any queries on any things

- Suresh, suresh@mvps.org

 

 

 

 

 

Signing an assembly using Authenticode does not help for Office managed com AddIN
For a particular  managed com addin, The default value for the InprocServer32 key (see Figure 2). Instead of the path to a managed code DLL file, it points to the mscoree.dllthe main entry point of the common language runtime engine. (The InProcServer32 key is created by the RegAsm.exe utility earlier. The default value is set to mscoree.dll.)

Click here for larger image

Figure 2. CLSID InprocServer key entries for a managed code COM class exposed through COM Interop

Here is why signing an assembly using Authenticode does not help. Since the InprocServer32 key points to mscoree.dll, Office XP will examine mscoree.dll for the signature and not the assembly itself. Mscoree.dll is a system component and is not signed. As such, when the Office XP security is set to High with Trust all installed add-ins and templates disabled, the mscoree.dll won't be loaded.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoxpta/html/odc_shim.asp

Thannks,

-Suresh

Application Interoperability:Microsoft.NET & J2EE

This white paper specifically addresses the ‘Interoperability’ between .NET and J2EE applications, in explaining the various techniques by which ‘Interoperability’ can be achieved. This white paper also recommends the preferred way and charts down some of the best practices in achieving ‘Interoperability’.

More..

http://sandeepalur.4mg.com/DotNetJ2EEinterop.htm

-Suresh

 

Developing High-Performance ASP.NET Applications

I was going through MSDN and found nice article on ASP.NET performance,it really works for others also :)

Please have a look on it

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpcondevelopinghigh-performanceaspnetapplications.asp

Thanks - Suresh

Registry permission to a group

Praveen,

                After my 2hrs research following are my 2 cents thought, please have a look on it.

  1. To edit registry u need to have Admin privilege for tour account.
  2. You can give certain permission to a specific User group from your admin account.
  3. If your in non – admin user u can install/run the application using “RunAs” tools

Like runas /user:Administrator regedit.

4.       The “cacls.exe” program is useful for resetting file permissions from the command line.

Like runas /user:Administrator "cacls.exe directory /t /e /g domain\username:w"

  1. for  post registration

Post-Build Registration Type

Registration Action

COM Executable registration

output.exe /RegServer

COM DLL registration

regsvr32 output.dll

.NET assembly registration for COM interoperability

regasm output.dll

Installation of a .NET assembly into the Global Assembly Cache

gacutil /if output.dll

.NET Services installation registration

regsvcs output.dll

 

 

Some useful link

Developing Software in Visual Studio .NET with Non-Administrative Privileges

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/tchDevelopingSoftwareInVisualStudioNETWithNon-AdministrativePrivileges.asp

 

Secure Coding Guidelines for the .NET Framework

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/seccodeguide.asp

 

All About Registry

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/registry_key_security_and_access_rights.asp

 

  

 

Fig : Permission to specific group

 

Hope this help u to find ur solution.

 

Thanks and regards,

 

Suresh

[Microsoft MVP | MCAD.NET(CM) | MCSD.NET(CM)]

 

 

 

 

 

 

----------------------------------------------------------------------------------------------------

Suresh,

 

 

  I am building one Setup programme for windows application. in this process I have to give registry permission( Read ) to a user group. how can I give registry permission to a windows user group which does not have any administrative privileges  on registry.

 

 

 

 

 

Thanks & Regard's

Praveen Kella

Happy New Year 2004

 

oooooo   oooooo     oooo ooooo  .oooooo..o ooooo   ooooo
  `888.    `888.     .8'  `888' d8P'    `Y8 `888'   `888'
   `888.   .8888.   .8'    888  Y88bo.       888     888 
    `888  .8'`888. .8'     888   `"Y8888o.   888ooooo888 
     `888.8'  `888.8'      888       `"Y88b  888     888 
      `888'    `888'       888  oo     .d8P  888     888 
       `8'      `8'       o888o 8""88888P'  o888o   o888o
                                                         
                                                         
                                                         
 oooooo   oooo   .oooooo.   ooooo     ooo
  `888.   .8'   d8P'  `Y8b  `888'     `8'
   `888. .8'   888      888  888       8 
    `888.8'    888      888  888       8 
     `888'     888      888  888       8 
      888      `88b    d88'  `88.    .8' 
     o888o      `Y8bood8P'     `YbodP'   
                                      
 
 

       .o.       ooooo        ooooo                      .o.      

      .888.      `888'        `888'                     .888.     
     .8"888.      888          888                     .8"888.    
    .8' `888.     888          888                    .8' `888.   
   .88ooo8888.    888          888                   .88ooo8888.  
  .8'     `888.   888       o  888       o          .8'     `888. 
 o88o     o8888o o888ooooood8 o888ooooood8         o88o     o8888o
                                                             
                                                             
                                                             
 ooooo   ooooo       .o.       ooooooooo.   ooooooooo.   oooooo   oooo
 `888'   `888'      .888.      `888   `Y88. `888   `Y88.  `888.   .8' 
  888     888      .8"888.      888   .d88'  888   .d88'   `888. .8'  
  888ooooo888     .8' `888.     888ooo88P'   888ooo88P'     `888.8'   
  888     888    .88ooo8888.    888          888             `888'    
  888     888   .8'     `888.   888          888              888     
 o888o   o888o o88o     o8888o o888o        o888o            o888o    
                                                                      
                                                                      
                                                                      
       .o.       ooooo      ooo oooooooooo.  
      .888.      `888b.     `8' `888'   `Y8b 
     .8"888.      8 `88b.    8   888      888
    .8' `888.     8   `88b.  8   888      888
   .88ooo8888.    8     `88b.8   888      888
  .8'     `888.   8       `888   888     d88'
 o88o     o8888o o8o        `8  o888bood8P'  
                                             
                                             
                                             
 ooooooooo.   ooooooooo.    .oooooo.    .oooooo..o ooooooooo.    oooooooooooo
`888   `Y88. `888   `Y88.  d8P'  `Y8b  d8P'    `Y8 `888   `Y88. `888
 888   .d88'  888   .d88' 888      888 Y88bo.       888   .d88'  888        
 888ooo88P'   888ooo88P'  888      888  `"Y8888o.   888ooo88P'   888oooo8   
 888          888`88b.    888      888      `"Y88b  888          888   
 888          888  `88b.  `88b    d88' oo     .d8P  888          888
 o888o        o888o  o888o  `Y8bood8P'  8""88888P'  o888o        o888ooooood8
 
                                                                             

  ooooooooo.     .oooooo.   ooooo     ooo  .oooooo..o
 `888   `Y88.  d8P'  `Y8b  `888'     `8' d8P'    `Y8
  888   .d88' 888      888  888       8  Y88bo.     
  888ooo88P'  888      888  888       8   `"Y8888o. 
  888`88b.    888      888  888       8       `"Y88b
  888  `88b.  `88b    d88'  `88.    .8'  oo     .d8P
 o888o  o888o  `Y8bood8P'     `YbodP'    8""88888P' 
                                                    
                                                    
                                                    
 ooooo      ooo oooooooooooo oooooo   oooooo     oooo
 `888b.     `8' `888'     `8  `888.    `888.     .8' 
  8 `88b.    8   888           `888.   .8888.   .8'  
  8   `88b.  8   888oooo8       `888  .8'`888. .8'   
  8     `88b.8   888    "        `888.8'  `888.8'    
  8       `888   888       o      `888'    `888'     
 o8o        `8  o888ooooood8       `8'      `8'      
                                                     
                                                     
                                                     
 oooooo   oooo oooooooooooo       .o.       ooooooooo.     
  `888.   .8'  `888'     `8      .888.      `888   `Y88.   
   `888. .8'    888             .8"888.      888   .d88'   
    `888.8'     888oooo8       .8' `888.     888ooo88P'    
     `888'      888    "      .88ooo8888.    888`88b.      
      888       888       o  .8'     `888.   888  `88b.    
     o888o     o888ooooood8 o88o     o8888o o888o  o888o   
                                                           
 
 

 

          WISHING  YOU  A  HAPPY  AND PROSPEROUS NEW  YEAR

 

                          "GOOD LUCK"

 

 

 

 

                .     .  .      +     .      .          .

           .       .      .     #       .           .

              .      .         ###            .      .      .

 -         .       .      .     #       .           .

              .      .         ###            .      .      .

            .      .   "#:. .:##"##:. .:#"  .      .

                .      . "####"###"####"  .

             .     "#:.    .:#"###"#:.    .:#"  .        .       .

        .             "#########"#########"        .        .

              .    "#:.  "####"###"####"  .:#"   .       .

           .     .  "#######""##"##""#######"                  .

                      ."##"#####"#####"##"           .      .

          .   "#:. ...  .:##"###"###"##:.  ... .:#"     .

            .     "#######"##"#####"##"#######"      .     .

          .    .     "#####""#######""#####"    .      .

                  .     "      000      "    .     .

             .         .   .   000     .        .       .

      .. .. ..................O000O........................ .........

 

 

 

 

                          __ooooooooo__

                     oOOOOOOOOOOOOOOOOOOOOOo

                 oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo

              oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo

            oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo

          oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo

         oOOOOOOOOOOO*  *OOOOOOOOOOOOOO*  *OOOOOOOOOOOOo

        oOOOOOOOOOOO  @   OOOOOOOOOOOO      OOOOOOOOOOOOo

        oOOOOOOOOOOOOo  oOOOOOOOOOOOOOOo  oOOOOOOOOOOOOOo

       oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo

       oOOOO     OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO     OOOOo

       oOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOo

        *OOOOO  OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO  OOOOO*

        *OOOOOO  *OOOOOOOOOOOOOOOOOOOOOOOOOOOOO*  OOOOOO*

         *OOOOOO  *OOOOOOOOOOOOOOOOOOOOOOOOOOO*  OOOOOO*

          *OOOOOOo  *OOOOOOOOOOOOOOOOOOOOOOO*  oOOOOOO*

            *OOOOOOOo  *OOOOOOOOOOOOOOOOO*  oOOOOOOO*

              *OOOOOOOOo  *OOOOOOOOOOO*  oOOOOOOOO*

                 *OOOOOOOOo     BYE    oOOOOOOOO*

                     *OOOOOOOOOOOOOOOOOOOOO*

                          ""ooooooooo""

 

 

 

                         A        V E R Y

 

 

       ___           ___           ___         ___

      /\  \         /\  \         /\  \       /\  \

      \:\  \       /::\  \       /::\  \     /::\  \       ___

       \:\  \     /:/\:\  \     /:/\:\__\   /:/\:\__\     /|  |

   ___ /::\  \   /:/ /::\  \   /:/ /:/  /  /:/ /:/  /    |:|  |

  /\  /:/\:\__\ /:/_/:/\:\__\ /:/_/:/  /  /:/_/:/  /     |:|  |

  \:\/:/  \/__/ \:\/:/  \/__/ \:\/:/  /   \:\/:/  /    __|:|__|

   \::/__/       \::/__/       \::/__/     \::/__/    /::::\  \

    \:\  \        \:\  \        \:\  \      \:\  \    ~~~~\:\  \

     \:\__\        \:\__\        \:\__\      \:\__\        \:\__\

      \/__/         \/__/         \/__/       \/__/         \/__/

       ___           ___           ___

      /\  \         /\__\         /\  \

      \:\  \       /:/ _/_       _\:\  \

       \:\  \     /:/ /\__\     /\ \:\  \

   _____\:\  \   /:/ /:/ _/_   _\:\ \:\  \

  /::::::::\__\ /:/_/:/ /\__\ /\ \:\ \:\__\

  \:\~~\~~\/__/ \:\/:/ /:/  / \:\ \:\/:/  /

   \:\  \        \::/_/:/  /   \:\ \::/  /

    \:\  \        \:\/:/  /     \:\/:/  /

     \:\__\        \::/  /       \::/  /

      \/__/         \/__/         \/__/

                   ___           ___           ___

                  /\__\         /\  \         /\  \

       ___       /:/ _/_       /::\  \       /::\  \

      /|  |     /:/ /\__\     /:/\:\  \     /:/\:\__\

     |:|  |    /:/ /:/ _/_   /:/ /::\  \   /:/ /:/  /

     |:|  |   /:/_/:/ /\__\ /:/_/:/\:\__\ /:/_/:/__/___

   __|:|__|   \:\/:/ /:/  / \:\/:/  \/__/ \:\/:::::/  /

  /::::\  \    \::/_/:/  /   \::/__/       \::/~~/~~~~

  ~~~~\:\  \    \:\/:/  /     \:\  \        \:\~~\

       \:\__\    \::/  /       \:\__\        \:\__\

        \/__/     \/__/         \/__/         \/__/

 

 

 This NEW YEAR Be a fitness FREAQUE ...

 

 

 

            \ o /  _ o        __|    \ /     |__        o _  \ o /   o

              |     /\   __\o   \o    |    o/    o/__   /\     |    /|\

 ............/.\...|.\../).|....(.\../o\../.)....|..(\../.|.../.\.../.\.....

 

 

 

 

 AND CELEBERATIONS ALL THE WAY ....

 

 

 

                      "M,        .mM"

                       IMIm    ,mIM"

                       ,MI:"IM,mIMm

            "IMmm,    ,IM::::IM::IM,          ,m"

               "IMMIMMIMm::IM:::::IM""==mm ,mIM"

      __      ,mIM::::::MIM:::::::IM::::mIMIM"

   ,mMIMIMIIMIMM::::::::mM::::::::IMIMIMIMMM"

  IMM:::::::::IMM::::::M::::::::IIM:::::::MM,

   "IMM::::::::::MM:::M:::::::IM:::::::::::IM,

      "IMm::::::::IMMM:::::::IM:::::::::::::IM,

        "Mm:::::::::IM::::::MM::::::::::::::::IM,

         IM:::::::::IM::::::MM::::::::::::::::::IM,

          MM::::::::IM:::::::IM::::::::::::::::::IM

          "IM::::::::IM:::::::IM:::::::::::::::::IM;.

           "IM::::::::MM::::::::IM::::::::::mmmIMMMMMMMm,.

             IM::::::::IM:::::::IM::::mIMIMM"""". .. "IMMMM

             "IM::::::::IM::::::mIMIMM"". . . . . .,mM"   "M

              IMm:::::::IM::::IIMM" . . . . . ..,mMM"

              "IMMIMIMMIMM::IMM" . . . ._.,mMMMMM"  Hoping that newyear's day

               ,IM". . ."IMIM". . . .,mMMMMMMMM"  brings you good times that will

             ,IM . . . .,IMM". . . ,mMMMMMMMMM" last,special moments to remember

            IM. . . .,mIIMM,. . ..mMMMMMMMMMM"long after they have passed ...

           ,M"..,mIMMIMMIMMIMmmmMMMMMMMMMMMM"

           IM.,IMI"""        ""IIMMMMMMMMMMM   And hoping every single day

          ;IMIM"                  ""IMMMMMMM  throught the year will bring

          ""                         "IMMMMM  The best of times,the best of luck,

                                       "IMMM  the best of every thing

                                        "IMM,

                                         "IMM  HAPPY NEW YEAR 2004

                                          "MM,

                                           IMM,              ______   __

                          ______           "IMM__        .mIMMIMMIMMIMMIMM,

                     .,mIMMIMMIMM, ,mIMM,   IMM"""     ,mIM". . . . "IM,..M,

                   ,IMMM' . . . "IMM.\ "M,  IMM      ,IM". . . .  / :;IM \ M,

                 .mIM' . . .  / .:"IM.\ MM  "MM,    ,M". . .  / .;mIMIMIM,\ M

                ,IM'. . .  / . .:;,IMIMIMMM  IMM   ,M". .  / .:mIM"'   "IM,:M

               ,IM'. . . / . .:;,mIM"  `"IMM IMM   IM. .  / .mM"         "IMI

              ,IM . .  / . .:;,mIM"      "IMMMMM   MM,.  / ,mM            "M'

              IM'. .  / . .;,mIM"          "IIMMM ,IMIM,.,IM"

              IM . . / . .,mIM"              IMMMMMMM' """

              `IM,.  / ;,mIM"                 IIMMM

               "IMI, /,mIM"                 __IMMM

                 "IMMMM"                   """IMM

                   ""                         IMM

                                              IMM__

                                              IMM"""

                                              IMM

                                              IMM

                                            __IMM

                                           """IMM

                                              IMM

                                              IMM

                                              IMM__

                                              IMM"""

                                              IMM