Since the early times of SharePoint we receive support cases where a customer receives the following error message when using custom code with SharePoint:
"The Web application at http://server:port/ 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"
Here are the most common reasons this error can occur:
Straight to the point!!
I hit the point 5!
Great post Stefan, I had the bitness wrong. Visual Studio 2010 set my console application to x86. I changed it to "Any CPU".
Very useful, Ur blogs always provide the exaustive options :)
#3 did the trick for me. One web application with multiple URLs. Adding to AAM solved the issue. Very helpful post!
Very helpful. had a bunch to check.