PrepAway - Latest Free Exam Questions & Answers

You need to ensure that only one copy of the class library exists on the server

You are developing an ASP.NET web application.
The application includes a class library named Contoso.dll that will be used by other ASP.Net applications on
the same server.
You need to ensure that only one copy of the class library exists on the server.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Add the following code segment to the top of eachweb page.
<%@ Register TagPrefix=”cc” NameSpace=”contoso”
Assembly=”contoso” %>

B.
Install the class library into the Global Assembly Cache on the server.

C.
Deploy the class library on the App_Code folder

D.
Add the following assembly attribute to the Contoso class library´s AssemblyInfo.cs file.
[assembly: AssemblyConfiguration(“Shared”)]


Leave a Reply