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

why 'Server Error in Application' occuring?

8
I'm encountering this error while attempting to run my application. Not always this error is occuring. Without any change in code itself the same application was running previously.


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>
Jun 14 '07 #1
6 2088
nateraaaa
663 Expert 512MB
I'm encountering this error while attempting to run my application. Not always this error is occuring. Without any change in code itself the same application was running previously.


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>
Was this application moved to a server with different authentication requirements? Have you tried placing a break point in the page load of this application and stepping through the code to see if it fails anywhere?

Nathan
Jun 14 '07 #2
TRScheel
638 Expert 512MB
What nathan said, and allow errors to be shown so you can gather more information about the problem
Jun 14 '07 #3
Frinavale
9,735 Expert Mod 8TB
I don't think that you will be able to place any break points in your application once it has been deployed to a server...debugging will be trick.

However, we need to see a better error message than the one you are getting so I suggest temporarily changing your web.config so that this line:
Expand|Select|Wrap|Line Numbers
  1. <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
is changed to
Expand|Select|Wrap|Line Numbers
  1. <customErrors mode="Off" defaultRedirect="mycustompage.htm"/>
  2.  
Once you make the changes, deploy your website and try to access it again...then post the error message that you get.

Thanks

-Frinny
Jun 14 '07 #4
lrg
8
Application was moved to server and then error started occurring. In my local machine it was working fine. Is there anything in particular that should be taken care of while moving the application to server to prevent this error? Because i am getting the same error at times for other applications also.
Jun 19 '07 #5
Frinavale
9,735 Expert Mod 8TB
Application was moved to server and then error started occurring. In my local machine it was working fine. Is there anything in particular that should be taken care of while moving the application to server to prevent this error? Because i am getting the same error at times for other applications also.
Did you make the changes to your web.config as suggested earlier?
Jun 19 '07 #6
Plater
7,872 Expert 4TB
Also, please try and get us the actual error message given, as well as any and all related information. (Stack trace and the like). It could be very useful to know what the actual error is.

Thanks
Jun 19 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Krishnamoorthy | last post by:
have a website which is running under asp. I have created a folder and declared as Virtual directory from webspace provider. Now i placed files which are generated at a time of creating new...
6
by: Javier Cortés Cortés | last post by:
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....
4
by: tommy | last post by:
hello everbody, i write a little asp-application with forms-authentication. i copy my aspx-files with web.config to my webspace and i get the error above... i tried to set the...
6
by: AlanS | last post by:
I have used Visual Studio for about 8 months. I have developed some ASP solutions. I had to get on with some other things and have not worked with ASP.NET for a couple months. In the meantime, I...
0
by: Darren | last post by:
Hi, I get the above error message when I try to run my page on the remote server. As I am a newbie with .net, I chose Project | Copy to copy the files needed to a seperate local directory then...
12
by: Kevin Farless | last post by:
Hi all, I'm having trouble viewing any .aspx pages on my hosting company's server. The server is a new box running Windows Server 2003 default installation. I'm the first client to try using...
2
by: news.microsoft.com | last post by:
hi, I am new in ASP.NET i make a page using Visual Studio.net compile and successfully run on local system but when i upload it on my internet live server it always gives me the same error if...
0
by: Drushti Avarani via .NET 247 | last post by:
(Type your message here) Hi All, Probably I am posting the message under wrong heading i.einstead of ...languages.vb ,it should be ...languages.C#. I havemade a project in C# language using VS.NET...
7
by: JFKJr | last post by:
Hi! I am a new beginner to MS Access VBA, I wrote the following VBA code in Access which deletes blank columns and rows in excel file. But, the code works fine for sometimes and sometimes it displays...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.