OpenWebConfiguration with debug server

Last post 09-20-2007 8:44 PM by lordabdul. 1 replies.

Sort Posts:

  • OpenWebConfiguration with debug server

    09-20-2007, 2:58 AM
    • Loading...
    • lordabdul
    • Joined on 09-20-2007, 2:51 AM
    • Posts 5

    Hello,

    I have a problem with the WebConfigurationManager's OpenWebConfiguration method. Except for opening the default Web.config file (passing in "null" as the only parameter), all other string values result in an InvalidOperationException, stating that ASP.NET can't map the path "/" (even when passing in "sure" values, like "/" or "~", and even through the MapPath method on those values works fine). But the weird thing is that it happens only when the website is viewed through the ASP.NET development server (the one you get when you debug). It works fine when using IIS.

    I have that problem with both 2005 Express and 2008 Express Beta. I'm on Vista (so the IIS is 7.0). 

    Any idea what could be causing this?
     

  • Re: OpenWebConfiguration with debug server

    09-20-2007, 8:44 PM
    Answer
    • Loading...
    • lordabdul
    • Joined on 09-20-2007, 2:51 AM
    • Posts 5

    Okay, the workaround here is to run VS Web Express as an administrator, instead of just as a normal user.

    Is there any hotfix available for that? 

Page 1 of 1 (2 items)
Microsoft Communities
Page view counter