I have developed a simple "test" project and the files are in .CSHTML. The application works fine locally. However, when I publish to the server, the application fails to load. It throws 404 Page Not Found error. The .CSHTML is rendered by the server though however, when it is trying to pull something from the SQL Compact database, it throws this error message.
Another thing to note down: I installed WebMatrix application on the server and I then try to run my project with this WebMatrix application. It works. In other words, the project works fine with the URL like http://localhost:8448/gallery/Item-101029, however it fails when I try to browse to it publicly via URL http://www.myDomain.com/gallery/Item-101029.
Would you please advise what did I do wrong here? I can see that the SQL compact database is in my App_data folder. Why does http://www.myDomain.com/gallery/Item-101029 fails to work? Thanks in advanced for all the advises
View Complete Post