To fix this error, you need to set your project setting to build and/or debug unsafe code.
To set unsafe build, go to your project in Solution Explorer.
Right click on Project Name and select Properties.
Go to Build tab and select "Allow unsafe code"

To debug unsafe code, go to Debug tab and select "Enable unmanaged code debugging"


Jyotiranjan RoutPosted Nov 4, 2018, 1:08 AM
Hi Mahesh, Thanks for this article. Two questions: 1. Do you think, allowing unsafe code and making it error free; is good and healthy for Production deployment ? 2. Why MS has given such options?