Web App not found trying to access SharePoint Object Model
Busy writing a few aspx pages that need to get information from SharePoint. However, I got the following error message:
“The Web Application at could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application”
Simple solution that worked for me: Check which app pool the web site is running under, and make sure that the app pool identity is a local service account, in this case I changed it the SharePoint service account and the problem went away. The account needs access to both SharePoint and the database.