Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > visual studio 2005 unsafe code may only appear if compiling with /unsafe

Reply
Thread Tools

visual studio 2005 unsafe code may only appear if compiling with /unsafe

 
 
rockdale
Guest
Posts: n/a
 
      11-03-2006
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

 
Reply With Quote
 
 
 
 
George Ter-Saakov
Guest
Posts: n/a
 
      11-03-2006
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
>



 
Reply With Quote
 
 
 
 
bruce barker \(sqlwork.com\)
Guest
Posts: n/a
 
      11-03-2006
also the asp.net configuration on the server needs to set to allow unsafe
code.

-- bruce (sqlwork.com)

"George Ter-Saakov" <gt-> wrote in message
news:ehkzB11$...
> 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
>>

>
>



 
Reply With Quote
 
rockdale
Guest
Posts: n/a
 
      11-03-2006
thanks. it works.

-rockdale
George Ter-Saakov wrote:
> 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
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enabling browser back button for GridView Paging and Sorting in Ajax1.1 and 3.5 (using Visual Studio 2005/ Visual studio 2008) anil reddy ASP .Net 0 02-11-2009 04:22 PM
How do I make Xhtml strict appear in the Visual Studio 2005 dropdown? DeveloperQuest@gmail.com ASP .Net 1 10-17-2007 04:40 PM
Is Visual Studio 2005 complict with Visual Studio 2003 rockdale ASP .Net 1 08-23-2006 07:20 PM
Should I write Visual studio 2005 or Visual studio 2003 MCSD =?Utf-8?B?VmlqYXk=?= Microsoft Certification 14 06-30-2006 09:05 AM
Should I write Visual studio 2005 or Visual studio 2003 MCSD =?Utf-8?B?VmlqYXk=?= Microsoft Certification 0 06-29-2006 07:05 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57