473,382 Members | 1,814 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,382 software developers and data experts.

Runtime error while running web application on remote machine

Hi,

After deploymnet web application on web server I can access page on local
machine and login fine but when I'm trying to access web site from remote
machine I can see login page, but when I'm trying to login with correct
credentials it give me error:

Server Error in '/PDVMgr' Application.

----------------------------------------------------------------------------
----

Runtime Error

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".

ANY SUGGESTIONS AND CONCERNS???????

Thanks

Marina
Nov 19 '05 #1
10 3332
Try getting the actual error message by temporarily setting the customErrors
mode to off. That should show you the actual exception you're getting on the
remote server.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.

"Marina Anufreichik" <marina_at_pdvcorp_dot_com> wrote in message
news:uK**************@TK2MSFTNGP10.phx.gbl...
Hi,

After deploymnet web application on web server I can access page on local
machine and login fine but when I'm trying to access web site from remote
machine I can see login page, but when I'm trying to login with correct
credentials it give me error:

Server Error in '/PDVMgr' Application.

-------------------------------------------------------------------------- -- ----

Runtime Error

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".

ANY SUGGESTIONS AND CONCERNS???????

Thanks

Marina

Nov 19 '05 #2
In web config the setting for customErrors is off, but it still not
displaying

Thanks

Marina

"Shuvro Mazumder [MSFT]" <sh*****@online.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Try getting the actual error message by temporarily setting the customErrors mode to off. That should show you the actual exception you're getting on the remote server.

--
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.

"Marina Anufreichik" <marina_at_pdvcorp_dot_com> wrote in message
news:uK**************@TK2MSFTNGP10.phx.gbl...
Hi,

After deploymnet web application on web server I can access page on local machine and login fine but when I'm trying to access web site from remote machine I can see login page, but when I'm trying to login with correct
credentials it give me error:

Server Error in '/PDVMgr' Application.


--------------------------------------------------------------------------
--
----

Runtime Error

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".

ANY SUGGESTIONS AND CONCERNS???????

Thanks

Marina


Nov 19 '05 #3
Maybe the setting is overridden in the machine.config on your webserver

- Shuvro

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.

"Marina Anufreichik" <marina_at_pdvcorp_dot_com> wrote in message
news:e9**************@TK2MSFTNGP15.phx.gbl...
In web config the setting for customErrors is off, but it still not
displaying

Thanks

Marina

"Shuvro Mazumder [MSFT]" <sh*****@online.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Try getting the actual error message by temporarily setting the

customErrors
mode to off. That should show you the actual exception you're getting on

the
remote server.

--
This posting is provided "AS IS" with no warranties, and confers no

rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.

"Marina Anufreichik" <marina_at_pdvcorp_dot_com> wrote in message
news:uK**************@TK2MSFTNGP10.phx.gbl...
Hi,

After deploymnet web application on web server I can access page on local machine and login fine but when I'm trying to access web site from remote machine I can see login page, but when I'm trying to login with correct credentials it give me error:

Server Error in '/PDVMgr' Application.


--------------------------------------------------------------------------
--
----

Runtime Error

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".

ANY SUGGESTIONS AND CONCERNS???????

Thanks

Marina



Nov 19 '05 #4
Hi, Shuvro.

A setting in machine.config *cannot*
override a setting in web.config.

A setting in web.config *can*
override a setting in machine.config.


Juan T. Llibre
ASP.NET MVP
===========
"Shuvro Mazumder [MSFT]" <sh*****@online.microsoft.com> wrote in message
news:uu*************@TK2MSFTNGP11.phx.gbl...
Maybe the setting is overridden in the machine.config on your webserver

- Shuvro "Marina Anufreichik" <marina_at_pdvcorp_dot_com> wrote in message
news:e9**************@TK2MSFTNGP15.phx.gbl...
In web config the setting for customErrors is off, but it still not
displaying

Thanks

Marina

"Shuvro Mazumder [MSFT]" <sh*****@online.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
> Try getting the actual error message by temporarily setting the

customErrors
> mode to off. That should show you the actual exception you're getting
> on

the
> remote server.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no

rights.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm.
>
>
>
> "Marina Anufreichik" <marina_at_pdvcorp_dot_com> wrote in message
> news:uK**************@TK2MSFTNGP10.phx.gbl...
> > Hi,
> >
> > After deploymnet web application on web server I can access page on

