|
I'd start by checking if the customer has all the right dependencies - if the interface or class is declared in a separate assembly (and it probably should be) then a version mismatch could cause the problem.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I thought I did confirm the versions, but it does look like there is a version mismatch with at least some files. I will update when I have more information.
|
|
|
|
|
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Upon further research, it became clear that the versions of the POS system did not match the expected version. We transferred the source code over to the customer so he could build the files with his version and to great care in deleting all other versions of the affected DLL. We still get the same results. I also found the version on my machine that they actually got from me and ran a test on my machine, and it works without problems.
So now to rule out a problem on the customer's end, he is currently sending me the entire software catalogue with my file changes to see if it crashes on my machine. If it fails, it's something in his project. If it does not fail... then I actually don't know. I will keep you posted.
|
|
|
|
|
Sound like you're going to need a site visit with a copy of VS ... I hate those.
I once spent a week sitting quietly in a library waiting for software to go wrong, only to find on the Friday it was a hardware problem: they had a laminator they used to seal new user badges which spat so much noise back down the mains lead it fritzed out the PSU.
Still, it was on expenses, and the hotel bar was good!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Easy way to prevent it in the future; make a hash from all that you build.
Do not confirm the versions, confirm the resulting hash.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
0) Ensure than their machine is up to date on their Windows updates.
1) Have the customer uninstall it (and all older versions), and reinstall it.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
I want to get the control for passing the ticket number in the search bar and update the work notes field and need to change the state field to resolved and click on the update button in servicenow. I have tried but it shows (no such element found exception). kindly help me in this case. I have attached the sample code that I have tried.I have used seleniumc#. I have tried many ways but still getting no such element found exception. kindly some one help me in this case.I want in c#.
Below one is the sample code which i have tried
IWebElement elem = driver.FindElement(By.Id("sysparm_search"));
((IJavaScriptExecutor)driver).ExecuteScript("arguments[0].scrollIntoView();", elem);
elem.SendKeys("INC0008111");
elem.SendKeys(Keys.Enter);
WebDriverWait wait2 = new WebDriverWait(driver,TimeSpan.FromSeconds(20));
wait.Until(ExpectedConditions.ElementExists(By.Id("activity-stream-textarea")))
wait2.SendKeys("closing the request");
SelectElement se = new
SelectElement(driver.FindElement(By.Name("incident.state")));
se.SelectByIndex(3); IWebElement ele4 =
driver.FindElement(By.Id("resolve_incident")); ele4.Click();
|
|
|
|
|
The first thing to do is to use the debugger to find out which element is not found.
Then you can start looking through your design to find out why: but since we have no access to your code while it is running or your design at all there is nothing we can do to help.
Just "trying many ways" doesn't help you - you need to think logically and gather information before you start modifying code. Without doing that, you are just guessing, and that isn't an efficient 9or effective) way to fix any problem! Gathering information on a problem is what the debugger is there for - so use it!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
In my project, i was used a control of PropertyGrid, and i bind a object(the instance of my class). The drop-down list-box item of propertygrid could be drop down only once. there is nothing showing when i click the drop-down button again.(the list item just like bool, enum variables) And surprisedly, i can't close this window.
So, help me, please...
a poor guy diging C#
|
|
|
|
|
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with.
So start with the code: what are you doing when it drops down? How are you binding it? What does your class contain? What is it derived from? Do you override ToString? Anything else that might be relevant?
Only you can look at things like this: we can have no idea without much, much better information!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Works for me, even on Linux using mono.
Can you post some code to reproduce the problem?
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I have requirement where we have 2 exe's. When first exe started then I have to call method of second exe which will do some process. once that process is completed then it again intimates first exe that my work is done. you can resume your work.
Note: I do not want to use sockets. Most preferred way is like Mutex or Semaphore.
Any help will be much appreciated.
|
|
|
|
|
|
|
Source of Integral Calculation Program Using Random Numbers Generation (Kaufman)
with c#,c++,Python
|
|
|
|
|
While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you. We are not a "code to order" service!
So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.
If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I was given a medium sized app, about 50,000 line total. It will not shut down on its own. You either have to kill it the debugger or go to Task Manager to kill it there.
I have hit things like this before. You create a child and then kill the parent. You have lost the handle to the child and cannot close it. The app hangs when shutting down. Before I was building the program and knew when this happened. I only had to backtrack a little bit to find the problem.
Now I have something written by someone else. When you kill the app even in the debugger you loose the stack panel. How can I find what the offender is?
So many years of programming I have forgotten more languages than I know.
|
|
|
|
|
If it's a windows app (implying there is a windows collections), you see if there are are "hidden" windows hanging around (by querying the collection).
If it's "looping" in managed code, it will show where if you "suspend" in Debug (not "cancel").
If it's hanging in "unmanaged" code, it gets more interesting.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
see the code how i am creating place holder now. _Yoy has a formula used in excel.
private string _Yoy = @"IF(AND(ISNUMBER(C#),P#>0,NOT(ISERROR(C#/P#))),C#/P#-1,"""")";
public string YoY
{
get { return _Yoy; }
set { _Yoy = value; }
}
private void button1_Click(object sender, EventArgs e)
{
string strBMFormula = YoY.Replace("P#", "2005.13").Replace("C#", "7777.10");
}
I am replacing P# & C# with some value at runtime and program working as expected but i am doing this in large loop where Replace() function is getting called repeatedly which may increase memory use.
@"IF(AND(ISNUMBER(C#),P#>0,NOT(ISERROR(C#/P#))),C#/P#-1,"""")";
here i gave 4 double quote because there would two double quote in excel function.
i am using .Net version 4.5
so please suggest me how to create a place holder in string variable and put my value there without using Replace function.
i try this approach too but still no luck.
private void button1_Click(object sender, EventArgs e)
{
string strBMFormula = Replacement("A10", "Z210");
}
private string Replacement(string value1, string value2)
{
return @"IF(AND(ISNUMBER({value1}),{value2}>0,NOT(ISERROR({value1}/{value2}))),{value1}/{value2}-1,"""")";
}
|
|
|
|
|
I got fix for my above code. here it is.
private void button1_Click(object sender, EventArgs e)
{
string strBMFormula = Replacement("A10", "Z210");
}
private string Replacement(string value1, string value2)
{
return string.Format(@"IF(AND(ISNUMBER({0}),{1}>0,NOT(ISERROR({0}/{1}))),{0}/{1}-1,"""")",value1,value2);
}
|
|
|
|
|
You are confused with string modifiers. You are using the verbatim string modifier (@), which allows you to avoid having to escape special characters (no double-antislash, for example).
But you need the interpolated-string modifier, $ .
private string Replacement(string value1, string value2)
{
return $"IF(AND(ISNUMBER({value1}),{value2}>0,NOT(ISERROR({value1}/{value2}))),{value1}/{value2}-1,"""")";
}
"Five fruits and vegetables a day? What a joke!
Personally, after the third watermelon, I'm full."
|
|
|
|
|
string interpolation not available in my .net version. i am using c# v5.0 & VS2013.
|
|
|
|
|
First, what's stopping you from using later/latest versions of VS and FrameWork/C# ? Given those are free, why not upgrade ?
Try this:
const string YTemplate = @"IF(AND(ISNUMBER(C#),P#>0,NOT(ISERROR(C#/P#))),C#/P#-1,"""")";
StringBuilder sb = new StringBuilder(YTemplate);
sb = sb.Replace("P#", "2005.13").Replace("C#", "7777.10"); To reuse this, clear the StringBuilder after a use, and then reset its contents to 'YTemplate.
Faster, more efficient ? Lots of different opinions on String.Replace and StringBuilder.Replace: [^]
Do some tests with your data, and find out if it's better for your case.
And, keep your eye on the future: [^]
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
modified 20-Nov-21 0:09am.
|
|
|
|
|
I am doing this way and it works fine.
public static class StringHelpers
{
public static string BuildFormula(this string formulatemplate, string value1, string value2)
{
return string.Format(formulatemplate, value1, value2);
}
public static string BuildFormula(this string formulatemplate, string value1, string value2, string value3)
{
return string.Format(formulatemplate, value1, value2, value3);
}
}
Calling this way
---------------------
BrokerCountFormula = FormulaTemplate.BrokerCount.BuildFormula(
(StartPeriod + row.ToString()), (EndPeriod + row.ToString()));
|
|
|
|
|