I am using Twilio Conversation and generating JWT for token.
When calling new Twilio.Jwt.AccessToken(/*parameters*/).ToJwt() method, it causes
'token.ToJwt()' threw an exception of type 'System.ArgumentException'
Data: {System.Collections.ListDictionaryInternal}
HResult: -2147024809
HelpLink: null
InnerException: null
Message: "An item with the same key has already been added. Key: cty"
ParamName: null
Source: "System.Private.CoreLib"
StackTrace: " at System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException[T](T key)\r\n at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)\r\n at Twilio.Jwt.BaseJwt.ToJwt()"
TargetSite: {Void ThrowAddingDuplicateWithKeyArgumentException[T](T)}
Why this causes?
Keep Microsoft.Graph version is same or below 4.30.0.
My case was that It stopped throwing the exception after that.
This error happens once you install Microsoft.Graph with version above 4.31.0. Apparently either Microsoft.Graph or Twilio nuget packages need to be fixed.
Related
An unhandled exception occurred while processing the request.
MissingMethodException: Method not found: 'Microsoft.Extensions.Primitives.StringValues Microsoft.AspNetCore.Http.IHeaderDictionary.get_Authorization()'.
Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync() error occur when i implement jwt authentication in .netcore can anyone help me to solve this problem.
I published my Azure Mobile Service and suddenly I got this error. I use a code first approach and I have not changed my models.
"message": "An error has occurred.",
"exceptionMessage": "Unable to load the specified metadata resource.",
"exceptionType": "System.Data.Entity.Core.MetadataException",
"stackTrace": " at System.Data.Entity.Core.Metadata.Edm.MetadataArtifactLoaderCompositeResource.LoadResources(String assemblyName, String resourceName, ICollection`1 uriRegistry, MetadataArtifactAssemblyResolver resolver)\r\n
I m using EF 6.1.1 and my connection string is defined for the System.Data.SqlClientProvider.
It works fine when I run locally against my MSSQLLocalDB.
Anyone knows why EF attempts to load a Metadata even if I am using a code first approach? What should I do to troubleshoot the issue?
I found it, it was my connection string which was modified when the code was built in release environment. This issue was caused by a refactory.
Could anyone help me with this error?
It is happening in a Microsoft Dynamics CRM 2015 Online Plugin.
It's a late binding implementation...
Unhandled Exception:
System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault,
Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35]]: Unable to cast object of type
'Microsoft.Crm.Sandbox.SandboxOrganizationServiceWrapper' to type
'Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy'.Detail:
-2147220891
OperationStatus
0
SubErrorCode
-2146233088
Unable to cast object of type
'Microsoft.Crm.Sandbox.SandboxOrganizationServiceWrapper' to type
'Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy'.
2015-03-25T19:31:18.5408758Z
[JHSF.CRM.Principal:
JHSF.CRM.Principal.Application.Plugin.PluginAdesaoFidelidade]
[dd59ba6a-7ad1-e411-80de-c4346bb59e2c:
JHSF.CRM.Principal.Application.Plugin.PluginAdesaoFidelidade: Create
of jhsf_adesao_programa_fidelidade]
Error : Unable to cast object of type
'Microsoft.Crm.Sandbox.SandboxOrganizationServiceWrapper' to type
'Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy'. StackTrace:
at SDKore.Xrm.CrmServiceProvider..ctor(String OrganizationName,
Nullable`1 IsOffline, Object Provider)
Preferably, you should not be referencing Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy in a plug-in. This is, as the word Client indicates, for client-side not server-side code.
That said, you cannot make the cast you reference above and I don't think you can create an OrganizationServiceProxy in a sandboxed plugin. If you are using early-bound entities you can create an OrganizationServiceContext - from the client DLL - by passing in the instance of IOrganizationService available to your plugin.
I have setup the Nuget.Server and the SymbolSource Server Basic in one solution when I run the "self diagnostics tool" I get the following exception, anyone have a clue what this is?
The URL I am accessing is
http://localhost/Home/NuGetPushTest
Method not found: 'Void NuGet.PackageServer.PushPackage(System.String,
System.IO.Stream, Int32)'.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.MissingMethodException: Method not found:
'Void NuGet.PackageServer.PushPackage(System.String, System.IO.Stream,
Int32)'.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Please help me resolve this Umbrella exception http://pastebin.com/DACPRhbP
NewUserPresenter file :
http://pastebin.com/FZyAffu8
NewUserViewImpl file:
http://pastebin.com/i6fYwnLH
User Entity in server folder:
http://pastebin.com/6ktwf5vp
Appcontroller:
http://pastebin.com/Kn5Wg61e
Entrypoint:
http://pastebin.com/sEHHihVu
UserProxy:http://pastebin.com/mfd67p2U
UserRequest: http://pastebin.com/JxQe77LL
To me it seems that it could be the request factory stuff I added to this project has caused these exceptions. Before that everything was alright.
https://groups.google.com/forum/?fromgroups=#!searchin/google-web-toolkit/umbrella$20exception/google-web-toolkit/aZggEeNm0Js/9qfNXleD1lwJ
https://code.google.com/p/google-web-toolkit/issues/detail?id=5760
Reason for exception was that there was no getter method defined for password field.