I'm using
https://www.nuget.org/packages/Microsoft.Cognitive.CustomVision.Training/1.2.0 on my website.
I using the library to create a new object of TrainingApi like this:
new TrainingApi() {ApiKey = "<API key>"};
This works fine on locally but when published and running in Azure I get this error:
Method not found: 'Void
Microsoft.Cognitive.CustomVision.Training.TrainingApi..ctor(System.Net.Http.DelegatingHandler[])'.
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
Microsoft.Cognitive.CustomVision.Training.TrainingApi..ctor(System.Net.Http.DelegatingHandler[])'.
Has anyone any experience with this or know how to solve this issue?
Related
I got an "500 Internal Server Error - An error occurred while starting the application" after deploying my application: https://iidapp.azurewebsites.net/
I keep finding the following error message but I am unable to find out on msdn websites any information describing how I can specify the SAS URL
INFO: The app was working for a long period and I didn't have to set the SAS URL; I wonder why suddenly Azure is generating exceptions
INFO2: the app works perfectly on my local machine
Any help is welcomed as I couldn't find any solution by reading the related topics on stackoverflow
2017-04-05T18:51:32
System.ApplicationException: The trace listener AzureBlobTraceListener is disabled. ---> System.InvalidOperationException: The SAS URL for the cloud storage account is not specified. Use the environment variable 'DIAGNOSTICS_AZUREBLOBCONTAINERSASURL' to define it.
at Microsoft.WindowsAzure.WebSites.Diagnostics.AzureBlobTraceListener.RefreshConfig()
--- End of inner exception stack trace ---
An error was triggered by W3SVC-WP : {app name}02000780
I found out on eventid that the code 02000780 meant that a file was missing
I eventually found out that it was possible to log further information by enabling the stdoulog inside the web.config. Read When a .NET Core Azure App Service won’t start: 502.5 Process Failure
I opened the debug console and found out that a directory wasn't found https://{app_id}.scm.azurewebsites.net/DebugConsole
Voilà! I corrected the code and the app is up and running!
I'm trying to use Azure Notification Hub to handle my MPNS WUP app notifications on a Unity3D generated project.
I used the following article to setup it in Visual Studio 2015 on the generated project: Getting started with Notification Hubs for Windows Universal Platform Apps
The app compiles and once it runs the following async code...
var result = await hub.RegisterNativeAsync(channel.Uri);
...the console prints the following log:
Exception thrown: 'System.Runtime.InteropServices.COMException' in Microsoft.WindowsAzure.Messaging.Managed.dll
WinRT information: ResourceMap Not Found.
Exception thrown: 'System.TypeInitializationException' in Microsoft.WindowsAzure.Messaging.Managed.dll
Exception thrown: 'System.AggregateException' in mscorlib.ni.dll
Exception thrown: 'System.AggregateException' in mscorlib.ni.dll
Exception thrown: 'System.AggregateException' in mscorlib.ni.dll
Exception thrown: 'Microsoft.WindowsAzure.Messaging.RegistrationException' in Microsoft.WindowsAzure.Messaging.Managed.dll
Exception thrown: 'Microsoft.WindowsAzure.Messaging.RegistrationException' in mscorlib.ni.dll
Exception thrown: 'Microsoft.WindowsAzure.Messaging.RegistrationException' in mscorlib.ni.dll
Exception thrown: 'Microsoft.WindowsAzure.Messaging.RegistrationException' in mscorlib.ni.dll
Exception thrown: 'Microsoft.WindowsAzure.Messaging.RegistrationException' in mscorlib.ni.dll
OnWebCamTextureToMatHelperDisposed
(Filename: C:\buildslave\unity\build\artifacts/generated/Metro/runtime/UnityEngineDebugBindings.gen.cpp Line: 45)
Exception thrown: 'Microsoft.WindowsAzure.Messaging.RegistrationException' in mscorlib.ni.dll
Unhandled 'Platform.COMException' exception caught! - 'The text associated with this error code could not be found.
The type initializer for 'Microsoft.WindowsAzure.Messaging.Http.Resources' threw an exception.', Sender: '<null>'. Missing try/catch blocks.
(Filename: C:\buildslave\unity\build\PlatformDependent/MetroPlayer/MetroDebug.cpp Line: 41)
My current setup is:
Unity3D 5.4.3p4
Visual Studio 2015
WindowsAzure.Messaging.Managed 0.1.7.9 (I also tried with 0.1.7.8 that is used in the getting started article)
We tested also this on a native WUP project using the same how-to article and had the same problem.
In the end we discovered it was not related to Unity or the project configuration as we thought, but to the Azure Account.
The Pricing Tier on the the Microsoft Azure Notification Hub was defined as Free (limit to 500 Active Devices), after changing it to Basic (limit to 200K Active Devices) the exception is gone.
This was a really bad experience and took some days for our team to find out the reason as the exception has no real link to the actual issue nor the Microsoft Azure Dashboard has any notification related to the limit on the push registrations.
We created a new organization and trying to use it but we are getting below error. Please give some idea how to resolve/dig this issue.
An unhandled exception occured 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.
Error Details: Exception of type 'System.web.HttpUnhandledException'
was thrown.
Thanks
I am creating a test in codedUI, VS2013. I am using assert.fail(failuredescripion) inside my exception class. But I am getting the below mentioned error:
An exception of type 'Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException' occurred in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll but was not handled in user code
Additional information: Assert.Fail failed.
Can anyone please suggest how to achieve this?
I want the failure to be recorded forcefully.
I found answer from this MSDN post
This error is happening because of the exception options. Need to add an exception for the assert namespace and disable both user handled and Thrown in Debug-->Exceptions
All of a sudden I am getting following error on SP Online
"Web Part Error: The application for executing code in the sandbox failed".
Any help will be appreciated.