You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

You may receive the following error message while browsing an asp.net application


"Server Error in '/application name' 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 tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off". "



This error might occur due to two scenarios.

1. There is an error in the application's logic with the inputformat, Type etc., and you have set the Custom Error Mode in the web.config to "On" and not specified a default redirect error page.

2. The web.config file is not well formed or having invalid characters and the application is not able to pick up the settings from the same.

Solution

1. Set the custom error mode to "Off" to view the error. After rectifying it and before deployment, change it to "On" and specify a default error page, as follows:-

<customErrors defaultRedirect="ErrorPage.aspx" mode="On">

</customErrors>

such that your users will not be able to see the actual error and get your friendly error page where you can politely say "An error has occured! Sorry for the inconvenience ..." .

2. If the above solution is not working (i.e. even after setting the custom error mode to On, the same "Server Error" occurs, then the likely chance is that your web.config file is not well formed and has invalid characters etc.,

To resolve, it copy paste the contents of the file to a notepad, save it as an xml file and try to browse the xml file in the browser. If the xml file is unable to be rendered by the browser and throws error, then you can find the place where the tags are not well formed or invalid character(s) exist and rectify them.

Things worth noting is Web.config is case sensitive and even trailing / leading spaces can cause the above error.

This article applies to .NET - ASP.NET 1.0, 1.1 Versions.

posted @ Monday, April 25, 2005 7:51 AM

Print

Comments on this entry:

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Rupali Asodekar at 9/24/2005 8:13 AM
Gravatar
I have made the changes given above but still the problem precedes.

Is any changes of security to be made.because i am use to asp but first time trying aspx pages on site.

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by safertr at 11/28/2005 11:08 AM
Gravatar
this is not helpful

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by tim at 11/30/2005 11:16 AM
Gravatar
copy/pasting into a .xml file worked. thanks for the tip

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Ravi at 1/2/2006 1:57 AM
Gravatar
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".

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by ASP Newbie at 2/8/2006 3:29 AM
Gravatar
What helped me was to copy the web.config file and then rename it as web.xml.
I had been earlier setting the mode attribute to off but this was not working, but as soon as I loaded this web.xml file in my browser, I saw that the default as created by VS 2005 was to comment this out. I had been looking at the line where the mode attribute was and not at the lines below. Loading web.config as an XML file immediately showed the commenting.

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Yashar at 2/10/2006 7:38 PM
Gravatar
I see, but it doesn't helpfull.

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by jim at 2/27/2006 1:04 PM
Gravatar
<div style="visibility:hidden">
<h1>hi</h1></div>
really nice website

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Jibran at 3/30/2006 3:41 PM
Gravatar
I got the same error, and I emailed and asked my host to set the application directory for asp.net and also give full control to asp.net account on my domian folder.. and it worked...

there was nothing wrong in the web.config file and was running perfect locally.

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Raja at 4/1/2006 4:47 PM
Gravatar
Ok it is working (reirect to cutom error page) for me.How can i solve the actual pbm.

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by timothy t nguyen at 8/4/2006 2:41 PM
Gravatar
i had the same problem too. but after installed .net framework 2.0, everything starts to work.

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Sathya Narayanan at 8/20/2006 4:43 AM
Gravatar
Friends at last i ve found out the solution for this error.

This is nothing but u have to Check the enable debugging option in ur Web site's control panel.
Sathya

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Sathya Narayanan at 8/20/2006 4:46 AM
Gravatar
Friends at last i ve found out the solution for this error.

This is nothing but u have to Check the enable debugging option in ur Web site's control panel's asp.net option.
Sathya

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Rathi at 8/29/2006 8:29 AM
Gravatar
not working 4 m3

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by rasmita at 9/6/2006 4:23 AM
Gravatar
i set the mode opton in customerror tag to false after i got the following error

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'Microsoft.SharePoint.ApplicationPages.GlobalAdminApplication'.

Source Error:


Line 1: <%@ Application Language="C#" Inherits="Microsoft.SharePoint.ApplicationPages.GlobalAdminApplication" %>



Source File: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\template\admin\1033\global.asax Line: 1
can anyone please help??

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by rasmita at 9/6/2006 4:37 AM
Gravatar
even i copied the file content and saved it as web.xml file and browsed it.. but stitl the error persists..

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by francesco at 1/3/2007 10:37 AM
Gravatar

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Rhys at 6/18/2007 2:22 PM
Gravatar
I solved this problem. My host had my server switched to .NET 1.1 and had 2.0 and 1.1 Apps in the same APPLICATION POOL

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by srinivasan at 8/14/2007 10:07 PM
Gravatar
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".


# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Dinesh Patankar at 1/3/2008 2:49 AM
Gravatar
I got the same error(Server Error in '/' Application.). I have chekched out through turning off the mode( <customErrors defaultRedirect="ErrorPage.aspx" mode="Off">). and it shows some errors in the code but the same code is running on the LOCALHOST successfully but NOT ON THE WEB SERVER. Can you please reply me? I will be really appreciate for the same. Is there any server setting for the same?

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Nilesh at 1/7/2008 6:46 PM
Gravatar
Hey i found out the solution. this happens only because if we do not CREATE application in IIS.

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Praveen at 1/15/2008 12:23 AM
Gravatar
I am getting the same error even after making above all changes...
PS:Im wrkng in Remote server.

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by rohini at 1/24/2008 4:15 PM
Gravatar
Description: An unhandled exception occured during the execution of current web request.
Exception details : System.invalid operation exception

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by ImageIsland at 1/28/2008 7:09 PM
Gravatar
This is usually caused by the fact that either your web site hasnt been set as an IIs application in the IIs properties box, or a subfolder that must be an application, hasnt been designated as such. The other is the basic read permissions for the ASP.NET or Worker process account hasnt been set on the phyiscal folders in your site, starting at your web root folder on the server. Remember, in ASP.NET, your root of your web site must have basic read access for the ASP user identity, and be and set as application in IIs. This can sometimes get screwed up and chnages are made to various folders in your site.

Lastly you may be trying to run ASP.NET 2.0 code on a server setup for 1.0. Thats also common. These are all IIs issues your host must fix, if you are paying for third party hosting and cannot access IIs to change it.

Try removing then adding back your web site application on the web root, and that should fix most issues.

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Pat Craig at 1/31/2008 10:04 AM
Gravatar
I keep getting this error whenever I try to login to a customer account on an internet website. The website owner has not had anyone else complain of this problem and I had a friend try accessing their site to see what happens with their browser.

The occurance only happens when I'm trying to use their login or checkout (of merchandise). Once I hit this page, I can use my back button and return to the page I was last viewing, but if I try to navigate to any other page in the website, I will then only get the same error message for each page I try to view.

If I clear my history, cookies, temp internet pages on my computer, I can then view any of the pages, until once again, I try to login to my customer account or try to check out with an item I've placed in the shopping card.

What is causing this to occur and is it something I can change in settings on my computer, or is it something the website owner needs to change in their website configuration?

Thanks for any help you can offer.

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by devi at 1/31/2008 7:54 PM
Gravatar
I got the same error(Server Error in '/' Application.). I have chekched out through turning off the mode( <customErrors defaultRedirect="ErrorPage.aspx" mode="Off">). and it shows some errors in the code but the same code is running on the LOCALHOST successfully but NOT ON THE WEB SERVER. Can you please reply me? I will be really appreciate for the same. Please any one help me to rectify this error soon

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by noname at 2/25/2008 3:49 AM
Gravatar
I also got this error and checked all the things above, but no answere could fix my problem. Only localhost everything worked perfectly but on remote server this error is shown all the time. Can please anybody help me finding a solution for my problem? I really don't know what I could do afterall.

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by natty at 3/1/2008 6:17 AM
Gravatar
i deleted my web.config file - that worked lol

# Trying to upload .aspx webpages on FTP site getting server error in '/' How to install .net framework on Website's Ftp server

Left by Pooja at 4/11/2008 11:10 PM
Gravatar
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>


# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by sandeep at 5/5/2008 8:54 PM
Gravatar
plz help me

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by sanjay kumar at 5/7/2008 6:05 PM
Gravatar
I have same error on remote server and not able to solved it pls help me on this topic
Urgent

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Sal at 5/10/2008 4:45 AM
Gravatar
For me the problem was i had ASP.NET version 1.1 instead of 2.0.
In ISS - Website Properties - ASP.NET tab... select version

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Els at 5/15/2008 10:21 PM
Gravatar
I have the same error, it is possible that there is something wrong with the settings on the host machine, if that is the problem there is nothing you can do unless your host machine is at your place. A solution then is to send a mail to your provider with the comment that something is wrong on the host

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Rashida at 7/23/2008 8:36 PM
Gravatar
Server Error in '/' Application.

Hi,

I am getting this error when I am trying to access by web site on server but if I use the same code on local host everthing works fine. It is only on web server taht I get error. I think it is due to IIS configuration, but exactly what I am not getting it. Pls help I am new to it.

Thanks in advance

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Ashwini at 8/3/2008 11:53 PM
Gravatar
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>

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by ty at 10/6/2008 6:51 AM
Gravatar
alrite this error message is really getting on my nerves and everybody that comments to the problem is probably giving good advise with the host or the settings or whatever, but im not very good with computer lingo so if any body could point out very specific step by step directions to rectify this message would be haild as king of comp. in my books

-peace and thanks-

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Amrit Kaur at 10/15/2008 6:50 PM
Gravatar
Hi,
i am getting this error when I am trying to access by web site on server but if I use the same code on local host everthing works fine. Please help in solving this problem. thanks in advance

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by mehter at 12/3/2008 1:47 AM
Gravatar
message is really getting on my nerves and everybody that comments to the problem is probably giving good advise with the host or the settings or whatever, but im not very good with computer lingo so if any body c

# Failed to load the .Net Framework

Left by Jitendra at 12/18/2008 4:51 PM
Gravatar
hi ,
i came accross this problem when i was running the application.
wat shud i do?

# Failed to load the .Net Framework

Left by Jitendra at 12/18/2008 4:51 PM
Gravatar
hi ,
i came accross this problem when i was running the application.
wat shud i do?
VGIPL

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Tarun at 1/19/2009 4:34 PM
Gravatar
I have got same error on remote server and not able to solved it pls help me on this topic
Urgent

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Tarun at 1/19/2009 4:35 PM
Gravatar
Hi I have got this error on remote server and not able to solved it pls help me on this topic
Urgent

#  Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by shweta at 3/24/2009 4:34 PM
Gravatar
i'mnot able to remove this error even by using above sugessions?
kindly guide me........
WHAT MORE CHAGES SHOUD B MADE IN web.config

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by sravan at 4/10/2009 3:57 AM
Gravatar
I was bitten by this error.
Solution: Make sure you have Machine key tag in your Web.config file in<System.Web> section. This is the cause of the error from my knowledge.

Happy Programming...

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by elba at 4/16/2009 8:28 PM
Gravatar
jaaaa , Cuando consulto una Acción "en la aplicacion' con Filtro Avanzado e intento pasar a otras de las opciones el sistema me envía Server Error in '/ISO9001? Application' y se van congelando la aplicaciones

# You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by Khushboo at 4/23/2009 2:26 PM
Gravatar
I AM FACING THE SAME PROBLEM.Can somebody help, as I have already tried the changes that had been given in the above posts, but still I am getting the same error.

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by vyom at 4/30/2009 11:49 AM
Gravatar
i m getting this when asscesing two new pages added on the my current website. when i click the link to that pages i mgetting this error only yhse two pages r ginvfing error . other r working fine.

can any body help me.

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by CJ at 5/3/2009 1:45 PM
Gravatar
Thank you to Rhys and his post on 6/18/2007:
"I solved this problem. My host had my server switched to .NET 1.1 and had 2.0 and 1.1 Apps in the same APPLICATION POOL "

This solved it. For everyone else, you need to have admin access to IIS to solve this one. If you don't, ask your host to fix it.

What you/they need to do is in IIS, create separate 'Application Pools' for each version of .Net. So, one for 1.1, another for 2.0 and another for 3.0 etc.

Then, you/they need to go into the properties in IIS for each website, click the 'ASP.Net' tab and make sure that each site that is in the same Application Pool is set to use the same version of .Net.

That's it.

# re: You may receive the Error Message "Server Error in '/application name' Application" while browsing an asp.net application

Left by JOey Orating at 5/16/2009 1:32 AM
Gravatar
right click the your web on the IIS.. then go to properties... and on the applicationpool -- select the mssharePointapppool.. and the asp.net version is 2... it really works on me.. thanks... hope yours will run also....

Your comment:



 (will not be displayed)


 
 
 
 

Live Comment Preview:

 
«July»
SunMonTueWedThuFriSat
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678