PrepAway - Latest Free Exam Questions & Answers

Which configuration should you use in web.config?

You use the ASP.NET Web Site template to create a Web site that will be deployed to multiple locations.
Each location will specify its SMTP configuration settings in a separate file named smtp.config in theroot folder
of the Web site.
You need to ensure that the configuration settings that are specified in the smtp.config file will be applied to the
Web site.
Which configuration should you use in web.config?

PrepAway - Latest Free Exam Questions & Answers

A.
<configuration>
<system.net>
<mailSettings>
<smtp configSource=”smtp.config” allowOverride=”true”>
<network host=”127.0.0.1″ port=”25″/>
</smtp>
</mailSettings>
</system.net>
</configuration>

B.
<configuration>
<system.net>
<mailSettings>
<smtp configSource=”smtp.config” />
</mailSettings>
</system.net>
</configuration>

C.
<configuration xmlns:xdt=”http://schemas.microsoft.com/XML- DocumentTransform”>
<location path=”smtp.config” xdt:Transform=”Replace” xdt:Locator=”Match
(path)”>
<system.net />
</location>
</configuration>

D.
<configuration>
<location path=”smtp.config”>
<system.net>
<mailSettings>
<smtp Devilery Method=”Network” >
<Network Host = “127.0.0.1” Port=”25″/>
</smtp>
</mailSettings>
</system.net>
</location>
</configuration>


Leave a Reply