473,657 Members | 2,428 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

why 'Server Error in Application' occuring?

8 New Member
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 -->

<configuratio n>
<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 "defaultRedirec t" attribute of the application's <customErrors > configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuratio n>
<system.web>
<customErrors mode="RemoteOnl y" defaultRedirect ="mycustompage. htm"/>
</system.web>
Jun 14 '07 #1
6 2096
nateraaaa
663 Recognized Expert Contributor
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 -->

<configuratio n>
<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 "defaultRedirec t" attribute of the application's <customErrors > configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuratio n>
<system.web>
<customErrors mode="RemoteOnl y" 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 Recognized Expert Contributor
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 Recognized Expert Moderator Expert
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...debugg ing 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 New Member
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 Recognized Expert Moderator Expert
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 Recognized Expert Expert
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
1472
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 ASP.NET Project(all files inc .vb.aspx, .dll and etc). But it saying an error message Server Error "/" Application make change in web.config .
6
635
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. ---------------------------------------------------------------------------- ---- Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application
4
5386
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 custom-errors-tag ="off" but nothing happens.... what is my failure????
6
3502
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 have upgraded to .NET Framework 200 V1.1. Over the week end I had to go back to work on a project that needed some changes. I get the following error when I try to open an existing project or create a new one. I have XP Professional An error...
0
1671
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 copied these to the remote server via FTP. The page works fine on my local machine (WinXP Pro, VS.Net etc...) Page code is: -------------------------
12
26798
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 ASP.NET on this box and the administrator of the server has never setup an ASP.NET site before, so most likely the problem I'm experiencing is server settings related. Note in the Web.config below that the <customErrors mode="Off"/> is present,...
2
2045
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 anyone helps me i will be very thankfull: ---------------------------------------------------------------------------- Server Error in '/' Application. ----------------------------------------------------------------------------
0
1231
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 .I have created aWebApplication. I am unable to open the SQL connection fordatabase.I can drag and drop the SQL adapters and SQL Connectionand even generate dataset.But when I click on any hyperlink orbutton that is present in my Webform.aspx then...
7
13447
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 "application defined or object defined error". And, when I step into the code, error is occuring at the following Bold line. Please help me with this problem. Thank you in advance. Sub RunMacro() On Error GoTo Err_RunMacro Dim XL As Object...
0
8420
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8740
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8617
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7353
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.