problems using Visual Studio Development Server with forms authentication

Discussion in 'ASP .Net' started by Andy Fish, Sep 13, 2007.

  1. Andy Fish

    Andy Fish Guest

    Hi,

    My .Net 2.0 app uses forms authentication, so it redirects to the login page
    if the user is not logged in. However, if I configure it to use the visual
    studio development server, the login page shows without CSS, javascript, and
    images being loaded.

    I presume this is because the visual studio development server is refusing
    to serve these files because the user is not logged in (whereas if I was
    using IIS, it would serve the files without even touching .net)

    is this just a fundamental limitation of the visual studio development
    server or did I miss some kind of project setting?

    Andy
    Andy Fish, Sep 13, 2007
    #1
    1. Advertising

  2. Andy Fish

    bruce barker Guest

    in web.config, give access to css files and images without login.

    -- bruce (sqlwork.com)

    Andy Fish wrote:
    > Hi,
    >
    > My .Net 2.0 app uses forms authentication, so it redirects to the login page
    > if the user is not logged in. However, if I configure it to use the visual
    > studio development server, the login page shows without CSS, javascript, and
    > images being loaded.
    >
    > I presume this is because the visual studio development server is refusing
    > to serve these files because the user is not logged in (whereas if I was
    > using IIS, it would serve the files without even touching .net)
    >
    > is this just a fundamental limitation of the visual studio development
    > server or did I miss some kind of project setting?
    >
    > Andy
    >
    >
    bruce barker, Sep 13, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. wh
    Replies:
    2
    Views:
    494
    Cowboy \(Gregory A. Beamer\)
    Jan 16, 2004
  2. Thirumalai
    Replies:
    0
    Views:
    631
    Thirumalai
    May 22, 2006
  3. rockdale
    Replies:
    1
    Views:
    588
    Juan T. Llibre
    Aug 23, 2006
  4. xman
    Replies:
    0
    Views:
    464
  5. Lit
    Replies:
    1
    Views:
    585
    Jesse Houwing
    Aug 3, 2007
Loading...

Share This Page