Web.config

N

Neven Klofutar

Hi,

I get this message when working on different sites:
Description: An application error occurred on the server. The current custom
error settings for this application prevent the details of the application
error from being viewed remotely (for security reasons). It could, however,
be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable
on remote machines, please create a <customErrors> tag within a "web.config"
configuration file located in the root directory of the current web
application. This <customErrors> tag should then have its "mode" attribute
set to "Off".


I don't know how to fix this, but "This <customErrors> tag should then have
its "mode" attribute set to
"Off"." is not working ... Is there some option under IIS or ????

Thanx, Neven
 
G

Guest

hi
are u saying u set the mode attribute of customErrors tag to Off and dont
have an impact
regards
Anzil
 
N

Neven Klofutar

Yup,

When I load the page on the local server I can see page without error, but
when I deploy project on the actual web server, the page crashes, and I
can't see the error even when I set customErrors to Off.
Is there something else I need to setup in the web.config file ?

Neven
 
A

Andreas Håkansson

I got the impression he doesnt know where to change the customError value
for his project :-D

If this is the case then you have a file in your project (should have, if
not then add
one with VS.NET) called web.config. This is an xml based configuration file
for
your site. Open it and find the customErrors tag and change the value.

If this is not the case then just ignore this messade :)

HTH,

Andreas
 
A

Andreas Håkansson

Never,

Sound like there are some configuration issue on the remote server. This
could
be a wide range of problems. You should do a search in these groups and on¨
google to get some ideas.

/Andreas
 
N

Neven Klofutar

Is there something I need to setup in my webserver reguarding virtual dir
maybe ?

Neven
 
N

Neven Klofutar

This is my web.config

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

<configuration>


<system.web>

<!-- CUSTOM ERROR MESSAGES

Set customErrors mode="On" or "RemoteOnly" to enable custom error messages,
"Off" to disable.

Add <error> tags for each of the errors you want to handle.

"On" Always display custom (friendly) messages.

"Off" Always display detailed ASP.NET error information.

"RemoteOnly" Display custom (friendly) messages only to users not running

on the local Web server. This setting is recommended for security purposes,
so

that you do not display application detail information to remote clients.

-->

<customErrors

mode="Off"

/>

<!-- AUTHENTICATION

This section sets the authentication policies of the application. Possible
modes are "Windows",

"Forms", "Passport" and "None"

"None" No authentication is performed.

"Windows" IIS performs authentication (Basic, Digest, or Integrated Windows)
according to

its settings for the application. Anonymous access must be disabled in IIS.

"Forms" You provide a custom form (Web page) for users to enter their
credentials, and then

you authenticate them in your application. A user credential token is stored
in a cookie.

"Passport" Authentication is performed via a centralized authentication
service provided

by Microsoft that offers a single logon and core profile services for member
sites.

-->

<authentication mode="Windows" />

<!-- AUTHORIZATION

This section sets the authorization policies of the application. You can
allow or deny access

to application resources by user or role. Wildcards: "*" mean everyone, "?"
means anonymous

(unauthenticated) users.

-->

<authorization>

<allow users="*" /> <!-- Allow all users -->

<!-- <allow users="[comma separated list of users]"

roles="[comma separated list of roles]"/>

<deny users="[comma separated list of users]"

roles="[comma separated list of roles]"/>

-->

</authorization>



<!-- GLOBALIZATION

This section sets the globalization settings of the application.

-->

<globalization

requestEncoding="utf-8"

responseEncoding="utf-8"

/>


</system.web>

</configuration>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,807
Latest member
ryef

Latest Threads

Top