Answered by:
server error argent

Question
-
User111825430 posted
it is very urgent
on local it is working fine but when i uploaded my website i get
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> my web.config file is like
<?xml version="1.0"?> <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --> <configuration> <appSettings> <add key="Vconnection" value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"/> </appSettings> <connectionStrings/> <system.web> <!-- 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"/> <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"> <error statusCode="403" redirect="NoAccess.htm" /> <error statusCode="404" redirect="FileNotFound.htm" /> </customErrors> <!-- 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> </configuration>
connection string is working fine i am beaten my head whole day and night but yet not get solution
Tuesday, August 25, 2009 3:41 PM
Answers
-
User111825430 posted
now i have deleted all pages of website from server and create one sample site
with only one Default.aspx page i have published it and uploaded still same message
is coming what is this? should i have to contat with my host provider
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, August 25, 2009 5:30 PM
All replies
-
User-227801874 posted
- <!--
- 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>
- -->
- add this lines
- <customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
- <error statusCode="403" redirect="NoAccess.htm" />
- <error statusCode="404" redirect="FileNotFound.htm" />
- </customErrors>
first of all you have to change customErrors mode to Off then check the error description..
Tuesday, August 25, 2009 4:22 PM -
User111825430 posted
problem is same same msg is coming
Tuesday, August 25, 2009 4:35 PM -
User-227801874 posted
Have you added one more line or just changed to Mode Off because the customreErrors is in <!-- --> mode else just remove that <!-- --> coment from the config file.
if you webconfig is fine then just refresh the page it should display the error message...
Tuesday, August 25, 2009 5:01 PM -
User111825430 posted
nothing is happening
Tuesday, August 25, 2009 5:15 PM -
User111825430 posted
now i have deleted all pages of website from server and create one sample site
with only one Default.aspx page i have published it and uploaded still same message
is coming what is this? should i have to contat with my host provider
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, August 25, 2009 5:30 PM -
User1559903870 posted
1. While uploading make sure that Publish date of all the files must be nearly same(i mean build date should not change.).
2. If u r uploading make sure that all the respective file are in the respective folders.
3. Delete the existing Virtual Directory and Clear all the Temp's.
4. Create a new Virtual directory with all the configurations properly set.
I faced the same problem,
I pasted aspx.cs(Code Behind) file in App_Code folder. so it was throwing error for me.
Tuesday, August 25, 2009 11:51 PM