nerdexam
Microsoft

70-518 · Question #124

You are upgrading a stand-alone Windows Presentation Foundation (WPF) application and an XAML browser application (XBAP) to Microsoft .NET Framework 4. You plan to add .NET 4 types and members to…

The correct answer is C. Apply the AllowPartiallyTrustedCallersAttribute attribute to the utility assembly. See the full explanation below for the reasoning.

Question

You are upgrading a stand-alone Windows Presentation Foundation (WPF) application and an XAML browser application (XBAP) to Microsoft .NET Framework 4. You plan to add .NET 4 types and members to both applications. Both applications consume a common utility assembly that modifies files on a local file system. The utility assembly requires full trust. You need to ensure that both applications can use the common utility assembly without any security-related exceptions. What should you do?

Options

  • AChange the <supportedRuntime> element for the WPF application to the .NET Framework
  • BChange the <supportedRuntime> element for the XBAP application to the .NET Framework
  • CApply the AllowPartiallyTrustedCallersAttribute attribute to the utility assembly.
  • DApply the AllowPartiallyTrustedCallersAttribute attribute to the XBAP application.

How the community answered

(48 responses)
  • A
    2% (1)
  • B
    6% (3)
  • C
    77% (37)
  • D
    15% (7)

Community Discussion

No community discussion yet for this question.

Full 70-518 Practice