local
> > machine and login fine but when I'm trying to access web site from

remote
> > machine I can see login page, but when I'm trying to login with correct > > credentials it give me error:
> >
> > Server Error in '/PDVMgr' Application.
> >
>


--------------------------------------------------------------------------
> --
> > ----
> >
> > Runtime Error
> >
> > 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".
> >
> >
> >
> > ANY SUGGESTIONS AND CONCERNS???????
> >
> >
> >
> > Thanks
> >
> > Marina
> >
> >
>
>



Nov 19 '05 #5
However, a server Admin can always enforce customErrors=RemoteOnly. That's
what I meant.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:et**************@TK2MSFTNGP11.phx.gbl...
Hi, Shuvro.

A setting in machine.config *cannot*
override a setting in web.config.

A setting in web.config *can*
override a setting in machine.config.


Juan T. Llibre
ASP.NET MVP
===========
"Shuvro Mazumder [MSFT]" <sh*****@online.microsoft.com> wrote in message
news:uu*************@TK2MSFTNGP11.phx.gbl...
Maybe the setting is overridden in the machine.config on your webserver

- Shuvro

"Marina Anufreichik" <marina_at_pdvcorp_dot_com> wrote in message
news:e9**************@TK2MSFTNGP15.phx.gbl...
In web config the setting for customErrors is off, but it still not
displaying

Thanks

Marina

"Shuvro Mazumder [MSFT]" <sh*****@online.microsoft.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl...
> Try getting the actual error message by temporarily setting the
customErrors
> mode to off. That should show you the actual exception you're getting
> on
the
> remote server.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm.
>
>
>
> "Marina Anufreichik" <marina_at_pdvcorp_dot_com> wrote in message
> news:uK**************@TK2MSFTNGP10.phx.gbl...
> > Hi,
> >
> > After deploymnet web application on web server I can access page on
local
> > machine and login fine but when I'm trying to access web site from
remote
> > machine I can see login page, but when I'm trying to login with

correct
> > credentials it give me error:
> >
> > Server Error in '/PDVMgr' Application.
> >
>
-------------------------------------------------------------------------

-
> --
> > ----
> >
> > Runtime Error
> >
> > 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".
> >
> >
> >
> > ANY SUGGESTIONS AND CONCERNS???????
> >
> >
> >
> > Thanks
> >
> > Marina
> >
> >
>
>



Nov 19 '05 #6
Below is the section you need to put in machine.config. Make sure you remove
the existing <customerrors> section and then use the below. It's in a
location allowOverride="false" to prevent users from overriding the setting
in their web.config.

<location allowOverride="false">
<system.web>
<!--
customErrors Attributes:
mode="[On|Off|RemoteOnly]"
On: Always display custom errors
Off: Always display ASP.NET error pages
RemoteOnly: Display custom errors to remote clients and ASP.NET
errors to localhost
defaultRedirect="url" - Url to redirect client to when an error
occurs
-->
<customErrors mode="Off" />
</system.web>
</location>

Check if this is set in your machine.config on the server?
- Shuvro

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:et**************@TK2MSFTNGP11.phx.gbl...
Hi, Shuvro.

A setting in machine.config *cannot*
override a setting in web.config.

A setting in web.config *can*
override a setting in machine.config.


Juan T. Llibre
ASP.NET MVP
===========
"Shuvro Mazumder [MSFT]" <sh*****@online.microsoft.com> wrote in message
news:uu*************@TK2MSFTNGP11.phx.gbl...
Maybe the setting is overridden in the machine.config on your webserver

- Shuvro

"Marina Anufreichik" <marina_at_pdvcorp_dot_com> wrote in message
news:e9**************@TK2MSFTNGP15.phx.gbl...
In web config the setting for customErrors is off, but it still not
displaying

Thanks

Marina

"Shuvro Mazumder [MSFT]" <sh*****@online.microsoft.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl...
> Try getting the actual error message by temporarily setting the
customErrors
> mode to off. That should show you the actual exception you're getting
> on
the
> remote server.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm.
>
>
>
> "Marina Anufreichik" <marina_at_pdvcorp_dot_com> wrote in message
> news:uK**************@TK2MSFTNGP10.phx.gbl...
> > Hi,
> >
> > After deploymnet web application on web server I can access page on
local
> > machine and login fine but when I'm trying to access web site from
remote
> > machine I can see login page, but when I'm trying to login with

