473,396 Members | 2,036 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problems With the <location> element in my Web.Config

Im trying to setup impersonation in the root directory and turn it off (
false ) in another directory. im doing to allow my crystal reports to work (
as i get the login failed message ) and also ensure that only certain people
has access to the maintenance folder ( impersonation = true ). Here is the
webconfig :

<?xml version="1.0" encoding="utf-8"?>
<configuration>

<system.web>

</system.web>

<location path="~/Maintenance">
<system.web>
<identity impersonate="false"/>
</system.web>
</location>
</configuration>
--
pb070401
Apr 20 '06 #1
1 1465
ALSO IN ADDITION TO THE DETAILS BELOW

This is the complete web.config ( well with the relavent parts )

<?xml version="1.0" encoding="utf-8"?>
<configuration>

<system.web>
<identity impersonate="true"/>
</system.web>

<location path="~/Maintenance">
<system.web>
<identity impersonate="false"/>
</system.web>
</location>
</configuration>
ive tried with the tilde and without it. it continues to use the NT
AUTHORITY\NETWORK SERVICE instread of changing to the administrator account (
which im logged on as ) when i access the maintenance website

any help would be apprecaited
thanks !
--
pb070401
"paris baughman" wrote:
Im trying to setup impersonation in the root directory and turn it off (
false ) in another directory. im doing to allow my crystal reports to work (
as i get the login failed message ) and also ensure that only certain people
has access to the maintenance folder ( impersonation = true ). Here is the
webconfig :

<?xml version="1.0" encoding="utf-8"?>
<configuration>

<system.web>

</system.web>

<location path="~/Maintenance">
<system.web>
<identity impersonate="false"/>
</system.web>
</location>
</configuration>
--
pb070401

Apr 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Joe Abou Jaoude | last post by:
I have an application that support multiple cultures. the main folder is english, and the subfolder "French" is french. I don't want to create a web config in the subfolder french to specify the...
1
by: Cantekin Guneser | last post by:
when i used <location> tag as follow; </system.web> <location path="members" allowOverride="false"> <system.web> <authentication mode="Forms"> <forms loginUrl="./default.aspx"></forms>...
2
by: joeted | last post by:
Hello, I am trying to run a batch file on a (remote) .NET server (i'm not the admin) using system.diagnostics.process I find that the batch file is successfully executed. However, when i...
10
by: Brian Henry | last post by:
Hi, I am having a problem with an attachment system I made... it works with files up to ~3MB in size then after that if you try to upload a file it just goes to a "Page can not be displayed" page...
4
by: Chip Page | last post by:
Hello, In my top-level Web.config, I had added a number of httpModules. In a particular sub-directory in the application, I wish to prevent one of the HttpModules from executing. My attempts...
1
by: Dica | last post by:
i've got a few pages on my site that don't require authentication. is it possible to specify each on of these in the same node within web.config, or do i have to repeat for each? i'd like to do the...
1
by: alexvodovoz | last post by:
Hi, I have been struggling with this for the past couple of days. We have a custom http module setup in our project to filter some requests. I only want this module to be applied to certain...
2
by: alexvodovoz | last post by:
Hi, I have been struggling with this for the past couple of days. We have a custom http module setup in our project to filter some requests. I only want this module to be applied to certain...
2
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. I need to deny unauthenticated users from accessing an excel file located within my webapp at SecurePages/ExcelFile1.xls. I've added the below <locationelement to my web.config, but it allows...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.