Search

Visual C++ 2010 forces .Net security transparency level 1 by Medinoc

Closed
as Won't Fix Help for as Won't Fix

1
0
Sign in
to vote
Type: Bug
ID: 668312
Opened: 5/13/2011 12:19:01 AM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
0
Workaround(s)
0
User(s) can reproduce this bug
Visual C++ 2010 makes it impossible to uses security transparency level 2 as recommended by .Net 4.0 documentation. Projects always have a SecurityRules(Level1) attribute, and trying to specify Level2 yields an error.

http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/5a955fd5-1f62-440e-93a8-8c8d0de7b095
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling version

Visual Studio 2010

Steps to reproduce

A) Create a C++/CLI class library project, build it.
Open it in IL disassembler.

B) Create a C++/CLI class library project.
Add a SecurityRules(level2) attribute at assembly level.
Try to build it.

Product Language

English

Operating System

Windows XP

Operating System Language

English

Actual results

A) The project explicitly contains a SecurityRules(Level1) attribute.

B) The project does not build, failing with fatal error LNK1256: ALINK operation failed (80040409) : Assembly custom attribute 'System.Security.SecurityRulesAttribute' was specified multiple times with different values

Expected results

A) The project should not contain any SecurityRules attribute, to allow the Framework to use level 2 transparency by default as documented.

B) The project should accept the SecurityRules(level2) attribute and build correctly.
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 10/3/2011 at 4:01 PM
Thank you for reporting this issue to Microsoft.

A fix for this bug will be considered for a future version of Visual Studio.

Thanks,
Mahmoud Saleh
Windows C++ Team
Posted by Medinoc on 9/22/2011 at 8:11 AM
By the way, it also affects the SP1 version of Visual Studio 2010.
Posted by MS-Moderator10 [Feedback Moderator] on 5/16/2011 at 1:42 AM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 5/13/2011 at 12:37 AM
Thank you for your feedback, We are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly (http://support.microsoft.com/)
Sign in to post a workaround.