Microsoft.Azure.Storage.Blob v11.1.7 throws exception while creating Queueclient - azure-storage

While using "Microsoft.Azure.Storage.Blob" Version="11.1.7"
var queue = storageAccount.CreateCloudQueueClient()
.GetQueueReference(QueueName);
Above line of code throws below exception
"message": "Method 'get_NetworkTimeout' in type 'Microsoft.Azure.Storage.Queue.QueueRequestOptions' from assembly 'Microsoft.Azure.Storage.Queue, Version=11.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation.",
if you replace "Microsoft.Azure.Storage.Blob" Version="11.1.7" with Version="11.1.1" no exception & working as expected. Why?

I guess the version of the Microsoft.Azure.Storage.Queue you used is 11.1.1. I used the Microsoft.Azure.Storage.Blob Version=11.1.7 and Microsoft.Azure.Storage.Queue Version=11.1.1 which can reproduce your problem.
So the root cause is that Microsoft.Azure.Storage.Blob Version=11.1.7 and Microsoft.Azure.Storage.Queue Version=11.1.1 seem to conflict with each other.
Solution:
You can use Microsoft.Azure.Storage.Blob Version=11.1.7 and Microsoft.Azure.Storage.Queue Version=11.1.7, or Microsoft.Azure.Storage.Blob Version=11.1.1 and Microsoft.Azure.Storage.Queue Version=11.1.1, then you will solve this problem.

Related

NettyApplicationEngine is given but ApplicationEngine is expected

Hey I maked my Projekt on the Ktor Project Creator but i got Errors that in embeddedServer() an ApplicationEngine is expectet but an NettyApplicationEngine is given:
Type mismatch.
Required:
io.ktor.server.engine.ApplicationEngine.Configuration
Found:
io.ktor.server.netty.NettyApplicationEngine.Configuration
But i got unresolved errors too by install{} inside of the embeddedServer{} (and bcs that i think jwt is an unresolved reference too)
Does anyone know how to fix this error (or the errors)
Here can you see the whole thing in one

Blazegraph INSERT DATA crashes with NoSuchMethodError

In Blazegraph I attempted the following query:
INSERT DATA {
<http://my.site/User/instances/1>
:comment
<http://my.site/Comment/instances/16>.
}
and it crashes with the following exception trace:
java.lang.NoSuchMethodError: com.bigdata.rdf.sail.sparql.SPARQLStarUpdateDataBlockParser.read()I
at com.bigdata.rdf.sail.sparql.SPARQLStarUpdateDataBlockParser.checkSparqlStarSyntax(SPARQLStarUpdateDataBlockParser.java:107)
at com.bigdata.rdf.sail.sparql.SPARQLStarUpdateDataBlockParser.parseValue(SPARQLStarUpdateDataBlockParser.java:100)
at org.openrdf.rio.trig.TriGParser.parseGraph(TriGParser.java:158)
at org.openrdf.repository.sail.helpers.SPARQLUpdateDataBlockParser.parseGraph(SPARQLUpdateDataBlockParser.java:87)
at org.openrdf.rio.trig.TriGParser.parseStatement(TriGParser.java:128)
at org.openrdf.rio.turtle.TurtleParser.parse(TurtleParser.java:214)
at com.bigdata.rdf.sail.sparql.UpdateExprBuilder.doUnparsedQuadsDataBlock(UpdateExprBuilder.java:746)
at com.bigdata.rdf.sail.sparql.UpdateExprBuilder.visit(UpdateExprBuilder.java:161)
at com.bigdata.rdf.sail.sparql.UpdateExprBuilder.visit(UpdateExprBuilder.java:119)
at com.bigdata.rdf.sail.sparql.ast.ASTInsertData.jjtAccept(ASTInsertData.java:23)
at com.bigdata.rdf.sail.sparql.Bigdata2ASTSPARQLParser.parseUpdate2(Bigdata2ASTSPARQLParser.java:289)
at com.bigdata.rdf.sail.BigdataSailRepositoryConnection.prepareNativeSPARQLUpdate(BigdataSailRepositoryConnection.java:278)
at com.bigdata.rdf.sail.BigdataSailRepositoryConnection.prepareUpdate(BigdataSailRepositoryConnection.java:182)
at org.openrdf.repository.base.RepositoryConnectionBase.prepareUpdate(RepositoryConnectionBase.java:180)
However normal DELETE INSERT WHERE queries work fine.
Any ideas how to solve?
Simply removed the following line in my build.gradle:
compile('org.openrdf.sesame:sesame-runtime:2.8.6')
and refreshed dependencies. You simply don't need to declare a Sesame dependency if you're using bigdata-core, since Sesame is already a sub-dependency of that.
The reason for the crash was that bigdata-core relies on Sesame version 2.7.12 which was being superseded by my 2.8.6 declaration, which doesn't have an implementation of the method called, and hence the crash.
Thanks to #AKSW for the guidance behind this solution.

