Drop this in web.config
<system.codedom>
<compilers>
<!-- zero or more compiler elements -->
<compiler language="c#;cs;csharp" extension=".cs"
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" compilerOptions="/unsafe"
warningLevel="1"/>
</compilers>
</system.codedom>
Must be under <configuration> node
George
"rockdale" <> wrote in message
news: oups.com...
> Hi, all
>
> Could somebody tells me where can I set "Allow unsafe code" in visual
> studio 2005. I could not find any Project Properties|Configuration
> Properties in my website solution.
>
> Mine appl is a VS 2005 Web Site Projects, should I migrate to VS 2005
> Web Application Projects?
>
> Thanks a lot
> -rockdale
>
|