I am hoping that someone who has worked with ArangoDB and .Net and C# can help me out.
When I call ArangoClient.AddConnection() an exception gets thrown (of type 'System.ArgumentException' occurred in mscorlib.dll). The message is "An item with the same key has already been added."
The call to ArangoClient is: ArangoClient.AddConnection("127.0.0.1", 8529, false, "NancyTest", "NancyTest", "root");
Any ideas?
You most probably already created a connection with specified alias. With a driver version 0.9.0 and higher you can check if the specified alias already exists through ASettings.HasConnection(string alias) static method.
Related
TextWriter textWriter = new StreamWriter(#System.Environment.GetEnvironmentVariable("OUTPUT_PATH"), true);
when I run this, I am getting the following error.
Exception thrown: 'System.ArgumentNullException' in mscorlib.dll An unhandled exception of type 'System.ArgumentNullException' occurred in mscorlib.dll Value cannot be null.
How to fix it?
Environment Variable OUTPUT_PATH is not set.
System.Environment.GetEnvironmentVariable("OUTPUT_PATH")
This statement is returning null.
Please check environment variables to confirm if path is correctly set or not.
If path is there, then there may be access privilege issue. Your code may not have permissions to read the environment variable.
The first click is throwing the error. This has worked many times before. Now, it's not working. I checked the class names and they are the same.
At the first wait.Until (drv) line it throws the error
" An unhandled exception of type 'System.InvalidOperationException'
occurred in WebDriver.dll Additional information: unknown error:
Element is not clickable at point (-1469, 66)"
System.Threading.Thread.Sleep(7000);
// Now Click Next (Broke here first time)
wait.Until(drv => drv.FindElements(By.ClassName("compareSelectedAddToMyBriefcaseAddToBOMLabels"))[1]).Click();
// Click Next Again
System.Threading.Thread.Sleep(10000);
wait.Until(drv => drv.FindElements(By.ClassName("compareSelectedAddToMyBriefcaseAddToBOMLabels"))[0]).Click();
// Click Continue
System.Threading.Thread.Sleep(10000);
Anyone using ChromeDriver 61+ may run into this error. The recent update of the ChromeDriver V2.32 fixes this issue. I recommend updating your ChromeDriver. This should do the trick.
I am trying to generate/run some report by querying work items from TFS using C#.
Referred this link. This code worked fine couple of months back and was able to retrieve the results.
Not sure why am getting below exception at Line 2
var tfsUrl = ConfigurationManager.AppSettings.Get("TfsCollection");
var uri = new Uri(tfsUrl);
var projCollection = TfsTeamProjectCollectionFactory
.GetTeamProjectCollection(uri);
//var workItemStore = projCollection.GetService<WorkItemStore>(); //Line 1
var workItemStore = new WorkItemStore(projCollection); //Line 2
Tried other ways of querying work items like Line 1, but no luck. Any help here would be highly appreciated. Also, is there any better way of querying TFS using C#?
Exception details:
A first chance exception of type 'System.ArgumentNullException' occurred in mscorlib.dll
Additional information: Value cannot be null.
System.ArgumentNullException occurred
_HResult=-2147467261
_message=Value cannot be null.
HResult=-2147467261
IsTransient=false
Message=Value cannot be null.
Parameter name: value
Source=mscorlib
ParamName=value
StackTrace:
at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
InnerException:
My bad. Enabled this option in VS.
Debug -> Exceptions -> CLR exceptions
Code will execute despite of the exception.
I have some program on my 1st pc (everytinh works fine)
but when I copy my full project to another PC and try to run application I get this error :
A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll
Additional information: Formaty identyfikatorów URI nie są obsługiwane.
If there is a handler for this exception, the program may be safely continued.
and than:
A first chance exception of type 'System.BadImageFormatException' occurred in Emgu.CV.dll
Additional information: Próbowano załadować program w niepoprawnym formacie. (Wyjątek od HRESULT: 0x8007000B)
If there is a handler for this exception, the program may be safely continued.
in this code:
BackgroundSubtractorMOG2 pMog11 = new BackgroundSubtractorMOG2(0, 80, false);
I have really have no idea what to do with this. What is the problem with Emgu.CV in the 2nd pc?
I'm trying to save a collection where a store a diagnostic log temporarily when navigating away from my app - I've looked at other sample code and it seems pretty basic as I've done below:
Saving:
PhoneApplicationService.Current.State["DiagnosticLog"] = DiagnosticLog;
Loading:
if (PhoneApplicationService.Current.State.ContainsKey("DiagnosticLog"))
DiagnosticLog = (ObservableCollection<DiagnosticLogEntry>)
PhoneApplicationService.Current.State["DiagnosticLog"];
However I get this error:
A first chance exception of type
'System.Runtime.Serialization.InvalidDataContractException' occurred
in System.Runtime.Serialization.dll
Any suggestions please?
Usually, when this happens, it means you do not have a default public constructor on your Diagnostic class (or one of it's contained classes).