Server Error in '/' Application

  • Thread starter Javier Cortés Cortés
  • Start date
J

Javier Cortés Cortés

i am getting this error when i am trying to access
any file(with the ext. aspx) from my remote server.
the error is :

Server Error in '/' 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".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

Notes: The current error page you are seeing can be replaced by a custom
error page by modifying the "defaultRedirect" attribute of the application's
<customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>

dotnet framwork is installed on the server and web.config file
is also there in the root folder of the application.
i tried all the P&C with the web.config file but
same error is thrown.
can any one tell me why i am getting this message.
Thnx in advance.
 
N

Natty Gur

Hi,

Check that your virtual directory set as application.

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
 
J

Javier Cortés Cortés

My "web.config" only has:
<?xml version="1.0" encoding="utf-8"?>

<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

and get these error details:

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

Ravikanth[MVP]

Hi
create a virtual directory on the server for your App
folder.

Ravikanth
-----Original Message-----
My "web.config" only has:
<?xml version="1.0" encoding="utf-8"?>

<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

and get these error details:

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.



"Ravikanth[MVP]" <[email protected]> escribió en el mensaje
Hi
First to get error details..
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".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

Let me know what error you are getting.

Ravikanth[MVP]

-----Original Message-----
i am getting this error when i am trying to access
any file(with the ext. aspx) from my remote server.
the error is :

Server Error in '/' Application.
------------------------------------------------------
---
------------------- 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".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

Notes: The current error page you are seeing can be replaced by a custom
error page by modifying the "defaultRedirect"
attribute
of the application's
<customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>

dotnet framwork is installed on the server and web.config file
is also there in the root folder of the application.
i tried all the P&C with the web.config file but
same error is thrown.
can any one tell me why i am getting this message.
Thnx in advance.



.


.
 
S

Sudhir Darbha

Hi ,
I was getting the same error too. But thanks to
Ravikanth for his suggestion on creating a virtual
directory for the application folder. That has actually
solved my problem. Initially i just copied the appln
folder from one server to another which didn't do the job.
But, why should we have a virtual directory when we
already have an appln folder physically in wwwroot
directory. Does the interpretation ASP.NET engine is
different from accessing normal html files.
Thanks,
Sudhir.
 

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