correct
> > credentials it give me error:
> >
> > Server Error in '/PDVMgr' Application.
> >
>
-------------------------------------------------------------------------

-
> --
> > ----
> >
> > Runtime Error
> >
> > 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".
> >
> >
> >
> > ANY SUGGESTIONS AND CONCERNS???????
> >
> >
> >
> > Thanks
> >
> > Marina
> >
> >
>
>



Nov 19 '05 #7
Shuvro,

with all due respect, wouldn't setting
<location allowOverride="false">
affect *all* websites in a server ?

The default machine.config setting is :
<location allowOverride="true">

That would imply that any web.config setting would
override any machine.config setting, as it should be.

Simply setting <customErrors mode="Off" /> in an application's
web.config would do the same job, unless the setting in
machine.config has been changed to <location allowOverride="false">
( the setting you're recommending).

I'd really hesitate to recommend *any* user to change
machine.config at all, especially to override default settings
which affect *all* websites in a machine.

It's vastly preferrable to override any setting in machine.config
with a setting in web.config, as opposed to establishing a
machine-wide override in machine.config.

Juan T. Llibre
ASP.NET MVP
===========
"Shuvro Mazumder [MSFT]" <sh*****@online.microsoft.com> wrote in message
news:%2*****************@TK2MSFTNGP15.phx.gbl...
Below is the section you need to put in machine.config. Make sure you
remove
the existing <customerrors> section and then use the below. It's in a
location allowOverride="false" to prevent users from overriding the
setting
in their web.config.

<location allowOverride="false">
<system.web>
<!--
customErrors Attributes:
mode="[On|Off|RemoteOnly]"
On: Always display custom errors
Off: Always display ASP.NET error pages
RemoteOnly: Display custom errors to remote clients and ASP.NET
errors to localhost
defaultRedirect="url" - Url to redirect client to when an error
occurs
-->
<customErrors mode="Off" />
</system.web>
</location>

Check if this is set in your machine.config on the server?
- Shuvro "Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:et**************@TK2MSFTNGP11.phx.gbl...
Hi, Shuvro.

A setting in machine.config *cannot*
override a setting in web.config.

A setting in web.config *can*
override a setting in machine.config.


Juan T. Llibre
ASP.NET MVP
===========
"Shuvro Mazumder [MSFT]" <sh*****@online.microsoft.com> wrote in message
news:uu*************@TK2MSFTNGP11.phx.gbl...
> Maybe the setting is overridden in the machine.config on your webserver
>
> - Shuvro

> "Marina Anufreichik" <marina_at_pdvcorp_dot_com> wrote in message
> news:e9**************@TK2MSFTNGP15.phx.gbl...
>> In web config the setting for customErrors is off, but it still not
>> displaying
>>
>> Thanks
>>
>> Marina
>>
>> "Shuvro Mazumder [MSFT]" <sh*****@online.microsoft.com> wrote in message >> news:%2****************@TK2MSFTNGP14.phx.gbl...
>> > Try getting the actual error message by temporarily setting the
>> customErrors
>> > mode to off. That should show you the actual exception you're
>> > getting
>> > on
>> the
>> > remote server.
>> >
>> > --
>> > This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> > Use of included script samples are subject to the terms specified at
>> > http://www.microsoft.com/info/cpyright.htm.
>> >
>> >
>> >
>> > "Marina Anufreichik" <marina_at_pdvcorp_dot_com> wrote in message
>> > news:uK**************@TK2MSFTNGP10.phx.gbl...
>> > > Hi,
>> > >
>> > > After deploymnet web application on web server I can access page
>> > > on
>> local
>> > > machine and login fine but when I'm trying to access web site from
>> remote
>> > > machine I can see login page, but when I'm trying to login with
> correct
>> > > credentials it give me error:
>> > >
>> > > Server Error in '/PDVMgr' Application.
>> > >
>> >
>>

------------------------------------------------------------------------- - >> > --
>> > > ----
>> > >
>> > > Runtime Error
>> > >
>> > > 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".
>> > >
>> > >
>> > >
>> > > ANY SUGGESTIONS AND CONCERNS???????
>> > >
>> > >
>> > >
>> > > Thanks
>> > >
>> > > Marina
>> > >
>> > >
>> >
>> >
>>
>>
>
>




Nov 19 '05 #8
I was not recommending any solution. I was trying to help Marina with her
original problem, where she observed that changing the setting on the
web.config for customErrors key *DID NOT* change the behavior. My suggestion
was to ask the server Admin on which she was deploying her solution, if such
a setting have been made on the machine.config.

I agree with your observation that changes to machine.config would affect
all websites. However, the location allowOverride="False" allows the server
administrator to specify default behavior for keys they ABSOLUTELY do not
want their users to override. Think about an ISP Scenario providing ASP.Net
web hosting. For security reasons, they might want to not allow users to
have customErrors mode="Off" set (that's how my ISP has their server set
up). In such cases it makes more sense to change the settings in
machine.config and not rely on individual applications having the setting in
their web.config.

Hope this helps
- Shuvro

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OA**************@TK2MSFTNGP09.phx.gbl...
Shuvro,

with all due respect, wouldn't setting
<location allowOverride="false">
affect *all* websites in a server ?

The default machine.config setting is :
<location allowOverride="true">

That would imply that any web.config setting would
override any machine.config setting, as it should be.

Simply setting <customErrors mode="Off" /> in an application's
web.config would do the same job, unless the setting in
machine.config has been changed to <location allowOverride="false">
( the setting you're recommending).

I'd really hesitate to recommend *any* user to change
machine.config at all, especially to override default settings
which affect *all* websites in a machine.

It's vastly preferrable to override any setting in machine.config
with a setting in web.config, as opposed to establishing a
machine-wide override in machine.config.

Juan T. Llibre
ASP.NET MVP
===========
"Shuvro Mazumder [MSFT]" <sh*****@online.microsoft.com> wrote in message
news:%2*****************@TK2MSFTNGP15.phx.gbl...
Below is the section you need to put in machine.config. Make sure you
remove
the existing <customerrors> section and then use the below. It's in a
location allowOverride="false" to prevent users from overriding the
setting
in their web.config.

<location allowOverride="false">
<system.web>
<!--
customErrors Attributes:
mode="[On|Off|RemoteOnly]"
On: Always display custom errors
Off: Always display ASP.NET error pages
RemoteOnly: Display custom errors to remote clients and ASP.NET
errors to localhost
defaultRedirect="url" - Url to redirect client to when an error
occurs
-->
<customErrors mode="Off" />
</system.web>
</location>

Check if this is set in your machine.config on the server?
- Shuvro

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:et**************@TK2MSFTNGP11.phx.gbl...
Hi, Shuvro.

A setting in machine.config *cannot*
override a setting in web.config.

A setting in web.config *can*
override a setting in machine.config.


Juan T. Llibre
ASP.NET MVP
===========
"Shuvro Mazumder [MSFT]" <sh*****@online.microsoft.com> wrote in message news:uu*************@TK2MSFTNGP11.phx.gbl...
> Maybe the setting is overridden in the machine.config on your webserver >
> - Shuvro

> "Marina Anufreichik" <marina_at_pdvcorp_dot_com> wrote in message
> news:e9**************@TK2MSFTNGP15.phx.gbl...
>> In web config the setting for customErrors is off, but it still not
>> displaying
>>
>> Thanks
>>
>> Marina
>>
>> "Shuvro Mazumder [MSFT]" <sh*****@online.microsoft.com> wrote in

message
>> news:%2****************@TK2MSFTNGP14.phx.gbl...
>> > Try getting the actual error message by temporarily setting the
>> customErrors
>> > mode to off. That should show you the actual exception you're
>> > getting
>> > on
>> the
>> > remote server.
>> >
>> > --
>> > This posting is provided "AS IS" with no warranties, and confers no >> rights.
>> > Use of included script samples are subject to the terms specified at >> > http://www.microsoft.com/info/cpyright.htm.
>> >
>> >
>> >
>> > "Marina Anufreichik" <marina_at_pdvcorp_dot_com> wrote in message
>> > news:uK**************@TK2MSFTNGP10.phx.gbl...
>> > > Hi,
>> > >
>> > > After deploymnet web application on web server I can access page
>> > > on
>> local
>> > > machine and login fine but when I'm trying to access web site from >> remote
>> > > machine I can see login page, but when I'm trying to login with
> correct
>> > > credentials it give me error:
>> > >
>> > > Server Error in '/PDVMgr' Application.
>> > >
>> >
>>
------------------------------------------------------------------------ - -
>> > --
>> > > ----
>> > >
>> > > Runtime Error
>> > >
>> > > 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".
>> > >
>> > >
>> > >
>> > > ANY SUGGESTIONS AND CONCERNS???????
>> > >
>> > >
>> > >
>> > > Thanks
>> > >
>> > > Marina
>> > >
>> > >
>> >
>> >
>>
>>
>
>



Nov 19 '05 #9
re:
I was not recommending any solution.
You sure could have fooled me.

Didn't you make this recommendation ?
Below is the section you need to put in machine.config.
Make sure you remove the existing <customerrors> section
and then use the below. It's in a location allowOverride="false"
to prevent users from overriding the setting in their web.config.
Maybe you don't realize that you did recommend that change
( that has happened to me in the past ), but when you ask
someone to "put" something in machine.config and to
"make sure you remove the existing <customerrors> section",
you sure were recommending a solution : to edit machine.config.

Later, you said this : Check if this is set in your machine.config on the server?
Which is different than your earlier recommendation :
Below is the section you need to put in machine.config.
Make sure you remove the existing <customerrors>
section and then use the below.


That she check for that setting was a good recommendation,
if she has access to machine.config (which I doubt, since she's
talking about a web server at her ISP), but editing machine.config
was not a good recommendation.

If <location allowOverride="false"> *had* been placed in
machine.config by her ISP, she wouldn't have access to
machine.config, anyway.

She would only have access to her application directory and,
if that setting *had* been placed there by her ISP for security
reasons, in the scenario you describe, it's highly unlikely that
her ISP would change it back to true for her, violating the
security rule you invoke as the reason for that setting having
been placed there by her ISP.

That said, Marina hasn't popped back in here to tell us how she did.
Let's hope she was able to work around the problem.


Juan T. Llibre
ASP.NET MVP
===========
"Shuvro Mazumder [MSFT]" <sh*****@online.microsoft.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...I was not recommending any solution. I was trying to help Marina with her
original problem, where she observed that changing the setting on the
web.config for customErrors key *DID NOT* change the behavior. My
suggestion
was to ask the server Admin on which she was deploying her solution, if
such
a setting have been made on the machine.config.

I agree with your observation that changes to machine.config would affect
all websites. However, the location allowOverride="False" allows the
server
administrator to specify default behavior for keys they ABSOLUTELY do not
want their users to override. Think about an ISP Scenario providing
ASP.Net
web hosting. For security reasons, they might want to not allow users to
have customErrors mode="Off" set (that's how my ISP has their server set
up). In such cases it makes more sense to change the settings in
machine.config and not rely on individual applications having the setting
in
their web.config.

Hope this helps
- Shuvro

--
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OA**************@TK2MSFTNGP09.phx.gbl...
Shuvro,

with all due respect, wouldn't setting
<location allowOverride="false">
affect *all* websites in a server ?

The default machine.config setting is :
<location allowOverride="true">

That would imply that any web.config setting would
override any machine.config setting, as it should be.

Simply setting <customErrors mode="Off" /> in an application's
web.config would do the same job, unless the setting in
machine.config has been changed to <location allowOverride="false">
( the setting you're recommending).

I'd really hesitate to recommend *any* user to change
machine.config at all, especially to override default settings
which affect *all* websites in a machine.

It's vastly preferrable to override any setting in machine.config
with a setting in web.config, as opposed to establishing a
machine-wide override in machine.config.

Juan T. Llibre
ASP.NET MVP
===========
"Shuvro Mazumder [MSFT]" <sh*****@online.microsoft.com> wrote in message
news:%2*****************@TK2MSFTNGP15.phx.gbl...
> Below is the section you need to put in machine.config. Make sure you
> remove
> the existing <customerrors> section and then use the below. It's in a
> location allowOverride="false" to prevent users from overriding the
> setting
> in their web.config.
>
> <location allowOverride="false">
> <system.web>
> <!--
> customErrors Attributes:
> mode="[On|Off|RemoteOnly]"
> On: Always display custom errors
> Off: Always display ASP.NET error pages
> RemoteOnly: Display custom errors to remote clients and

ASP.NET > errors to localhost
> defaultRedirect="url" - Url to redirect client to when an
> error
> occurs
> -->
> <customErrors mode="Off" />
> </system.web>
> </location>
>
> Check if this is set in your machine.config on the server?
> - Shuvro

> "Juan T. Llibre" <no***********@nowhere.com> wrote in message
> news:et**************@TK2MSFTNGP11.phx.gbl...
>> Hi, Shuvro.
>>
>> A setting in machine.config *cannot*
>> override a setting in web.config.
>>
>> A setting in web.config *can*
>> override a setting in machine.config.
>>
>>
>>
>>
>> Juan T. Llibre
>> ASP.NET MVP
>> ===========
>> "Shuvro Mazumder [MSFT]" <sh*****@online.microsoft.com> wrote in message >> news:uu*************@TK2MSFTNGP11.phx.gbl...
>> > Maybe the setting is overridden in the machine.config on your webserver >> >
>> > - Shuvro
>>
>> > "Marina Anufreichik" <marina_at_pdvcorp_dot_com> wrote in message
>> > news:e9**************@TK2MSFTNGP15.phx.gbl...
>> >> In web config the setting for customErrors is off, but it still not
>> >> displaying
>> >>
>> >> Thanks
>> >>
>> >> Marina
>> >>
>> >> "Shuvro Mazumder [MSFT]" <sh*****@online.microsoft.com> wrote in
> message
>> >> news:%2****************@TK2MSFTNGP14.phx.gbl...
>> >> > Try getting the actual error message by temporarily setting the
>> >> customErrors
>> >> > mode to off. That should show you the actual exception you're
>> >> > getting
>> >> > on
>> >> the
>> >> > remote server.
>> >> >
>> >> > --
>> >> > This posting is provided "AS IS" with no warranties, and confers no >> >> rights.
>> >> > Use of included script samples are subject to the terms specified at >> >> > http://www.microsoft.com/info/cpyright.htm.
>> >> >
>> >> >
>> >> >
>> >> > "Marina Anufreichik" <marina_at_pdvcorp_dot_com> wrote in message
>> >> > news:uK**************@TK2MSFTNGP10.phx.gbl...
>> >> > > Hi,
>> >> > >
>> >> > > After deploymnet web application on web server I can access
>> >> > > page
>> >> > > on
>> >> local
>> >> > > machine and login fine but when I'm trying to access web site from >> >> remote
>> >> > > machine I can see login page, but when I'm trying to login with
>> > correct
>> >> > > credentials it give me error:
>> >> > >
>> >> > > Server Error in '/PDVMgr' Application.
>> >> > >
>> >> >
>> >>
>>

------------------------------------------------------------------------ - > -
>> >> > --
>> >> > > ----
>> >> > >
>> >> > > Runtime Error
>> >> > >
>> >> > > 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".
>> >> > >
>> >> > >
>> >> > >
>> >> > > ANY SUGGESTIONS AND CONCERNS???????
>> >> > >
>> >> > >
>> >> > >
>> >> > > Thanks
>> >> > >
>> >> > > Marina
>> >> > >
>> >> > >
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Nov 19 '05 #10


Please let me know whether the issue has been resolved. I am having the
same problem and looking forward for the solution.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #11

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

Similar topics

4
by: Steve Meier | last post by:
Environment: SQLServer Developer Edition on Machine A Enterprise Manager running on remote machine B Both machines are in the same subnet I open Enterprise Mgr on Machine A, right click...
5
by: Roger | last post by:
I would like to get a list of running processes on a remote machine. How is this possible via VB.Net? Is it possible? Can someone point me in the right direction. thanks, rog
9
by: Marina Anufreichik | last post by:
Hi, After deploymnet web application on web server I can access page on local machine and login fine but when I'm trying to access web site from remote machine I can see login page, but when I'm...
2
by: Gary | last post by:
Hi, there, I have an application running on remote machine, and would like to close it gracefully. Like a human go to there, push the stop button, and close it after several seconds. How to...
1
by: vighnesh | last post by:
Hi All I am dealing a project in ASP.NET in which I have to establish a connection to SQL Server 2000 database,where the database was located on a remote system. For this I have used...
1
by: Jason | last post by:
I've a c# app that I execute on a remote machine, which works as I expect it to, but when I encounter an error on the remote machine how do I know what's going on, since it's a remote app? For...
1
by: Rags1277 | last post by:
Hi, I just created CAB installer using visual studio 2008. It is installing properly. When i run the application it throws "The file cannot be opened. Either it is not signed with trusted...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.