SharePoint website returning the following error:
The Web application at [URL 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.
This is a common problem and there a few possible causes which we have come across:
Check to confirm that the URL used actually does exist on the SharePoint farm.
You could use a host file for this, or alternatively use a new URL which does work or can be mapped in DNS
If you are using Windows-based authentication on the site, ensure that the user in question has permission to access the SQL database. This could also be due to the fact that your code is running in a Windows application or console.
Ensure that you grant the relevant user access to the SQL database
Finally, ensure that your code is compiled to run on the relevant bit compilation. (x86 or 64bit). It could be that your code is x86 but the SharePoint server is 64bit.
To resolve this set the platform target to “Any CPU”
How useful was this post?
Click on a star to rate it!
Average rating / 5. Vote count: