Alexander Anikin's blog

My personal blog

Error: System.IO.FileNotFoundException: The web application at could not be found

leave a comment »

1. For Console Applications with SP2010 –  View your project properties, go to the Build tab and change the platform target to x64. Run your console application again and everything should work as expected now. (Here)

2. For ASP.Net Application – That is caused by the fact that by default ASP.NET and WSS Application Pools are running under different identities, even on same IIS. SO, one workaround we found was to simply change ASP.NET Application Pool so that it is run under same identity as MOSS. (Like here)

3. Check for Loopback Check:

To solve this you have to make a DisableLoopbackCheck registry key. Follow these steps to do so:

  1. Click Start, click Run, type regedit, and then click OK.
  2. In Registry Editor, locate and then click the following registry key: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlLsa
  3. Right-click Lsa, point to New, and then click DWORD Value.
  4. Type DisableLoopbackCheck, and then press ENTER.
  5. Right-click DisableLoopbackCheck, and then click Modify.
  6. In the Value data box, type 1, and then click OK.
  7. Quit Registry Editor, and then restart your computer.

Read more: http://www.information-worker.nl/2009/06/23/disableloopbackcheck-on-windows-server-2008/#ixzz10zu3b67i

Advertisements

Written by Alex Anikin

August 23, 2010 at 10:15 am

Posted in Sharepoint

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: