Solved

Is it possible to switch off Anonymous access my web application while keeping it switched on for my web services ?

Posted on 2011-03-21
2
428 Views
Last Modified: 2012-05-11
Is it possible to switch off 'Anonymous' access my web application while keeping it switched on for my web services ? If yes, how? Please suggest me.
0
Comment
Question by:GouthamAnand
[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 Comments
 
LVL 28

Accepted Solution

by:
Ryan McCauley earned 500 total points
ID: 35182471
It's not possible to do this for different files in the same application (the same folder in IIS), but you could do this either by putting the web services in a separate application or by putting them in a sub-folder of your web application and including a second web.config that tags them as permitting anonymous access.

In this example, he wants to override the type to session state, but it would work just as well for the Authorization section of your web.config:

http://stackoverflow.com/questions/681664/multiple-web-config-files-in-asp-net-web-application

Here's a much more in-depth CodeProject article about working with multiple nested web.config files:

http://www.codeproject.com/KB/aspnet/multipleWebConfig.aspx

Post back if you have any problems.
0
 

Author Closing Comment

by:GouthamAnand
ID: 35207967
Thans a lot
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

726 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