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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now