473,831 Members | 2,341 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Change "Access is Denied" default page in web application

Hi!
I'm using Windows Authentication in my application, restricting permissions
with authorization for specific users. But when someone try to access and
don't have permissions, the default page "Access is Denied" appears...

Can I figure out this and show my own page?

HSH
Ueslei
Nov 18 '05 #1
4 2017
you can specify the page that each error goes to in the IIS manager.
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Ueslei R. Valentini" <ue****@diuno.c om.br> wrote in message
news:uB******** ******@TK2MSFTN GP09.phx.gbl...
Hi!
I'm using Windows Authentication in my application, restricting permissions with authorization for specific users. But when someone try to access and
don't have permissions, the default page "Access is Denied" appears...

Can I figure out this and show my own page?

HSH
Ueslei

Nov 18 '05 #2
In IIS I changed the 401.2 error page, but It still showing the same error
message...

What exactly I need change?

HSH
Ueslei

"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:eb******** ******@TK2MSFTN GP09.phx.gbl...
you can specify the page that each error goes to in the IIS manager.
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Ueslei R. Valentini" <ue****@diuno.c om.br> wrote in message
news:uB******** ******@TK2MSFTN GP09.phx.gbl...
Hi!
I'm using Windows Authentication in my application, restricting

permissions
with authorization for specific users. But when someone try to access and don't have permissions, the default page "Access is Denied" appears...

Can I figure out this and show my own page?

HSH
Ueslei


Nov 18 '05 #3
is that the error number?
Also, make sure to stop/restart IIS

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Ueslei R. Valentini" <ue****@diuno.c om.br> wrote in message
news:ub******** ******@TK2MSFTN GP10.phx.gbl...
In IIS I changed the 401.2 error page, but It still showing the same error
message...

What exactly I need change?

HSH
Ueslei

"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:eb******** ******@TK2MSFTN GP09.phx.gbl...
you can specify the page that each error goes to in the IIS manager.
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Ueslei R. Valentini" <ue****@diuno.c om.br> wrote in message
news:uB******** ******@TK2MSFTN GP09.phx.gbl...
Hi!
I'm using Windows Authentication in my application, restricting

permissions
with authorization for specific users. But when someone try to access and don't have permissions, the default page "Access is Denied" appears...

Can I figure out this and show my own page?

HSH
Ueslei



Nov 18 '05 #4

"Ueslei R. Valentini" <ue****@diuno.c om.br>, haber iletisinde þunlarý
yazdý:uB******* *******@TK2MSFT NGP09.phx.gbl.. .
Hi!
I'm using Windows Authentication in my application, restricting permissions with authorization for specific users. But when someone try to access and
don't have permissions, the default page "Access is Denied" appears...

Can I figure out this and show my own page?

HSH
Ueslei

sorry for polluting if u know all these but
may be this will work
in web.config file make these changes if u don't
<customErrors mode="on">
'maybe your mode is "RemoteOnly " or "off"
'if it is "RemoteOnly " then it is just returns the default error page to
local
<error redirect="url" statusCode="cod e">
</customErrors>

good luck

Nov 18 '05 #5

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

Similar topics

0
1890
by: diarmaid | last post by:
Hi, I have a password-protected area on my site. I'm not using any server authentication methods: Instead I prompt the user for a username and password using an HTML form and check these against a database of registered users. I was thinking that this page should be returning a HTTP status code of "401 Unauthorized" instead of its current "200 OK". My reasoning being that this would let search engines know what's going on when they
1
1933
by: EO | last post by:
I am trying to use the MSFT data access application block on 3 machines. Machine 1: Sandbox environment; I installed the application block with the msi. The Sqlhelper class compiles & runs great! (Also the SqlhelperParameterCache class; I'll refer to them collectively as the SqlHelper class.) I'm using unmodified application block code in all cases. Machine 2: Development environment, different project
3
1732
by: Rachel | last post by:
Hi, I am using the data access application block successfully in our development environment, however when I deploy to our testing server as Private Assemblies I keep getting the following Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
1
1270
by: David A Barajas | last post by:
Is is possible to launch an Access Application within another app, creating a Parent/Child relationship between the App/Access? I'm trying to create a system where I can distribute the Access app without having to worry about Access runtime issues at the client site. I'm already working on porting the app to VB but would like to explore alternatives to recreating the app. Thanks in advance.
38
3912
by: Oldie | last post by:
I have built an MS Access Application under MS Office XP (but I also own MS Office 2000). I have split the application in the pure database tables and all the queries, forms, reports and macro's. Now i want to use this application for different foundations in the Netherlands but I want to secure my application so no one can change it, copy it or steal it from me. I always thought there was a kind of conversion tool that would translate...
2
10527
by: mik.sjoblom | last post by:
Hello, I have developed a Access application that needs to read mail from Outlook, versions on Access and outlook are 2003. In the code i use mapi to connect to outlook. When i tries to read the subject of a message outlook displays "A program is trying to access e-mail adresses you have stored in Outlook. Do you want to allow this." And then i can allow access for max 10 minutes. My application is use scheduled statupm creating reports...
2
2519
by: Tim::.. | last post by:
Can someone tell me how you change this code for an Oledb connection rather than SQL Server. The code currently uses Microsoft.Data.Access.Application.Block and the SQLHelper object... I need to use this with an access database! reader = SqlHelper.ExecuteReader(ConfigurationSettings.AppSettings("strConn"), CommandType.StoredProcedure, "rolesForUser", New OleDbParameter("@Username", User.Identity.Name))
1
4872
by: David Di Donato | last post by:
hi i have a big problem. i have an asp file with the following source code.... ****** Set r_ = Server.CreateObject ("Access.Application.10") s1 = "DoAnything()" with r_
4
2434
by: evenlater | last post by:
Anybody know how to prevent the annoying Access 2007 "Getting Started with Access" page from showing up when the database is closed using DoCmd.Quit? My database is used in a terminal server environment and I need to be able to prevent users from creating new databases or opening existing ones using that page. Thanks!
37
21949
by: JFKJr | last post by:
Hello everyone, I am trying to display a message box whenever a user selects a cell within the given following range using the following Access VBA code. But, my problem is the MsgBox is displaying on access application i.e., whenever I click a cell within the given following range, I have to switch to access to see MsgBox. Does anyone know how to change the focus to excel application so that I can see the MsgBox on excel application...
0
9793
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10777
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10494
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9317
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5780
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4416
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3963
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3076
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.