blank files hitting runtime error.

E

Eric Layman

Hi,

We have a remote webhost here that runs dotnet.

Interestingly, it is not able to parse any aspx files

It will show a run time error even if the aspx file is blank or doesnt even
exist. I played around with web.config but nothing happens.

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

My web.config:

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

<configuration>

<system.web>

<customErrors mode="Off"/>

<globalization requestEncoding="utf-8" responseEncoding="utf-8"

culture="en-GB" />

</system.web>

</configuration>
 
D

Damien

Hi,

We have a remote webhost here that runs dotnet.

Interestingly, it is not able to parse any aspx files

It will show a run time error even if the aspx file is blank or doesnt even
exist. I played around with web.config but nothing happens.

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

My web.config:

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

<configuration>

<system.web>

<customErrors mode="Off"/>

<globalization requestEncoding="utf-8" responseEncoding="utf-8"

culture="en-GB" />

</system.web>

</configuration>


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

----------------------------------------------------------
color]

Frequently, if you've followed the advice of the generic error page
(to set customErrors to off), but you're still receiving the generic
error page, it tends to indicate that your web.config isn't the one
that's being applied. This can be caused if your application is
sitting in a (virtual) directory below another site, but it's
(virtual) directory hasn't been marked as an application in IIS.

Damien
 

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

Top