I have a WCF service running on azure and it gives this exception sometimes at random:
The underlying provider failed on Open.
There was no inner exception so I started looking into this. I enabled azure diagnostics so I could trace and log this exception.
I found out that this Exception is thrown whenever the following exception is thrown:
(MySql.Data.MySqlClient.MySqlException) Exception Message = "Unable to
connect to any of the specified MySQL hosts."
So I looked in to this and found out that EntityFramework.pdb cannot be found.
I tried solving this by checking Microsoft Symbol Servers. This does not solve the problem.
Some extra information :
The mysql database is made with a code first approach.
Mysql logged this :
Related
I'm trying to connect to an Analysis Services Server with some C#. The server is using the Microsoft.AnalysisServices.Tabular Assembly namespace (SSAS Tabular). Here's my code:
using var server = new Server();
server.Connect(myConnectionString);
var db = server.Databases.FindByName("MyAnalysisServer");
...
The code breaks on the second line where it tries to Connect. The weird thing is, this worked for a good couple of months, but all of a sudden started generating an error. We haven't changed the connection string whatsoever. The Exception User-Unhandled that pops up is:
Microsoft.AnalysisServices.ResponseFormatException: The server sent an unrecognizable response.
Inner Exception
XmlException:", hexadecimalvalue 0x06, is an invalid character.
This exception was originally thrown at this call stack: [External Code]
The connection string is formatted in this way:
Provider=MSOLAP;datasource=powerbi://api.powerbi.com/v1.0/myFunctions/My Function;initial catalog=MyAnalysisServer;User ID=app:12345678-eee-0000-0000-123456789012#12345678-1234-5678-1234-123456789012;Password=qwertyui~12345678
I'm really not sure what the issue could be, but if anyone has any ideas, please post an answer.
I think you have a useless error message, but I'll bet the root cause is an authentication problem such as an expired password or locked account.
See here for a nice write up:
https://www.koskila.net/connecting-to-site-failed-hexadecimal-value-0x00-is-an-invalid-character-when-trying-to-connect-to-sharepoint-online/
I'm trying to connect Cassandra cluster with cassandra-sharp .Net client driver, but I get an exception "Can't find any valid endpoint". When I execute sample client code as it is on cassandra-sharp github (https://github.com/pchalamet/cassandra-sharp), I get an error on any operation after opening connection to cluster, such as this Execute command:
using (ICluster cluster = ClusterManager.GetCluster("Cassandra"))
{
ICqlCommand cmd = cluster.CreatePocoCommand();
Task t = cmd.Execute("Select * from system_schema.keyspaces").AsFuture();
...}
When I start debugging this line, I see all my endpoints in view of tree ICluster -> SingleConnectionPerEndpointStrategy -> _endpointStrategy -> NearestEndpointStrategy -> bannedEndpoints (with list of my IP-adresses), and 0 endpoints are healthy.
Moreover, when I'm trying to connect to any of my hosts with cqlplus.exe utility (from cassandra-sharp driver binaries), I get same error. With /dbglog flag it shows messages like this:
Creating connection to 192.168.1.3
Readyfying connection for 192.168.1.3
Starting writing frame for stream 127#192.168.1.3
Done writing frame for stream 127#192.168.1.3
Failed building connection System.AggregateException: One or more errors occurred. ---> System.OperationCanceledException: The operation was canceled.
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at CassandraSharp.Transport.LongRunningConnection.ReadifyConnection() in ...\LongRunningConnection.cs:line 444
...
Error creating transport for endpoint 192.168.1.3 : One or more errors occurrd.
... - marking 192.168.1.3 for recovery
Command execution failed with error:
Can't find any valid endpoint
I use latest version of cassandra-sharp driver 3.7.0 and Cassandra version 3.11.0. My App.config file seems like ok. And the code is ideal, so it may be wrong configuration of the cluster. Network is simple with one switch, everything pinged, all Cassandra ports are opened in Windows firewall on the client PC. I can add any needed additional information from the config file cassandra.yaml, f.e. I use PropertyFileSnitch. In cqlsh console everything works fine, nodetool status is Up&Normal.
So is it something wrong with configuration of my cluster or with .Net driver, and how to solve it? Need help of Cassandra specialists. Thank you!
Сassandra-sharp driver haven't been upgraded since Cassandra 2, and at this moment doesn't work with 3+.
This issue was also posted here: https://github.com/pchalamet/cassandra-sharp/issues/92
Okay I tried to play a little bit with the StatsManager but I always got an exception trying to use anything with it when comes to
Set a stat
Get a stat
Because I doubted myself I had the idea just to use the UWPIntegration sample that is on Github . I also added the Leaderboard items to my own project so the code works with my test sandbox. Logging in works as it should just StatsManager causes the issues.
But as with my own code I just get the same error / exception which is the following. I assume there is a bug in the code provided or the service configuration is not working as intended.
System.AggregateException occurred HResult=0x80131500 Message=One or more errors occurred. Source= StackTrace: at
System.Threading.Tasks.Task1.GetResultCore(Boolean
waitCompletionNotification) at
Microsoft.Xbox.Services.XboxLiveHttpRequest.<>c__DisplayClass35_0.<GetResponseWithAuth>b__1(Task1
getResponseTask) in
D:\Data\VisualStudio\Projects\xbox-live-api-csharp\Source\api\XboxLiveHttpRequest.cs:line
117 at System.Threading.Tasks.Task.Execute()
Inner Exception 1: AggregateException: One or more errors occurred.
Inner Exception 2: WebException: The remote server returned an error:
(404) Not Found.
Issue was found. My service.config used a wrong parameter name, see below in the comments of the solution.
There are a few different reasons why this might be the case. Not surprisingly, it means the cloud can't find the stat you've requested.
If you use Fiddler, you can capture the call and share with me the correlationID header. If you don't know Fiddler, let me know and I can help you.
However, some ideas off the top of my head
Make sure that you're in development mode - your sandbox is the one from the dev center site. If you aren't sure, you can use the Windows Device Portal to see what your sandbox is - just click on Xbox Live in the left hand navigation.
Make sure you have hit "Test" on the dev center page where you defined your featured stats and leaderboards.
Make sure you are requesting the stat by the ID name you specified in the config window, not the display name.
I get the following exception when I connect my application to the remote data base and there is no exception when I connect my application to the local database. What is the problem?
I also have searched my problem in www.google.com. I have found many solution and I follow those instruction that are written in solutions but still I face the same problem.
The Exception is given below:
"The Partner transacttion manager has disabled it support for
remote/network transaction(Exception from HRESULT : 0x8004D025)".
I'm trying to generate an entity model from a Firebird database using the Entity Data Model Wizard, but it dies loading the data for the "Choose Your Database Objects" step with the error:
Microsoft Visual Studio
An error occurred while connecting to the
database. The database might be
unavailable. An exception of type
'System.Data.EntityCommandExecutionException'
occurred. The error message is: 'An
error occurred while executing the
command definition. See the inner
exception for details.
The inner exception caught was of type
'FirebirdSql.Data.FirebirdClient.FbException',
with this error message: 'Dynamic SQL
Error
SQL error code = -104
Token unknown - line 6, column 8
SELECT'.
The inner exception caught was of type
'FirebirdSql.Data.Common.IscException',
with this error message: 'Exception of
type
'FirebirdSql.Data.Common.IscException'
was thrown.'.'.
[ OK ]
I certainly believe it should work from this blog post on the ADO.Net team blog.
I'm able to browse tables and definitions using server explorer, so I think it's safe to discount connectivity/permissions issues, but I'm at a bit of a loss as to what else to check to get this working?
The blog post you speak about is beta version
the final release is on Jiri blog
or on Firebird
or here
According to the comment on this blog post, Firebird 1.5 is not support for LINQ to Firebird, even though it is supported version according to the Firebird website.