Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
'Inaccessible due to is protection level' messages when building unified assembly with strong name
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Richard Collette  
View profile  
 More options May 15 2012, 1:32 pm
From: Richard Collette <richard.colle...@gmail.com>
Date: Tue, 15 May 2012 10:32:12 -0700 (PDT)
Local: Tues, May 15 2012 1:32 pm
Subject: 'Inaccessible due to is protection level' messages when building unified assembly with strong name

I'm building the unified assembly from the current master branch.  I can
build it fine without specifying an sn key on the command line.  When I use
the following command line:

msbuild
/p:KeyPairContainer=DotNetOpenAuthcontainer,PublicKeyFile="c:\code\DotNetOp enAuth.pub"
/p:TargetFrameworkVersion=v4.0

I get a bunch of errors similar to:

OAuth\Messages\SignedMessageBase.cs(18,78): error CS0122:
'DotNetOpenAuth.Messaging.Bindings.IExpiringProtocolMessage' is
inaccessible due to its protection l
evel
[c:\Code\DotNetOpenAuthSrc\dotnetopenid\src\DotNetOpenAuth.OAuth\DotNetOpen Auth.OAuth.csproj]

Tried it in release mode as well with same results.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Arnott  
View profile  
 More options May 20 2012, 9:21 pm
From: Andrew Arnott <andrewarn...@gmail.com>
Date: Sun, 20 May 2012 18:21:35 -0700
Local: Sun, May 20 2012 9:21 pm
Subject: Re: [dotnetopenauth] 'Inaccessible due to is protection level' messages when building unified assembly with strong name

I suspect your use of the /p parameter is setting a global property that
will end up causing conflicts within the build authoring for the project.
 Also, it shouldn't be necessary to specify both a publickeyfile and
keypaircontainer, IIRC.

Those are my only guesses right now.
--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death
your right to say it." - S. G. Tallentyre

On Tue, May 15, 2012 at 10:32 AM, Richard Collette <


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Savinykh  
View profile  
 More options Jul 3 2012, 5:55 pm
From: Andrew Savinykh <andrew...@gmail.com>
Date: Tue, 3 Jul 2012 14:55:57 -0700 (PDT)
Local: Tues, Jul 3 2012 5:55 pm
Subject: Re: [dotnetopenauth] 'Inaccessible due to is protection level' messages when building unified assembly with strong name

I think the issue here is that assemblyinfo.cs has a bunch of these:
[assembly: InternalsVisibleTo("DotNetOpenAuth.Test,
PublicKey=0024000004800000940000000602000000240000525341310004000001000100A D093C3765257C89A7010E853F2C7C741FF92FA8ACE06D7B8254702CAD5CF99104447F63AB05 F8BB6F51CE0D81C8C93D2FCE8C20AAFF7042E721CBA16EAAE98778611DED11C0ABC8900DC56 67F99B50A9DADEC24DBD8F2C91E3E8AD300EF64F1B4B9536CEB16FB440AF939F57624A9B486 F867807C649AE4830EAB88C6C03998")]
[assembly: InternalsVisibleTo("DotNetOpenAuth.Core.UI,
PublicKey=0024000004800000940000000602000000240000525341310004000001000100A D093C3765257C89A7010E853F2C7C741FF92FA8ACE06D7B8254702CAD5CF99104447F63AB05 F8BB6F51CE0D81C8C93D2FCE8C20AAFF7042E721CBA16EAAE98778611DED11C0ABC8900DC56 67F99B50A9DADEC24DBD8F2C91E3E8AD300EF64F1B4B9536CEB16FB440AF939F57624A9B486 F867807C649AE4830EAB88C6C03998")]

etc.

Of course, if you follow the instruction here
http://www.dotnetopenauth.net/developers/contributing/quickstart-envi...
(like the, OP did, and by the way both a publickeyfile and keypaircontainer
are prescribed to be used in this doco) you are going to change the public
key, so all theses  InternalsVisibleTo become invalid. No wonder it has
accessibility problem afterwards.

I'd still very much like to know a working solution to this problem...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Savinykh  
View profile  
 More options Jul 3 2012, 6:03 pm
From: Andrew Savinykh <andrew...@gmail.com>
Date: Tue, 3 Jul 2012 15:03:21 -0700 (PDT)
Local: Tues, Jul 3 2012 6:03 pm
Subject: Re: [dotnetopenauth] 'Inaccessible due to is protection level' messages when building unified assembly with strong name

And also I wanted to point out this:

keypaircontainer is used for the delay-signing with the private key.
publickeyfile is passed to ilmerge so that the output can be later
delay-signed, this is why you need both, It's explained here:
http://blog.nerdbank.net/2009/06/how-to-get-ilmerge-to-work-with-pfx....

Was not it you who wrote this blog post?

Andrew.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Arnott  
View profile  
 More options Jul 3 2012, 7:00 pm
From: Andrew Arnott <andrewarn...@gmail.com>
Date: Tue, 3 Jul 2012 16:00:11 -0700
Local: Tues, Jul 3 2012 7:00 pm
Subject: Re: [dotnetopenauth] 'Inaccessible due to is protection level' messages when building unified assembly with strong name

Yes, Andrew, I did... about 3 years ago.  Fortunately source control has
allowed me to forget solutions to previously solved problems of yesteryear.
;)

And yes, regarding those InternalsVisibleTo attributes, I think the ideal
fix for this might be a build step which regenerates these attributes based
on the actual key being used to sign the assemblies.  In the meantime, the
easiest way to build your own is to register for skip verification and just
delay sign the assemblies using the original key.

Of course, that doesn't work so well if you use the DLL you build in
production, which leads me to my question: if you need it in production,
why do you need to build your own version?
--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death
your right to say it." - S. G. Tallentyre


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard Collette  
View profile  
 More options Jul 8 2012, 10:51 pm
From: Richard Collette <richard.colle...@gmail.com>
Date: Sun, 8 Jul 2012 19:51:03 -0700 (PDT)
Local: Sun, Jul 8 2012 10:51 pm
Subject: Re: [dotnetopenauth] 'Inaccessible due to is protection level' messages when building unified assembly with strong name

At the time I posted the original issue, I had worked around the fact that
I could not create an simple registration unsolicited assertion with
configuration parameters (this is obviously a vague, non Type specific,
recollection).  That issue is now supposed to be resolved in 4.1, although
now we are using attribute exchange exclusively due to a need for fine
grained properties (first/last name) in addition to custom properties.

However, one never knows when they are going to hit a wall in a project and
need to correct something quickly to keep things moving.  Being able to
compile for production use is still reassuring even if there are no current
issues to be worked around.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »