How can I get permission to write an unsafe code in ashx file?

77 Views Asked by At

How can I get permission to write an unsafe code in ashx file? When I use unsafe code in asp i encounter the following error.

unsafe code may only appear if compiling with /unsafe

1

There are 1 best solutions below

0
On

Right click on your project. Select "Properties". Switch to the "Build" tab. Check "Allow unsafe code".