CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    George2 is offline Elite Member Power Poster
    Join Date
    Oct 2002
    Posts
    4,468

    authentication issue of IIS 6.0

    Hello everyone,

    I am using Windows Server 2003 + VSTS 2008 + .Net 3.5 + C# + ASP.Net + IIS 6.0. I host some files (wmv video file and html file) on the web server, I want to know whether there are any easy to use authentication approach to let user input username and password before they can access (I want to prevent anonymous access)? Since the web site has also aspx ASP.Net page, and I want to use an unified authentication solution for wmv, html and aspx page. If prefer any solution which utilizes username and password stored in SQL Server database which my application already has/use.

    Any ideas?

    thanks in advance,
    George

  2. #2
    Join Date
    Nov 2007
    Location
    .NET 3.5 / VS2008 Developer
    Posts
    624

    Re: authentication issue of IIS 6.0

    I don't think that's possible. It is easy for the .aspx pages. However, for the wmv files, they would use the IIS authentication, which I don't believe you can "override" to make it use a sql server based authentication. It will either use anonymous or windows authentication. I don't think it can be anything else for IIS.

    now you could create an .aspx page with links to those wmv files. that would allow you to use your own authentication and still allow the files to be downloaded.
    ===============================
    My Blog

  3. #3
    George2 is offline Elite Member Power Poster
    Join Date
    Oct 2002
    Posts
    4,468

    Re: authentication issue of IIS 6.0

    I can create an aspx page links to the wmv file, but if user find the URL of the wmv file by viewing source html code generated by aspx, the user could download directly from the URL without authentication, and this is what I want to prevent. Any comments or ideas?

    Quote Originally Posted by eclipsed4utoo View Post
    I don't think that's possible. It is easy for the .aspx pages. However, for the wmv files, they would use the IIS authentication, which I don't believe you can "override" to make it use a sql server based authentication. It will either use anonymous or windows authentication. I don't think it can be anything else for IIS.

    now you could create an .aspx page with links to those wmv files. that would allow you to use your own authentication and still allow the files to be downloaded.

  4. #4
    Join Date
    Nov 2007
    Location
    .NET 3.5 / VS2008 Developer
    Posts
    624

    Re: authentication issue of IIS 6.0

    you could use a link button with the link not actually going to the physical path. And then on the Click event of the link button, serve the file to the browser for download.
    ===============================
    My Blog

  5. #5
    George2 is offline Elite Member Power Poster
    Join Date
    Oct 2002
    Posts
    4,468

    Re: authentication issue of IIS 6.0

    Thanks eclipsed4utoo, but how to solve the issue of authentication for html file?

    Quote Originally Posted by eclipsed4utoo View Post
    you could use a link button with the link not actually going to the physical path. And then on the Click event of the link button, serve the file to the browser for download.

  6. #6
    Join Date
    Nov 2007
    Location
    .NET 3.5 / VS2008 Developer
    Posts
    624

    Re: authentication issue of IIS 6.0

    what do you mean by an html file? do you mean an html webpage?
    ===============================
    My Blog

  7. #7
    George2 is offline Elite Member Power Poster
    Join Date
    Oct 2002
    Posts
    4,468

    Re: authentication issue of IIS 6.0

    Thanks eclipsed4utoo, any differences? What I mean is access control to URL like, http://server/abc/def.html Any ideas?

    Quote Originally Posted by eclipsed4utoo View Post
    what do you mean by an html file? do you mean an html webpage?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured