If you have come to this blog searching for the error mentioned above then probably you’re doing some modifications to ADFS 2.0 site.
Following would be the symptoms that you have done so far:
- You have opened adfs\ls website as Website project in Visual Studio.
- If the project type is Website, you probably had a message from Visual Studio to upgrade for the .Net v4.0.
- You have created a new project Empty Web Application and imported adfs\ls website content to the project.
- You are modifying this site/application on local machine and not on Windows Server where ADFS is installed.
Follow these steps to successfully start modifying ADFS site:
- Install Visual Studio 2010 on Windows Server where ADFS is installed and configured.
- Create an Empty Web Application
- Import all the files from adfs\ls directory to the Web Application. (generally, you can find it on c:\inetpub\adfs\ls)
- Right click on the project in Solution Explorer and click on “Convert to Web Application”.
- You’re ready to go!
You do not need to add reference of any files to this web application. Just Build and Publish the site to the same directory where adfs is installed.
Microsoft.IdentityServer.Compression and other required files will be referenced from GAC as you are developing the project on the server itself.
Happy Programming! 🙂
If you are getting below error when you have deployed your web application which connects to Microsoft Dynamics CRM 2011 online/on premise version.
Could not load file or assembly ‘microsoft.crm.sdk.proxy’ or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
Then probably you have used wrong IIS Application Pool. You might want to change the .Net version of assigned Application Pool to 4.0. And re-run the site.
This should solve the error you were facing.
When deploying site from Visual Studio to Windows Azure, below error occurs:
The “DeleteCurrentDeployment” task failed unexpectedly.
System.IO.FileLoadException: Could not load file or assembly ‘Microsoft.ServiceHosting.Tools, Version=126.96.36.199, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. Invalid pointer (Exception from HRESULT: 0x80004003 (E_POINTER))
File name: ‘Microsoft.ServiceHosting.Tools, Version=188.8.131.52, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ —> System.ArgumentNullException: Value cannot be null.
Parameter name: path1
at System.IO.Path.Combine(String path1, String path2)
at Microsoft.Cct.AssemblyResolver.CurrentDomainAssemblyResolver(Object sender, ResolveEventArgs args)
at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
at Microsoft.Cct.Debugging.DevFabricService..ctor(CctProjectNode projectManager, SynchronizationContext synchContext)
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Windows Azure Tools\1.8\Microsoft.WindowsAzure.targets 1139 5
Make sure you have installed every component for Windows Azure. http://www.microsoft.com/en-in/download/details.aspx?id=35448 This particular error says that the system is missing Windows Azure Emulator.