I have web application project it's workgin fine in local machine, but when i upload it to the server then i mee the below error
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.
I know this means to change the custom error mode as off, i also do the same code in my web.config but also return the same error, some time i change the mode into ON / Remoteonly but also return the same error, may i know this error from server or due to
my code?, how to solve it ? memebrs help me
Any doubts please feel free to ask me. If this post is answer of your question then don't forgot to Click "Mark As Answer".
J.Jeyaseelan
</customErrors>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true"/>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
I'm facing the same problem. U said its due to having the wrong connect string. What the connection string you used.
my script is this. please help me. I don't have any web.config file. it would be very helpful if you give the solution.
<script runat="server">
sub OnBtnSendClicked (s As Object, e As EventArgs)
Dim strConn as string = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.mappath("guestbook.mdb") & ";"
Dim MySQL as string = "INSERT INTO Guestbook (Name, EMail, URL, Comment) VALUES ('" & txtName.Text & "','" & txtEMail.Text & "','" & txtURL.Text & "','" & txtComment.Text & "')"
Dim MyConn as New OleDBConnection (strConn)
Dim cmd as New OleDBCommand (MySQL, MyConn)
MyConn.Open ()
cmd.ExecuteNonQuery ()
MyConn.Close ()
Response.Redirect ("guestlog.aspx")
end sub
sub OnBtnClearClicked (s As Object, e As EventArgs)
txtName.Text = ""
txtEMail.Text = "yourname@somebody.com"
txtURL.Text = "http://"
txtComment.Text = ""
end sub
</script>
I am having the same error but only when I try to acces to a specific folder of the web. I have checked my connection string out ant it is ok because it goes fine for the rest of web application...
jeyaseelan@a...
Contributor
5124 Points
2025 Posts
Web Config <customErrors mode="Off"/>
May 29, 2008 08:06 AM|LINK
Hi to all,
I have web application project it's workgin fine in local machine, but when i upload it to the server then i mee the below error
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.
I know this means to change the custom error mode as off, i also do the same code in my web.config but also return the same error, some time i change the mode into ON / Remoteonly but also return the same error, may i know this error from server or due to my code?, how to solve it ? memebrs help me
J.Jeyaseelan
worldclassco...
Participant
1730 Points
342 Posts
Re: Web Config <customErrors mode="Off"/>
May 29, 2008 08:20 AM|LINK
It wont show error. until you have set correct .net framework in server
Robin Kedia
www.robinkedia.com
jeyaseelan@a...
Contributor
5124 Points
2025 Posts
Re: Web Config <customErrors mode="Off"/>
May 29, 2008 09:30 AM|LINK
Thanks for your reply,
I set like this
<system.web>
<customErrors mode="Off">
</customErrors>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true"/>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
then also return a same error.....any solution is there?
J.Jeyaseelan
jeyaseelan@a...
Contributor
5124 Points
2025 Posts
Re: Web Config <customErrors mode="Off"/>
May 30, 2008 04:15 AM|LINK
I found the problem,
This is the problem due to wrong connection string, i correct it and now it's working fine.
J.Jeyaseelan
salman_1
Member
2 Points
1 Post
Re: Web Config <customErrors mode="Off"/>
Oct 09, 2008 04:50 PM|LINK
I'm facing the same problem. U said its due to having the wrong connect string. What the connection string you used.
my script is this. please help me. I don't have any web.config file. it would be very helpful if you give the solution.
<script runat="server">
sub OnBtnSendClicked (s As Object, e As EventArgs)
Dim strConn as string = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.mappath("guestbook.mdb") & ";"
Dim MySQL as string = "INSERT INTO Guestbook (Name, EMail, URL, Comment) VALUES ('" & txtName.Text & "','" & txtEMail.Text & "','" & txtURL.Text & "','" & txtComment.Text & "')"
Dim MyConn as New OleDBConnection (strConn)
Dim cmd as New OleDBCommand (MySQL, MyConn)
MyConn.Open ()
cmd.ExecuteNonQuery ()
MyConn.Close ()
Response.Redirect ("guestlog.aspx")
end sub
sub OnBtnClearClicked (s As Object, e As EventArgs)
txtName.Text = ""
txtEMail.Text = "yourname@somebody.com"
txtURL.Text = "http://"
txtComment.Text = ""
end sub
</script>
alex_11
Member
3 Points
2 Posts
Re: Web Config <customErrors mode="Off"/>
Mar 13, 2009 09:49 PM|LINK
Create a web.config file then... >_>
superdavidam
Member
4 Points
2 Posts
Re: Web Config <customErrors mode="Off"/>
Sep 24, 2009 10:30 AM|LINK
Hi all,
I am having the same error but only when I try to acces to a specific folder of the web. I have checked my connection string out ant it is ok because it goes fine for the rest of web application...
What could it be??
Thank you