Question

Target framwork 3.5 Platform Target - Any CPU

But on the top section (under configuration of build screen show Active(x86) under Platform).

I keep getting The web application http://nortel.nortelnetwork.com could not be found. I can resolve local dev url (http://srvNortel2344).

Was it helpful?

Solution 3

I know this is not ordinary answer but the following worked for me.

I logged in to the server with the farm account. (IMPORTANT: FARM ACCOUNT) I placed the console exe in the inetpub....\script directory and ran it from there. It runs fine from that location and didnt complaint.

OTHER TIPS

you can only use sharepoint's server side api on the server sharepoint is running on. for communication from another machine to sharepoint you need to use the webservices or, if you are running SP2010, the client framework.

Edit:

  • If you try to access an url from the server itself through a hostname other than the real machine name it might be the DisableLoopbackCheck issue. In (ASP).NET, it is not permitted to access a website using a host header other than the actual machine name when running on that machine. More info here: support.microsoft.com/kb/896861 i.e.: Machine name = SPSRVR01. The website is running under hostheader mywebsite. If this is the case, you need to either disable the loopbackcheck or add the allowed hostheader as a BackConnectionHostName (see same article).

  • Also, you can only access the current farm using the sharepoint server API. You cannot open sites in another farm, even though SharePoint is Running on that machine.

  • Also, is your Console App a .NET Framework 4 based app? If so, you have to revert to .NET 3.5SP1

I have seen an error similar to this in the past if an alternate access mapping is missing for the URL.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top