Solved

Allow anonymous access to a particular folder in a ASP.NET application

Posted on 2011-09-15
2
320 Views
Last Modified: 2012-05-12
I have a ASP.NET web application that makes use of Windows Authentication.  However, I have a particular folder that I need for anyone to be able to call ( anonymous )  The application is running on Windows 2008 Server.  I have Set the authentication  of the folder were the web service resides to anonymous, yet I still get prompted for my windows credentials.  If I hit cancel ( not providing anything ) the web service still works as expected.  I need for a linux system to be able to access the web service.
0
Comment
Question by:mddohm
  • 2
2 Comments
 
LVL 14

Assisted Solution

by:abhitrig
abhitrig earned 500 total points
ID: 36549223
Try adding a separate web.config inside your anonymous folder and add the below:
<configuration>
   <system.web>
      <authorization>
        <allow users="*"/> //Allow everyone
      </authorization>
   </system.web>
</configuration>
0
 
LVL 14

Accepted Solution

by:
abhitrig earned 500 total points
ID: 36549247
And if you don't want to create separate web.config, another option would be to set the "location" tag for your anonymous folder. This should help: http://weblogs.asp.net/gurusarkar/archive/2008/09/29/setting-authorization-rules-for-a-particular-page-or-folder-in-web-config.aspx
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question