What should you do?

You are creating a Windows application by using the .NET Framework 3.5. An existing application uses functionality provided by an unmanaged dynamic-link library (DLL) to validate user inputs. The application contains a wrapper class that uses Platform Invoke to access the required DLL functions. The application has the following deployment and security requirements:

* ClickOnce deployment is used to publish the application to an Internet Web site.
* The application is available online only.
* The application does not require protected storage.
* Users can access the application without requiring the elevated permission.

You need to ensure that the deployment and security requirements are met without affecting the application validation performance. What should you do?

You are creating a Windows application by using the .NET Framework 3.5. An existing application uses functionality provided by an unmanaged dynamic-link library (DLL) to validate user inputs. The application contains a wrapper class that uses Platform Invoke to access the required DLL functions. The application has the following deployment and security requirements:

* ClickOnce deployment is used to publish the application to an Internet Web site.
* The application is available online only.
* The application does not require protected storage.
* Users can access the application without requiring the elevated permission.

You need to ensure that the deployment and security requirements are met without affecting the application validation performance. What should you do?

A.
Sign the ClickOnce manifest by using a valid Authenticode certificate.

B.
Eliminate the wrapper class and migrate the code in the DLL to managed code.

C.
Apply the SuppressUnmanagedCodeSecurityAttribute attribute to the wrapper class.

D.
Apply the AllowPartiallyTrustedCallersAttribute attribute to the assembly that contains the wrapper class.



Leave a Reply 0

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