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
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
Right click on your project. Select "Properties". Switch to the "Build" tab. Check "Allow unsafe code".