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
410 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

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…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

832 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