Free Practice Exam - MCPD 70-562
Control Panel
Exam Progress
Move on to the next question
Links
Home
Microsoft Exams
Question 15
Your client’s intranet web application has become out of date and they want you to redevelop it using ASP .Net. Whilst developing the new application you discover that they use several third party libraries for complex accounting and LOB functions. The library is also quite old and was written as a COM component. You have written to the company asking for a .Net version of the component but they do not have one.
What should you do to continue to use the classes and methods from the library?
Use the Type Library Importer to create a signed Runtime Callable Wrapper for the library. Install the RCW in the GAC
Obtain a Primary Interop Assembly from the library developer. Install the PIA in the GAC
Create a wrapper object that uses PInvoke to call the functions of the library, and import it into your application
Use the Type Libray Importer to create an unsigned Runtime Callable Wrapper for the library. Install the RCW in the GAC
That was the correct answer, well done!
Sorry, that was the wrong answer
The correct answer is Obtain a Primary Interop Assembly from the developer of the library. Install the PIA in the GAC. Since the component is not yours you should always obtain a PIA.
Sponsored
Free practice exams are provided free of charge by Accelerated Ideas. Please respect our exams and do not reproduce our material or abuse the testing system. Thank you. Microsoft exams for MCPD, MCTS, MCP, MCSE, MCSA, MCAD, MCSD