Unsafe Code in a ASP project
-
I am trying to use unsafe code within an ASP project and I receive this error: Compiler Error Message: CS0227: Unsafe code may only appear if compiling with /unsafe I am developing using the cassini personal webserver. I am not using visual studio. I saw on various posts how to allow unsafe code using visual studio IDE setting in visual studio. I then added this to web.config in hopes to accomplish the same thing as the IDE setting: and received this error: Parser Error Message: File or assembly name System, or one of its dependencies, was not found. Line 16:
-
I am trying to use unsafe code within an ASP project and I receive this error: Compiler Error Message: CS0227: Unsafe code may only appear if compiling with /unsafe I am developing using the cassini personal webserver. I am not using visual studio. I saw on various posts how to allow unsafe code using visual studio IDE setting in visual studio. I then added this to web.config in hopes to accomplish the same thing as the IDE setting: and received this error: Parser Error Message: File or assembly name System, or one of its dependencies, was not found. Line 16:
Are you trying to place html or javascript in your website. To tired to think not sure if this helpes http://asp.net/faq/RequestValidation.aspx
-
I am trying to use unsafe code within an ASP project and I receive this error: Compiler Error Message: CS0227: Unsafe code may only appear if compiling with /unsafe I am developing using the cassini personal webserver. I am not using visual studio. I saw on various posts how to allow unsafe code using visual studio IDE setting in visual studio. I then added this to web.config in hopes to accomplish the same thing as the IDE setting: and received this error: Parser Error Message: File or assembly name System, or one of its dependencies, was not found. Line 16:
Hi, Have you tried different combinations, e.g. the switch also supports: -unsafe If this still doesn't work, you could always put the unsafe code in an assembly then include the switch when using the csc compiler. Hope this helps, Andy