Solved

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

Posted on 2011-09-15
2
323 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

762 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