Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

The Web application at http://sharepoint could not be found.

$
0
0

Hello Everyone,

I have developed Sequential Workflow in VS 2010 for SP 2010. I am receiving following error :

System.IO.FileNotFoundException: The Web application at http://sharepoint 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 

I have checked following settings:

1. target framework: 3.5

2. Platform target : x64 & Any CPU (tried both)

I am not using any url while instantiating SPSite or SPWeb object instead I am using workflowProperites.web whenever required.

I only receive this error when submitting new item to a list from anonymous website. If I manually start the workflow in the list item, than I don't receive any error.

Let me clarify it a bit:

I am only receiving this error into the environment which have alternate access mapping(AAM) i.e. the workflow runs fine in my dev machine but in production(internet) we have two urls for a site and two different authentication and I am receiving error in this environment.

Also, as I mentioned, this error comes when I submit an item to SP list anonymously(using visual webpart). 

Can someone plz tell me if I have to consider anything different when I develop sequential workflow for AAM mapped environment?

Any help would be highly appreciated.


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>