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?

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?

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 0

Your email address will not be published. Required fields are marked *