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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

737 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