I'm trying to use SP object model from a web application and when I create a new instance of SPSite I get this error:
The Web application at <address> 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.
I've tried loading the SPSite using the server name, server IP address or localhost, but in each case I get this error.
The web application is run from the SP server.
View Complete Post