Error with call Office.context.mailbox.getCallbackTokenAsync(cb); - outlook-addin

call the this function return OSF.DDA.Error "Internal protocol error: '-2'
Why?
Exchange server 2013 on custom server, OWA

Related

Bad Request. The api-version in the query string is not supported using Service Bus Explorer 2.6.1.0

I get the following error using Service Bus Explorer 2.6.1 while I try to connect against Service Bus 1.1 installed in another server:
<14:38:36> Exception: The remote server returned an error: (400) Bad Request. The api-version in the query string is not supported. Either remove it from the Uri or use one of '2012-03,2012-08,2013-04,2013-07'..TrackingId:ec6d38ba-866b-4e44-9fbd-1a21a03dc3e8_GWIN-VM77MKIHMEG,TimeStamp:11/04/2015 10:37:54
The string used is:
Endpoint=sb://SERVER/HelloWorld;StsEndpoint=https://SERVER:9355/HelloWorld;RuntimePort=9354;ManagementPort=9355;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=ekDH5AYdCqXlzetx+5PoLqrcEUeRaqqunRpmUN5Ao4I=
Any one know how to fix this error?
Regards,

InvalidOperationException when trying to get services from remote server

I am facing a strange error. I check from server A on server B if a specific service is running.
Code sample:
Try
Dim services() As ServiceController = ServiceController.GetServices(server)
For Each service In services
If service.ServiceName = serviceName Then
If service.Status = ServiceProcess.ServiceControllerStatus.Running Then
write_log("Service is running on: " & server)
Return True
Else
Return False
End If
End If
Next
Catch ex As Exception
write_log("ERROR on getService request")
write_log(ex.ToString)
End Try
Most times the request is successful. But sometimes I get an error.
Stack trace:
5316 2015-02-21 07:24:47 System.InvalidOperationException: Cannot open Service Control Manager on computer 'XXXXX'. This operation might require other privileges. ---> System.ComponentModel.Win32Exception: The RPC server is unavailable
--- End of inner exception stack trace ---
at System.ServiceProcess.ServiceController.GetDataBaseHandleWithAccess(String machineName, Int32 serviceControlManaqerAccess)
at System.ServiceProcess.ServiceController.GetServicesOfType(String machineName, Int32 serviceType)
at K2SystemInfo.K2SystemInfo.CheckIfServiceIsRunning(String serviceName, String server)
With a retry immediately after the error I can get the service information. The service that starts my programm is admin on both server.
Why does ServiceController.GetServices(server) sometimes fail. Although it is mostly working fine?
The problem occurs only on Windows Server 2012 R2 servers. On Windows Server 2008 R2 it works fine.

WP7 error: "The remote server returned an error: NotFound."

I have this code that it used to work, but at some specific time it stopped to work and returned the error "The remote server returned an error: NotFound."
WebClient deliciousWebClient = new WebClient();
deliciousWebClient.Credentials = Credentials;
deliciousWebClient.DownloadStringAsync(new Uri("https://api.del.icio.us/v1/tags/get"));
deliciousWebClient.DownloadStringCompleted += (s, ee) =>
{
if (ee.Error == null)
{
…
Any suggestion on this error?
In this code, the error is pointing to delicious endpoit, but the same error is happening with some other services...
The NotFound error is a classic 404 error, so it's possible that the API endpoint is down or that it changed on you.
I'd start by using Fiddler2 to make the requests manually. That'll help you figure out whether the issue is in your code somewhere or on the API side.
It's hard to get Fiddler working with the WP7 emulator, as you noted below. One trick I've used in the past when I got really desperate was to write a quick console app that used the same code that my Windows Phone app was executing. Then I was able to successfully intercept the traffic. It turned out that my request being properly formatted.

WCF Cast error "Unable to cast object of type 'X' to type 'X'

I develop WCF Publisher/Subscriber model, Publisher to develop in WCF service library and to host in windows service, its running fine. After to create a Proxy for that endpoints using 'SvcUtil'. and to merge to subscriber to develop in windows application. when i connect to publisher,
I get error "WCF Cast error "Unable to cast object of type 'X' to type 'X'"
i debug the code this line to rise the error
IEvent Subscriber = OperationContext.Current.GetCallbackChannel();
Perhaps you should take a look at:
http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/f31155d4-b50d-4b8e-988f-a91a55d399fa/
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/bff60bca-fe62-42ff-b04f-a3265aeca719/
http://blogs.microsoft.co.il/blogs/kolbis/archive/2008/06/29/unable-to-cast-object-from-type-x-to-type-x.aspx

Service reference error when moving dev. environment from XP to W7

I am building an application and I am using web services for getting data from a server. It was working fine when I was developing on my XP machine but had to switch to Windows 7. On the new machine I grabbed the latest version of the code using sourcesafe.
However, when I try to add a service reference in the solution or update an existing one I get the following error:
There was an error downloading 'http://localhost:52490/Service/CustomerService.asmx'.
The request failed with the error message:
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not create type 'Digital_Server.CustomerService'.
Source Error
Source File: /Service/CustomerService.asmxLine: 1
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
--.
Metadata contains a reference that cannot be resolved: 'http://localhost:52490/Service/CustomerService.asmx'.
An error occurred while receiving the HTTP response to http://localhost:52490/Service/CustomerService.asmx. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.
The underlying connection was closed: An unexpected error occurred on a receive.
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host
If the service is defined in the current solution, try building the solution and adding the service reference again.
Does it has anything to do with the IIS or is it any configuration file I have to change in the solution?
Any help is appreciated.
How do you deploy your app to the server? Via a zip file?
Perhaps it extracts the files without the path.