.NET deployment questions

  1. What do you know about .NET assemblies? Assemblies are the smallest units of versioning and deployment in the .NET application. Assemblies are also the building blocks for programs such as Web services, Windows services, serviced components, and .NET remoting applications.
  2. What’s the difference between private and shared assembly? Private assembly is used inside an application only and does not have to be identified by a strong name. Shared assembly can be used by multiple applications and has to have a strong name.
  3. What’s a strong name? A strong name includes the name of the assembly, version number, culture identity, and a public key token.
  4. How can you tell the application to look for assemblies at the locations other than its own install? Use the directive in the XML .config file for a given application.
    <probing privatePath=”c:\mylibs; bin\debug” />

    should do the trick. Or you can add additional search paths in the Properties box of the deployed application.

  5. How can you debug failed assembly binds? Use the Assembly Binding Log Viewer (fuslogvw.exe) to find out the paths searched.
  6. Where are shared assemblies stored? Global assembly cache.
  7. How can you create a strong name for a .NET assembly? With the help of Strong Name tool (sn.exe).
  8. Where’s global assembly cache located on the system? Usually C:\winnt\assembly or C:\windows\assembly.
  9. Can you have two files with the same file name in GAC? Yes, remember that GAC is a very special folder, and while normally you would not be able to place two files with the same name into a Windows folder, GAC differentiates by version number as well, so it’s possible for MyApp.dll and MyApp.dll to co-exist in GAC if the first one is version 1.0.0.0 and the second one is 1.1.0.0.
  10. So let’s say I have an application that uses MyApp.dll assembly, version 1.0.0.0. There is a security bug in that assembly, and I publish the patch, issuing it under name MyApp.dll 1.1.0.0. How do I tell the client applications that are already installed to start using this new MyApp.dll? Use publisher policy. To configure a publisher policy, use the publisher policy configuration file, which uses a format similar app .config file. But unlike the app .config file, a publisher policy file needs to be compiled into an assembly and placed in the GAC.
  11. What is delay signing? Delay signing allows you to place a shared assembly in the GAC by signing the assembly with just the public key. This allows the assembly to be signed with the private key at a later stage, when the development process is complete and the component or assembly is ready to be deployed. This process enables developers to work with shared assemblies as if they were strongly named, and it secures the private key of the signature from being accessed at different stages of development.
This entry was posted in .NET. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

6 Comments on .NET deployment questions

  1. barakatali
    Posted 3/31/2004 at 2:01 am | Permalink

    thanks

  2. MWare
    Posted 4/13/2004 at 8:28 am | Permalink

    8. According to MSDN the GAC is located wherever the CLR is installed.

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

  3. Anil Doye
    Posted 5/22/2004 at 1:26 am | Permalink

    Hi ….
    to all of u…….
    I m in need .. So plz help me ..
    I m going to explain my problem…
    well i m working in .net ..
    Now i take two listbox web server controls..ok
    In My Listbox1 there is some data which comes from database
    on cliend side i add a some elements from listbox1 to listbox2 i have done this thing by using javascript ok…
    Now on some event my page is going to refresh.. so what ever the data i have add on client side in listbox2 vanishes as page get refresh..
    what i think as .Net provide a view state so how it get vanishes ….
    so can u tell me where i m wrong…
    the reason behind to think so, is that (if we add some data in text box through javascript or we just enter through our key board) and when it do the server trip it remains there ,then why not for list box.. so please help me and tell me where i m wrong…
    thanks in advance…
    anil……

  4. M.sai chandra naveen kumar
    Posted 5/24/2004 at 4:43 pm | Permalink

    add more faqs on dotnet please. really this site is good .more faqs r added means it would be the execellent site for .net

    pl do it .help the begineers also

    naveen.m from india -Andhra Pradesh

  5. Raja Sarkar
    Posted 7/21/2004 at 11:26 am | Permalink

    In Vb.Net , I am not getting the system.data.Ado namespace.
    How will I do it ? Please send me tips to solve the problem.

  6. bbbb
    Posted 4/25/2005 at 2:47 am | Permalink

    Hi ….
    to all of u…….
    I m in need .. So plz help me ..
    I m going to explain my problem…
    well i m working in .net ..
    Now i take two listbox web server controls..ok
    In My Listbox1 there is some data which comes from database
    on cliend side i add a some elements from listbox1 to listbox2 i have done this thing by using javascript ok…
    Now on some event my page is going to refresh.. so what ever the data i have add on client side in listbox2 vanishes as page get refresh..
    what i think as .Net provide a view state so how it get vanishes ….
    so can u tell me where i m wrong…
    the reason behind to think so, is that (if we add some data in text box through javascript or we just enter through our key board) and when it do the server trip it remains there ,then why not for list box.. so please help me and tell me where i m wrong…
    thanks in advance…
    anil……

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*