Solved

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

Posted on 2011-09-15
2
321 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

792 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