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.
I also have one web application with different URLs. What does it mean by " double check that the server is correct registered in the AAM settings". I don't have access to central admin of the server as this is production environment and I am trying to
deploy Sequential WF. Is there sth I am not doing correctly in my workflow as I am using workflowProperties.Web to get the web site whenever required.
each Url used to access the relevant sharepoint web applicaiton either through the browser or the API has to be listed in an AAM zone.
Very much helpful. Thanks
I hit the point 5. it was a great help