« Previous Next »

Thread: IIS 7 Error message

Last post 01-15-2009 4:43 AM by Leo Tang - MSFT. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 01-09-2009, 1:45 PM

    • dunciet
    • Not Ranked
    • Joined on 12-29-2008, 9:06 PM
    • Posts 5

    IIS 7 Error message

    I am in the section "How to take advantege of IIS 7 Integrated Pipeline". Here I must create new files and save in the wwwroot folder such as Default.aspx, Web.config and so forth. I have done all of this and I try to log into the local host default.aspx I keep getting an error page. I cannot figure out what the problem is. Below is the error message.

     

    Compiler Error Message: CS0116: A namespace does not directly contain members such as fields or methods

    Source Error:

     

    Line 1:  <configuration>
    Line 2:    <system.web>
    Line 3:  <membership defaultProvider="AspNetReadOnlyXmlMembershipProvider">
     

    Source File: c:\inetpub\wwwroot\App_Code\XmlMembershipProvider.cs    Line: 1

    On line 1 there is a red wavy line under the first< in configuration. I underlined it to show the location.

    Server Error in '/' Application.

    This is on the top of the page. E-mail reply to dunciet@hotmail.com

  • 01-09-2009, 4:57 PM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-13-2006, 11:02 PM
    • Redmond, WA
    • Posts 863

    Re: IIS 7 Error message

    Error is pointing to compiler error in XmlMembershipProvider.cs. Seems like a field or method is present directly in the namespace and is not contained in a class.

    Thanks,
    Kanwal

    Follow me on twitter at http://twitter.com/kjsingla
  • 01-09-2009, 7:48 PM In reply to

    • dunciet
    • Not Ranked
    • Joined on 12-29-2008, 9:06 PM
    • Posts 5

    Re: IIS 7 Error message

    First of all you have to understand that I have never done any of this before. I do not understand any of what you are saying. I am trying to learn this. I have never worked with IIS before. I downloaded this about 7 days ago and have no idea of what to do. Please explain in terms that I can understand. Up until last week I never even used a command prompt. Everything that I have done so far I have copied and pasted from the "Learn IIS 7" manual on the Microsoft Communities" Learn IIS 7." I'm sorry but you will have to explain in simple terms.

    Sorry, but Thank You.

    Lori

  • 01-15-2009, 4:43 AM In reply to

    Re: IIS 7 Error message

    Hi,

    I noticed the source file is XmlMembershipProvider.cs. But the content is "<configuratioin>..." which belongs to the file web.config. The file  XmlMembershipProvider.cs's content is some code provided in the Appendix section at the end of the article.

    I think the article below is your followed, for your convenience:
    How to Take Advantage of the IIS 7.0 Integrated Pipeline
    http://learn.iis.net/page.aspx/244/how-to-take-advantage-of-the-iis7-integrated-pipeline/

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (4 items)
Microsoft Communities