0

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

Iwo Kucharski
  • 3,735
  • 3
  • 50
  • 66
marandiiii
  • 21
  • 10

1 Answers1

1

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

Joey Phillips
  • 1,543
  • 2
  • 14
  • 22