CRM 2015, 'Xrm' namespace not found - dynamics-crm

I can't get CRM 2015 sdk working. I keep getting this error:
The type or namespace name 'Xrm' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
I am using .NET 4.5.2. All threads I've found online were about this upgrade of .NET. I find it weird that I managed to run the same code on Windows Server 2003, without any errors. Since there is no Windows Identity Foundation for WS 2003 I cannot connect to any CRM server.
But in Windows 8.1 I encountered this issue.

Use the .dlls file from the CRM SDK 2013.
Answer given by Cosmin Plesa in the comments

There is no compatibility issue of CRM 2015 SDK with your windows version and either your .Net Framework version.
Download the SDK and reference on you project the local .dll files that you can find inside SDK>bin folder

Related

visual studio 2017 publish error

Using WebDeploy to publish to an Azure Web Site fails with error:
Error The target "GetCopyToPublishDirectoryItems" does not exist in the project.
Visual Studio 2017 RC - latest download
I created an empty ASP .net Core web project with 4.61 .net version
I created an empty Library with 4.61 .net version
I added the library as a dependency of the web project
I rebuilt the project
I published with web deploy - and got the error
I am using Windows 10
The same happened on a friend computer.
Any help would be greatly appreciated
Thanks
PM
Looks like this is a known issue with a fix forthcoming. The following Github issue page has several workarounds:
https://github.com/dotnet/sdk/issues/543

Exception in executing publishing in VS2013

I have a asp.net web forms template with individual accounts without any modifications. When I try to publish this application to my web server I'm receiving the following error:
Exception in executing Publishing: Cannot load file or assembly 'Microsoft.VisualStudio.Web.Azure.Contracts, Version=2.0.0.0, Culture neutral, PublishKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Has anyone else ever received this error? I'm getting the error message after I right click on my project and select 'publish'. I've done some googling but haven't found any solutions.
I'm not sure if it matters, but the version of VS I'm using is Visual Studio Professional 2013 and my webforms project is .NET 4.5
Any help or direction would be appreciated. Thanks!
You need to install Windows Azure SDK for .NET (VS 2013) by following these steps:
Go to http://www.windowsazure.com/en-us/downloads and on click the
“VS 2013 Install” link under .NET category
Download and install the Windows Azure SDK installer which uses
Microsoft’s WPI (Web Platform Installer)
http://digital.voyage/2014/03/28/exception-in-executing-publishing-error-in-vs2013/

SAPI Version on Win XP Laptop

I have a Win XP Pro laptop. I wanted to use the Speech API in some of my VB.NET projects. However, when I opened the Add Reference dialog in Visual Studio, I got Microsoft Speech Object Library 5.0. I decided to try and update to SAPI 5.1
So I downloaded and unzipped SpeechSDK51MSM.exe to the default directory (C:\DOCUME~1\laptop\LOCALS~1\Temp). (Still not sure about the proper way to use this MSM file.)
Then I downloaded and installed SpeechSDK51.exe.
Still, when I go to Projects > Add Reference > COM , I get:
Microsoft Speech Object Library 5.0 C:\Program Files\Common Files\Microsoft Shared\Speech\sapi.dll
And the resulting Interop.SpeechLib.dll file is version 5.0.0.0
I expected 5.1.x.x
Am I doing something wrong?
Thanks.

How to set reference to System.Windows.Controls.DataVisualization.Toolkit

I have a windows phone 7.1 project that I want to create a chart in using the silverlight 5.0 chart control. I've installed the December 2011 version of the Silverlight Toolkit. No other versions exist on my computer. When I try to set a reference to the the System.Windows.Controls.DataVisualization.Toolkit.dll that is located in C:\Program Files (x86)\Microsoft SDKs\Silverlight\v5.0\Toolkit\dec11 an error message occurs. The message says "A higher reference version or incompatable assembly cannot be added to the project." I'm using Visual Studio 2010 and the Target Windows Phone OS version is set to Windows Phone OS 7.1 which is the usual reason I've seen for this error message. Does anybody know how to resolve this?
Make sure you have the right toolkit.
WP7 Toolkit
You Cannot use the Silverlight 5 Toolkit in a WP7 application
After that its pretty simple:
Add the dll to the project as a reference.
In any XAML you want to use the items place a declaration (Just to name a few)
xmlns:toolkit="clr-namespace:System.Windows.Controls assembly=System.Windows.Controls.Toolkit"
xmlns:customControl="clr-namespace:TriviaGame.CustomControls;assembly=TriviaGame.CustomControls"
xmlns:visualizationToolkit="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit"
xmlns:charting="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"

Json.Net NuGet (NuPack) Package Reference unable to find assembly compatible with target framework

I am getting an error when trying to add the Json.net package reference through the NuGet / NuPack Add Package Reference Dialog. The error I get is:
Unable to find assembly references that are compatible with the target framework 'Silverlight,Version=4.0,Profile=WindowsPhone'
I have the latest version of both the Windows Phone 7 SDK and the Package Manager tools installed. This is running in Visual Studio 2010.
Has anyone else run into this error?
According to James Newton-King (author of Json.NET), you can use the Silverlight 3.0 version.
http://json.codeplex.com/Thread/View.aspx?ThreadId=226910
Unfortunately the NuGet package doesn't properly indicate Windows Phone 7 support. So you'll have to add the reference the old-fashioned way. (e.g. Copy the assembly into a directory such as ~\lib\Json.NET - where ~ is your solution root - and Project... Add Reference...)

Resources