Hi,
I am trying to follow what it takes to fix the WSTrust issues
According to this, the only chg needs to be done is:
**
If your code is using CrmServiceClient with the “Office365” authentication type:
An example of this is a connections string that looks like this:
connectionString = "AuthType=Office365;Username=jsmith@contoso.onmicrosoft.com;Password=passcode;Url=https://contoso.crm.dynamics.com"
Similarly, you could also use a CrmServiceClient constructor and pass in AuthType.Office365.
You have two options for dealing with this.
Switch over to using an OAuth based connection string. Such connection string looks like this:
connectionString = "AuthType=OAuth;Username=jsmith@contoso.onmicrosoft.com; Password=passcode;Url=https://contosotest.crm.dynamics.com;AppId=51f81489-12ee-4a9e-aaae-a2591f45987d; RedirectUri=app://58145B91-0C36-4500-8554-080854F2AC97;LoginPrompt=Auto"
***
In my code after above fix, while the compile is fine, during runtime, this is tossing this error in the "new CrmServiceClient(connectionString)"
==> Error while connecting to CRM Could not load file or assembly 'System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
Any idea what I need to do to fix this? Thanks.
Solved! Go to Solution.
Hi,
This item is closed. The root cause of this is we had corrupted the VS nuget. We started debugging with just a console app, got it running. Then we created an azure function (this is where our code actually runs) and added / updated the nuget as needed to match our current azure function.
Thanks everyone.
Hi,
This item is closed. The root cause of this is we had corrupted the VS nuget. We started debugging with just a console app, got it running. Then we created an azure function (this is where our code actually runs) and added / updated the nuget as needed to match our current azure function.
Thanks everyone.
Hi Johnny
I am facing exact same issue.
I took the all latest nugate packages.. can you please mention which package you are referring ?
The Azure function throws following error if i run from Azure function
Could not load file or assembly 'System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
@johnnyL wrote:Hi,
This item is closed. The root cause of this is we had corrupted the VS nuget. We started debugging with just a console app, got it running. Then we created an azure function (this is where our code actually runs) and added / updated the nuget as needed to match our current azure function.
Thanks everyone.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
5 | |
2 | |
2 | |
2 | |
1 |