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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

759 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

20 Experts available now in Live!

Get 1:1 Help Now