Which code fragment should you use?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You write the following code segment to create a class named MultimediaDownloader that implements the IHttpHandler interface.

Namespace Contoso.Web.UI
Public Class MultimediaDownloader
Implements IHttpHandler
‘…
End Class
End Namespace

The MultimediaDownloader class performs the following tasks:
It returns the content of the multimedia files from the Web server It processes requests for the files that have the .media file extension The .media file extension is mapped to the aspnet_isapi.dll file in Microsoft IIS 6.0.
You need to configure the MultimediaDownloader class in the Web.config file of the application.
Which code fragment should you use?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You write the following code segment to create a class named MultimediaDownloader that implements the IHttpHandler interface.

Namespace Contoso.Web.UI
Public Class MultimediaDownloader
Implements IHttpHandler
‘…
End Class
End Namespace

The MultimediaDownloader class performs the following tasks:
It returns the content of the multimedia files from the Web server It processes requests for the files that have the .media file extension The .media file extension is mapped to the aspnet_isapi.dll file in Microsoft IIS 6.0.
You need to configure the MultimediaDownloader class in the Web.config file of the application.
Which code fragment should you use?

A.
<httpHandlers> <add verb="*.media" path="*" validate="false" type="Contoso.Web.UI.MultimediaDownloader" /> </httpHandlers>

B.
<httpHandlers> <add verb="HEAD" path="*.media" validate="true" type="Contoso.Web.UI.MultimediaDownloader" /> </httpHandlers>

C.
<httpHandlers> <add verb="*" path="*.media" validate="false" type="Contoso.Web.UI.MultimediaDownloader" /> </httpHandlers>

D.
<httpHandlers> <add verb="GET,POST" path="*" validate="true" type="Contoso.Web.UI.MultimediaDownloader" /> </httpHandlers>



Leave a Reply 0

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