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".
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.
I have done the customError mode to Off but still receiving the similar error. also i could not understand the reason of email related code that you include:
the code given to my form is:
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Mail;
using System.Data.SqlClient;
public partial
class _Default : System.Web.UI.Page
{
MailMessage mail1 =
new MailMessage();protected
void Page_Load(object sender,
EventArgs e)
I happen to have the same problem as stated by the last posts, and I tried almost everything I could think about starting from editing the <customErrors> tag in the web.config file (tried all modes) to editing the <authentication> and <authorization>
tags. I even precompiled the website using several methods hoping to at least get a different error message but I always end up getting this error message:
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".
and I'm sure you know the rest....
The confusing thing is that the website works fine on my computer(after deployment), I open it from the browser without any troubles but the main issue here happens when I upload the precompiled/deployed
website on the ftp server. I always get the mentioned error message.
I'm getting very frustrated since I can't possibly think of a solution to this, and I was hoping that someone might put me on the right path.
to get a complete error details, you should use your server to browse to your website. Do not browse it remotely as you cannot see the actual error message.
If you are using the server, what's the full error message that you see? I believe that I can fix it for you
I would not be able to fix error without knowing the exact error message and that's why I asked you to send a complete error message to me. If you are currently hosting this website with a host, you need to ask your host to login to the server and browse to
your website from the server. The complete error message will be disclosed on the server directly (as you are on the client-side, you will only see meaningless error message).
Please ask your host to copy the complete error message. Thank you.
P.S: There are so many reasons for your site to throws "Server Error in "\" Application" and this error message is not good enough to start the investigation. Thank you.
Hello I'm having the same problem, but the wired thing is the web page is up for a while and out of no where i get the error above.. I stop and restart the services which seem to fix it for a little but then i back to same problem.. please advise?
I have seen a similar error when I upload .net controls that I've worked on for a website. What I typically do is open IIS, go to the site (where it shows all the files of the site on the right side) and hit the refresh button twice. Works for me.
"Server Error in '/' Application" is not a specification but a customized error that just says that there has been a problem while the file was executed. Just like "500 Internal server error". You can disable the custom error to know the actual error in
browser. There is no need to contact your hosting provide.. you can do it using FTP as well.
Visit the link below for the exact steps tp remove " Server Error in '/' Application" from your site:
SAMIR SHAH
Member
8 Points
4 Posts
Re: Server Error in '/' Application.
Dec 12, 2007 05:15 AM|LINK
It can be an issue of Virtual Directory.
If you have not created the virtual directory or if it created the version older than the current.
if you have created the virtual directory with 1.1,then you will get this error in 2.0.
Also,If you have hosted with a hosting company then contact them.
balkalyani
Member
2 Points
1 Post
Re: Server Error in '/' Application.
Mar 04, 2008 12:07 PM|LINK
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".
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.
the code given to my form is:
using
System;using
System.Data;using
System.Configuration;using
System.Web;using
System.Web.Security;using
System.Web.UI;using
System.Web.UI.WebControls;using
System.Web.UI.WebControls.WebParts;using
System.Web.UI.HtmlControls;using
System.Web.Mail;using
System.Data.SqlClient;public
partial class _Default : System.Web.UI.Page{
MailMessage mail1 = new MailMessage();protected void Page_Load(object sender, EventArgs e){
}
protected void Button1_Click(object sender, EventArgs e){
SqlConnection cn = new SqlConnection("server=75.126.89.218;user id=kashross;password=30601776;database=kashross");cn.Open();
string str = string.Format("insert into index13 values('{0}','{1}','{2}','{3}','{4}','{5}','{6}')", Text5.Value, Text4.Value, Text3.Value, Select2.Value, Select1.Value, Text2.Value, Text1.Value);SqlCommand cmd = new SqlCommand(str, cn);cmd.ExecuteNonQuery();
cn.Close();
mail1.To = "test@kashross.com";mail1.From =
"bal.kalyani9@gmail.com"; mail1.Subject = "create account Form"; //SmtpMail.SmtpServer = "67.18.153.178" SmtpMail.SmtpServer = "75.126.89.218";mail1.BodyFormat =
MailFormat.Html; mail1.Body = "<HTML>" + "<body bgcolor=yellow>" + " <form method=Post runat=server>" + "<TABLE style=width: 320px; left: 80px; position: absolute; top: 0px; height: 120px >" + "<TR>" + "<TD ><b>Hello :</b></TD>" + "<TD ></TD>" + "<TD ></TD>" + "<TD></TD>" + "\t</TR>" + "<TR>" + "<TD ></TD>" + "<TD ><b>Following are the details of hotel harsha Form :<hr></b></TD>" + "<hr>" + "<TD ></TD>" + "<TD></TD>" + "\t</TR>" + "<hr>" + "<TR>" + "<TD ></TD>" + "<TR>" + "<TD><h4>Name :</h4>" + "</TD>" + "<TD ><h4>" + Text1.Value + "</h4></TD>" + "\t<TD ></TD>" + "<TD></TD>" + "</TR>" + "\t<TR>" + "<TD><h4>Email :<h4></TD>" + "\t<TD><h4>" + Text2.Value + "</h4></TD>" + "<TD></TD>" + "\t\t\t\t<TD ></TD>" + "</TR>" + "\t<TR>" + "\t<TD><h4>Phone:</h4></TD>" + "<TD><h4>" + Text3.Value + "</h4></TD>" + "\t<TD ></TD>" + "<TD></TD>" + "</TR>" + "<TR>" + "<td><h4>Guests </h4></td>" + "<TD ><h4>" + Select1.Value + "</h4></TD>" + "\t<TD ></TD>" + "<TD></TD>" + "</TR>" + "<td><h4>Rooms </h4></td>" + "<TD ><h4>" + Select2.Value + "</h4></TD>" + "\t<TD ></TD>" + "<TD></TD>" + "</TR>" + "<td><h4>Check in </h4></td>" + "<TD ><h4>" + Text4.Value + "</h4></TD>" + "\t<TD ></TD>" + "<TD></TD>" + "</TR>" + "<td><h4>Check out :</h4></td>" + "<TD ><h4>" + Text5.Value + "</h4></TD>" + "\t<TD ></TD>" + "<TD></TD>" + "</TR>" + "<TR>" + "</TABLE>" + "</form>" + "</body>" + "</HTML>"; SmtpMail.SmtpServer = "75.126.89.218"; SmtpMail.Send(mail1 );clear();
Page.RegisterStartupScript("as", "<script> alert('Information sending successfully')</script>");}
public void clear(){
Text5.Value = "";Text4.Value =
""; Text3.Value = "";Select2.Value =
""; Select1.Value = "";Text2.Value =
""; Text1.Value = "";}
}
co_cu
Member
5 Points
13 Posts
Re: Server Error in '/' Application.
Mar 04, 2008 02:06 PM|LINK
Hi,
I have done the customError mode to Off but still receiving the similar error. also i could not understand the reason of email related code that you include:
the code given to my form is:
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Mail;
using System.Data.SqlClient;
public partial class _Default : System.Web.UI.Page
{
MailMessage mail1 = new MailMessage();protected void Page_Load(object sender, EventArgs e){
}
protected void Button1_Click(object sender, EventArgs e){
SqlConnection cn = new SqlConnection("server=75.126.89.218;user id=kashross;password=30601776;database=kashross");cn.Open();
string str = string.Format("insert into index13 values('{0}','{1}','{2}','{3}','{4}','{5}','{6}')", Text5.Value, Text4.Value, Text3.Value, Select2.Value, Select1.Value, Text2.Value, Text1.Value);SqlCommand cmd = new SqlCommand(str, cn);cmd.ExecuteNonQuery();
cn.Close();
mail1.To = "test@kashross.com";mail1.From = "bal.kalyani9@gmail.com";
mail1.Subject = "create account Form";//SmtpMail.SmtpServer = "67.18.153.178"
SmtpMail.SmtpServer = "75.126.89.218";mail1.BodyFormat = MailFormat.Html;
mail1.Body = "<HTML>" + "<body bgcolor=yellow>" + " <form method=Post runat=server>" + "<TABLE style=width: 320px; left: 80px; position: absolute; top: 0px; height: 120px >" + "<TR>" + "<TD ><b>Hello :</b></TD>" + "<TD ></TD>" + "<TD ></TD>" + "<TD></TD>" + "\t</TR>" + "<TR>" + "<TD ></TD>" + "<TD ><b>Following are the details of hotel harsha Form :<hr></b></TD>" + "<hr>" + "<TD ></TD>" + "<TD></TD>" + "\t</TR>" + "<hr>" + "<TR>" + "<TD ></TD>" + "<TR>" + "<TD><h4>Name :</h4>" + "</TD>" + "<TD ><h4>" + Text1.Value + "</h4></TD>" + "\t<TD ></TD>" + "<TD></TD>" + "</TR>" + "\t<TR>" + "<TD><h4>Email :<h4></TD>" + "\t<TD><h4>" + Text2.Value + "</h4></TD>" + "<TD></TD>" + "\t\t\t\t<TD ></TD>" + "</TR>" + "\t<TR>" + "\t<TD><h4>Phone:</h4></TD>" + "<TD><h4>" + Text3.Value + "</h4></TD>" + "\t<TD ></TD>" + "<TD></TD>" + "</TR>" + "<TR>" + "<td><h4>Guests </h4></td>" + "<TD ><h4>" + Select1.Value + "</h4></TD>" + "\t<TD ></TD>" + "<TD></TD>" + "</TR>" + "<td><h4>Rooms </h4></td>" + "<TD ><h4>" + Select2.Value + "</h4></TD>" + "\t<TD ></TD>" + "<TD></TD>" + "</TR>" + "<td><h4>Check in </h4></td>" + "<TD ><h4>" + Text4.Value + "</h4></TD>" + "\t<TD ></TD>" + "<TD></TD>" + "</TR>" + "<td><h4>Check out :</h4></td>" + "<TD ><h4>" + Text5.Value + "</h4></TD>" + "\t<TD ></TD>" + "<TD></TD>" + "</TR>" + "<TR>" + "</TABLE>" + "</form>" + "</body>" + "</HTML>";SmtpMail.SmtpServer = "75.126.89.218";
SmtpMail.Send(mail1 );clear();
Page.RegisterStartupScript("as", "<script> alert('Information sending successfully')</script>");}
public void clear(){
Text5.Value = "";Text4.Value = "";
Text3.Value = "";Select2.Value = "";
Select1.Value = "";Text2.Value = "";
Text1.Value = "";}
}
Thanks
Shakir
Razerthorn
Member
20 Points
11 Posts
Re: Server Error in '/' Application.
Apr 04, 2008 11:18 PM|LINK
Hi there everybody,
I happen to have the same problem as stated by the last posts, and I tried almost everything I could think about starting from editing the <customErrors> tag in the web.config file (tried all modes) to editing the <authentication> and <authorization> tags. I even precompiled the website using several methods hoping to at least get a different error message but I always end up getting this error message:
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".
and I'm sure you know the rest....
The confusing thing is that the website works fine on my computer(after deployment), I open it from the browser without any troubles but the main issue here happens when I upload the precompiled/deployed website on the ftp server. I always get the mentioned error message.
I'm getting very frustrated since I can't possibly think of a solution to this, and I was hoping that someone might put me on the right path.
many thanks
you_rock
Member
428 Points
158 Posts
Re: Server Error in '/' Application.
Jul 22, 2008 02:52 AM|LINK
to get a complete error details, you should use your server to browse to your website. Do not browse it remotely as you cannot see the actual error message.
If you are using the server, what's the full error message that you see? I believe that I can fix it for you
you_rock
Member
428 Points
158 Posts
Re: Server Error in '/' Application.
Aug 11, 2008 12:20 AM|LINK
I would not be able to fix error without knowing the exact error message and that's why I asked you to send a complete error message to me. If you are currently hosting this website with a host, you need to ask your host to login to the server and browse to your website from the server. The complete error message will be disclosed on the server directly (as you are on the client-side, you will only see meaningless error message).
Please ask your host to copy the complete error message. Thank you.
P.S: There are so many reasons for your site to throws "Server Error in "\" Application" and this error message is not good enough to start the investigation. Thank you.
jks814
Member
2 Points
1 Post
Re: Server Error in '/' Application.
Aug 21, 2008 10:58 PM|LINK
Hello I'm having the same problem, but the wired thing is the web page is up for a while and out of no where i get the error above.. I stop and restart the services which seem to fix it for a little but then i back to same problem.. please advise?
Thanks,
wayne.fridma...
Member
28 Points
14 Posts
Re: Server Error in '/' Application.
Aug 26, 2008 04:36 AM|LINK
rfwilliams77...
Participant
851 Points
411 Posts
Re: Server Error in '/' Application.
Sep 04, 2008 06:55 PM|LINK
I have seen a similar error when I upload .net controls that I've worked on for a website. What I typically do is open IIS, go to the site (where it shows all the files of the site on the right side) and hit the refresh button twice. Works for me.
murtaza_t
Member
242 Points
57 Posts
Re: Server Error in '/' Application.
Sep 20, 2008 01:21 AM|LINK
"Server Error in '/' Application" is not a specification but a customized error that just says that there has been a problem while the file was executed. Just like "500 Internal server error". You can disable the custom error to know the actual error in browser. There is no need to contact your hosting provide.. you can do it using FTP as well.
Visit the link below for the exact steps tp remove " Server Error in '/' Application" from your site:
http://www.eukhost.com/forums/f15/remove-server-error-application-custom-error-5605/
Regards,
Murtaza
Web Hosting UK | VPS Hosting