Hello Everyone, I am trying to upload file on a website hosted by godaddy via ftp but it is showing me this error. Please see this error and tell me how to solve this problem. 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>
Don't waste your time contacting support. For starters, they are useless with problems which they actually have control over. Since this problem is on your end (a coding error) and not theirs, they are going to be even more useless (if that's possible) in trying to debug your application. To get started figuring out what the problem is, do what the error page says - create a text file called web.config and insert the following code into it: <configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration> Code (markup): Then upload that file to the root directory of your server. Next, add the statement Debug="True" into the <%@ Page ... %> directive of the page which is causing the error. An example of how it might look would be: <%@ Page Language="C#" Debug="True" %> Code (markup): Then upload that and overwrite the existing version. Now try to look at the page again in your browser, and the line which is causing the error should be displayed. After fixing the line, upload the corrected version and make sure it works properly. Once it is working, remove the Debug="True" statement from the <%@ Page ... %> directive, re-upload it, and then delete the web.config file. This will restore your application so that the source code will be hidden in the event of a future error (what will be displayed is the error you are currently seeing).