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.