Could not load file or assembly 'MySqlBackup, Version=2.0.9.2

Consider:
Dim conn As MySqlConnection = New MySqlConnection(ServerString)
Dim cmd As MySqlCommand = New MySqlCommand
cmd.Connection = conn
conn.Open()
Dim mb As MySqlBackup = New MySqlBackup(cmd)
mb.ExportToFile("C:\backup.sql")
conn.Close()
I keep getting this error:
An unhandled exception of type 'System.IO.FileLoadException' occurred in System.Windows.Forms.dll
Additional information: Could not load file or assembly 'MySqlBackup, Version=2.0.9.2, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
How can I fix this problem?
For now, one only can assume,
See the version actually referenced and used in the application.
Look in the .vbproj file for System.Windows.Forms,
If it exists, try removing this.
Build your solution on 32-bit and 64-bit one at a time and see if it works on either of them
Moreover, I assume number 1 and 3 can be, but I cannot be sure. Try it.
I fixed this problem, by uninstalling and reinstalling Visual Studio. Then I installed MySqlBackup.NET (using NuGet package manager) version 2.0.9.3, which automatically installed MySql.Data version 6.9.9. It works perfectly. I'm not saying that's the best solution, but it works.

Error creating Matrix in EMGU CV

The error happens in this line:
Dim imageMatrix = New Emgu.CV.Matrix(Of Double)(100, 120)
An unhandled exception of type 'System.TypeInitializationException' occurred in Emgu.CV.World.dll
CvInvoke.cvInitMatHeader(_ptr, _array.GetLength(0), _array.GetLength(1), CvInvoke.MakeType( CvInvoke.GetDepthType(typeof(TDepth)), 1), _dataHandle.AddrOfPinnedObject(), 0x7fffffff);
Is this a declaration or library error?
Thanks for your help
The possible reason for this 'System.TypeInitializationException' is that your project is not able to find all dlls from EMGU.Place all dlls(including opencv) from Emgu/bin/x64 or x86 into your project release/dubug folder . That will solve the problem.Setting environmental path variable for EMGU could also helps.

MQQueueManager Constructor throwing FileNotFoundException

I have the following vb.net code:
Imports IBM.WMQ
[...]
MQEnvironment.Hostname = hostName
MQEnvironment.Port = portNumber
MQEnvironment.Channel = channelName
queueManager = New MQQueueManager(queueManagerName) ' error here
which is throwing the following error:
System.IO.FileNotFoundException occurred
FileName=C:\Users\User\Documents\Visual Studio 2012\Projects\[...]\bin\Debug\mqclient.ini
HResult=-2147024894
Message=Could not find file 'C:\Users\User\Documents\Visual Studio 2012\Projects\[...]\bin\Debug\mqclient.ini'.
Source=mscorlib
StackTrace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
I am not using any ini files in the construction of my queue manager, so does anyone have any idea what's going on - why is it even looking for one, and why in the same directory as the program? I have installed the MQ client, and afaik I have all the environmental variables, etc. set up properly.
Thanks for any help you can give
Is that an unhandled or a first chance exception? Internally, the MQ .net layer will try to read a MQClient.ini but should function quite happily without it. It reads the file for compatibility with the C client, and can handle some of the MQClient.ini stanzas. I would not have expected an absence of such a file to cause problems, but it will try to open it internally. Was that the full callstack, as I'd have expected some MQ libraries on the stack otherwise.