|
jkirkerx wrote: And my touches are all lit now. There be dragons down here boy!
jkirkerx wrote:
I wrote a program called SendError.exe. If the program crashes, it fires and picks up the crash log. It was using the appSettings.json file. But now that I have moved it, I need to figure out a way to tell it where the crash log is now. Have it make a mini-dump; you can open those in VS and even watch/inspect the variables when they change value
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
The SendError app I made needs the appSettings SMTP so it can send the crash file.
I haven't been able to figure out how to tell Wix installer to make the registry key that uses the Windows MiniCrash. So I'm using something that generates a crash log that can be viewed in Visual Studio, I think nBug does that. Exceptions.Report
<RegistryKey Root="HKLM" Key="SYSTEM\CurrentControlSet\Services\EventLog\Application\$(var.Manufacturer)\$(var.Name)" ForceDeleteOnUninstall="yes">
<RegistryValue Name="EventMessageFile" Type="string" Value="C:\Windows\Microsoft.NET\Framework\v4.0.30319\EventLogMessages.dll" />
</RegistryKey>
One more dragon to go here on the Crash Logs.
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
jkirkerx wrote: The SendError app I made needs the appSettings SMTP so it can send the crash file. It needs some information on which post office to use, that's all. That's configuration, not code.
jkirkerx wrote: One more dragon to go here on the Crash Logs. For settings, use a text-file. Only invoke dragons if all else failed.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Quote: Install-Package : Could not install package 'ReportUnit 1.2.1'. You are trying to install this package into a
project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or
content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package ReportUnit -Version 1.2.1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackage
Command
|
|
|
|
|
Read the error message:
NalaBI wrote: For more information, contact the package author.
What did he say?
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Hi DalekDave,
I went through the Author articles, Two weeks ago he mentioned that the ReportUnit is being replaced by ExtentReports.
Thanks for your help. I appreciate it.
Regards
NalaBI
|
|
|
|
|
I'm not Dalek Dave - he likes Children's TV programs and not getting elected.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
Unless the timestamps are off, the QA version is the repost. It was posted 3hrs 10mins ago, whereas this post was 3hrs 30mins ago.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Yes, I know, but I saw the QA version first.
|
|
|
|
|
NB: That package has been deprecated. The "project URL" on NuGet is dead, but you can find it on GitHub:
ReportUnit is not maintained and will be replaced by extentreports-dotnet-cli .
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi Richard,
Thanks for your help.I will look at extentreports-dotnet-cli.
|
|
|
|
|
Hi All, I need to parse n lines ( as a block ) from a text file where the start and end blocks are delimited by a marker such as ACC_ID:
ACC_ID:
xxx
...
...
could by dozens of lines
ACC_ID:
xxx
...
etc...
I'm thinking of reading them into a collection of a simple class such as
public class AccountData
{
string Acc_ID {get;set;}
List<string> Data {get;set;}
}
where ACC_ID would contain the start block and the Data would contain all other lines between the start and end block, anyone know of a Linq way of doing this >? I currently do it in a loop reading the file line by line which is fine but I'd like to Linquify it if possible, any ideas ?
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
You have a solution that works and is easily supportable and maintainable. Why would you add complexity and cost by throwing LINQ at it?
|
|
|
|
|
Mainly because I'm learning Linq and this is good real world chance to use it - but I do take your point
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
Part of learning LINQ is knowing when NOT to use it.
|
|
|
|
|
I've been in the game long enough to know that
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
I've been in the game long enough to know that
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
I've been in the game long enough to know that
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
Really? 'cause this is one of those times.
|
|
|
|
|
Not really
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
I'd be tempted to just cheat:
string fileContent = File.ReadAllText(@"D:\Temp\AATest.txt");
string[] bits = fileContent.Split(new string[] {"ACC_ID:"}, StringSplitOptions.RemoveEmptyEntries);
foreach (string s in bits)
{
Console.WriteLine("++++");
Console.WriteLine(s);
}
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I'll see how I get on with that cheers mush
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
You can do it in LINQ, but it would probably take more than 1 line.
You have to "normalize" the data before you can query it efficiently.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
I don't mind multi line suggestions
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|