As I have uploaded the website online, it was giving the error that it was having a 'server error'
After getting the error I then sent Nick an email for the server error, as I felt that it was an error from the server side, as when it was tested on the local server on my machine it did not give any problems.
It was mentioned I configure the web.config file to see the problem. The web.config file was configured as it was mentioned on the error page, by putting customerror tag. After putting the tag and running the website it listed the error shown below.


The error shows that there is a problem with the database connection as it was not a valid path. After sending the error message to Nick I got the database path which was needed to connect to the MS Access database using OLE DB connection string.
The current database path was using the local host server connection, but when the website was uploaded on the server the connection path changed and it was no longer able to recognize the database path. Even though the database path was using the server tag = ~/database/mim0444cw1.mdb it could not locate the directory. So the full database connection path for the server to my database was used.
This solved the issue for the database connection.


No comments:
Post a Comment