WebConfigurationManager.GetSection in Medium Trust

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Um9nZXIgTWFydGlu?=

    WebConfigurationManager.GetSection in Medium Trust

    Is it possible for a medium trust web application to read the Membership
    providers? The following throws a SecurityExcepti on:

    MembershipSecti on membershipSecti on =
    (MembershipSect ion)WebConfigur ationManager.Ge tSection("syste m.web/membership");

    I have custom sections in my web.config where I specify
    requirePermissi on="false", which allows them to be read in medium trust, but
    it does not seem possible to do this for the membership section. When I
    attempt it, like putting the following at the top of web.config...

    <section name="membershi p" type="System.We b.Configuration .MembershipSect ion,
    System.Web" allowDefinition ="MachineToAppl ication" requirePermissi on="false"
    />

    ....I get the error "There is a duplicate 'system.web/membership' section
    defined". I understand it may be possible to get around this by editing the
    machine-level web.config so that allowOverride=" true", but this is not an
    option in my case, as I am developing a web application for wide
    distribution, and I do not want to require my users to edit the machine-level
    web.config.

    Thanks,
    Roger Martin
    Gallery Server Pro (http://www.galleryserverpro.com)
  • =?Utf-8?B?Um9nZXIgTWFydGlu?=

    #2
    RE: WebConfiguratio nManager.GetSec tion in Medium Trust

    Bump. I am an MSDN subscriber, and I am under the impression someone from
    Microsoft will answer this within two business days, but that time has
    passed. Am I misunderstandin g something?

    Thanks,
    Roger

    "Roger Martin" wrote:
    Is it possible for a medium trust web application to read the Membership
    providers?

    Comment

    • Juan T. Llibre

      #3
      Re: WebConfiguratio nManager.GetSec tion in Medium Trust

      re:
      !Bump. I am an MSDN subscriber, and I am under the impression someone from
      !Microsoft will answer this within two business days, but that time has
      !passed. Am I misunderstandin g something?

      Did you register your posting address with MSDN ?
      Unless you did, they have no way to assign priority to your question.




      Juan T. Llibre, asp.net MVP
      asp.net faq : http://asp.net.do/faq/
      foros de asp.net, en español : http://asp.net.do/foros/
      =============== =============== ========
      "Roger Martin" <Roger Martin@communit y.nospamwrote in message
      news:CD52DB79-8313-4797-8A3C-446BCAE33136@mi crosoft.com...
      Bump. I am an MSDN subscriber, and I am under the impression someone from
      Microsoft will answer this within two business days, but that time has
      passed. Am I misunderstandin g something?
      >
      Thanks,
      Roger
      >
      "Roger Martin" wrote:
      >
      >Is it possible for a medium trust web application to read the Membership
      >providers?

      Comment

      • =?Utf-8?B?Um9nZXIgTWFydGlu?=

        #4
        Re: WebConfiguratio nManager.GetSec tion in Medium Trust

        That may be the issue. Unfortunately, the web site is not working for
        configuring the e-mail alias, so I had to create a support incident that may
        take a few days to sort out. Meanwhile, if anyone can address the original
        question, I sure would appreciate it!

        Roger

        "Juan T. Llibre" wrote:
        re:
        !Bump. I am an MSDN subscriber, and I am under the impression someone from
        !Microsoft will answer this within two business days, but that time has
        !passed. Am I misunderstandin g something?
        >
        Did you register your posting address with MSDN ?
        Unless you did, they have no way to assign priority to your question.
        >
        >
        >
        >
        Juan T. Llibre, asp.net MVP
        asp.net faq : http://asp.net.do/faq/
        foros de asp.net, en español : http://asp.net.do/foros/
        =============== =============== ========
        "Roger Martin" <Roger Martin@communit y.nospamwrote in message
        news:CD52DB79-8313-4797-8A3C-446BCAE33136@mi crosoft.com...
        Bump. I am an MSDN subscriber, and I am under the impression someone from
        Microsoft will answer this within two business days, but that time has
        passed. Am I misunderstandin g something?

        Thanks,
        Roger

        "Roger Martin" wrote:
        Is it possible for a medium trust web application to read the Membership
        providers?
        >
        >
        >

        Comment

        Working...