Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is delay signing?

Answers were Sorted based on User's Feedback



What is delay signing?..

Answer / guest

Delay signing allows 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.

Is This Answer Correct ?    26 Yes 7 No

What is delay signing?..

Answer / johncena

During development process you will need strong name keys to
be exposed to developer which
is not a good practice from security aspect point of view.In
such situations you can assign the key
later on and during development you an use delay signing
Following is process to delay sign an assembly:
&#8730; First obtain your string name keys using SN.EXE.
&#8730; Annotate the source code for the assembly with two custom
attributes from
System.Reflection: AssemblyKeyFileAttribute, which passes
the name of the file
containing the public key as a parameter to its constructor.
AssemblyDelaySignAttribute,
which indicates that delay signing, is being used by passing
true as a parameter to its
constructor. For example as shown below:
[Visual Basic]
<Assembly:AssemblyKeyFileAttribute("myKey.snk")>
<Assembly:AssemblyDelaySignAttribute(true)>
[C#]
[assembly:AssemblyKeyFileAttribute("myKey.snk")]
[assembly:AssemblyDelaySignAttribute(true)]
The compiler inserts the public key into the assembly
manifest and reserves space in the PE file for
the full strong name signature. The real public key must be
stored while the assembly is built so
that other assemblies that reference this assembly can
obtain the key to store in their own assembly
reference.
&#8730; Because the assembly does not have a valid strong name
signature, the verification of
that signature must be turned off. You can do this by using
the –Vr option with the
Strong Name tool.The following example turns off
verification for an assembly called
myAssembly.dll.
Sn –Vr myAssembly.dll

&#8730; Just before shipping, you submit the assembly to your
organization's signing authority
for the actual strong name signing using the –R option with
the Strong Name tool.
The following example signs an assembly called
myAssembly.dll with a strong name
using the sgKey.snk key pair.
Sn -R myAssembly.dll sgKey.snk

Is This Answer Correct ?    14 Yes 3 No

Post New Answer

More Dot Net Remoting Interview Questions

Which one is better WebService and Remoting ?

0 Answers   NA,


What is a strong name?

1 Answers  


What are the difference between static assemblies and dynamic assemblies?

0 Answers  


Elaborate the term WebService and how it differ from Remoting?

0 Answers   QuestPond,


What do you mean by passport authentication and windows authentication ?

5 Answers   TCS,


How do you implement distributed applications in .net?

0 Answers  


What is strong name and what is the purpose of strong name ?

8 Answers   Qwest, Sons Of Technology, TCS,


Define proxy in .net remoting?

0 Answers  


Explain what is the relationship between a Process, Application Domain, and Application?

2 Answers  


write a example for remoting (code)

2 Answers   Mind Tree,


What is strong name and what is the need of it ?

1 Answers   Digital GlobalSoft,


What are the security issues if we send a query from the application?

2 Answers   Microsoft, Timken,


Categories