Hi All,
I am having a nightmare at the moment. I have spent the last few hours working on a ASP.NET project runnig the code locally on my machine. The database is on a remote server. Anyway I got so much done and thought I would leave it there for today, so I used Visula Studio.NET to copy the project into a a folder only getting the files needed to run the application. I then uploaded the files onto my remote server web space (overwriting the ones already on there). When I clicked the link to the app I got the vague message:
My web.cofig file has the following settings in it:
<customErrorsdefaultRedirect="/JokePoint/error.aspx"/>.
I have also tried using mode="Off" hoping to get more information on the fault. But I get no further information as to what the hell is going wrong. I have some code in my global.asax like this:
So that I can read the errors and find out what is wrong. But the errors are not sent to my email address as they used to be. It is as if the app never gets going at all. Running it locally on my machine it runs perfect, as soon as I upload it onto the remote server it dies without any explanation. I cannot understand why this is, as the previous version of the app ran fine from the remote server and the updated version runs great locally why is not running at all on the remote server?
I am currently with fasthost.co.uk with my webspace there ftp server seems to be a little intermitent, but I have uploaded these files many times and to no avail.
Please help, I am lost with this problem.
Thanks, Dave.
I am having a nightmare at the moment. I have spent the last few hours working on a ASP.NET project runnig the code locally on my machine. The database is on a remote server. Anyway I got so much done and thought I would leave it there for today, so I used Visula Studio.NET to copy the project into a a folder only getting the files needed to run the application. I then uploaded the files onto my remote server web space (overwriting the ones already on there). When I clicked the link to the app I got the vague 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".
<!-- 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 applications <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.cofig file has the following settings in it:
<customErrorsdefaultRedirect="/JokePoint/error.aspx"/>.
I have also tried using mode="Off" hoping to get more information on the fault. But I get no further information as to what the hell is going wrong. I have some code in my global.asax like this:
Code:
Sub Application_Error(ByVal sender AsObject, ByVal e As EventArgs)
Try
Dim email AsNew MailMessage
email.From = [email]me@blueyonder.co.uk[/email]
email.To = [email]me@blueyonder.co.uk[/email]
email.Subject = "Failure On WebSite"
email.Body = Server.GetLastError().ToString()
SmtpMail.SmtpServer = "SMTP.blueyonder.co.uk"
SmtpMail.Send(email)
Catch ex As Exception
EndTry
EndSub
So that I can read the errors and find out what is wrong. But the errors are not sent to my email address as they used to be. It is as if the app never gets going at all. Running it locally on my machine it runs perfect, as soon as I upload it onto the remote server it dies without any explanation. I cannot understand why this is, as the previous version of the app ran fine from the remote server and the updated version runs great locally why is not running at all on the remote server?
I am currently with fasthost.co.uk with my webspace there ftp server seems to be a little intermitent, but I have uploaded these files many times and to no avail.
Please help, I am lost with this problem.
Thanks, Dave.