Hi,
When running my setup I get a message "Windows is checking for a solution to the problem and the window with the message stays for several seconds and then dissapers" and "Setup has stopped working".
Can anybody help me please.
Thanks.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
EhteshamRank #3,979 · 374 reputationPosted May 9, 2012, 11:07 PM EDT
NelRank #2,060 · 702 reputationPosted May 9, 2012, 11:31 PM EDT
EhteshamRank #3,979 · 374 reputationPosted May 10, 2012, 12:51 AM EDT
internal static void Log(string Value)
{
using (StreamWriter WriteObj = new StreamWriter("c:\MyLogFile.txt", true))
{
WriteObj.WriteLine(Value);
}
}
Hope it helps
NelRank #2,060 · 702 reputationPosted May 10, 2012, 1:48 AM EDT
EhteshamRank #3,979 · 374 reputationPosted May 10, 2012, 1:56 AM EDT
Class LogUtility
{
internal static void Log(string Value)
{
using (StreamWriter WriteObj = new StreamWriter("c:\MyLogFile.txt", true))
{
WriteObj.WriteLine(Value);
}
}
In your project you can log using
LogUtility.Log("Your variables values here");
Its better to use exception handling and to use the above line of code in catch
I hope that's what you were asking
NelRank #2,060 · 702 reputationPosted May 10, 2012, 3:27 AM EDT
LogUtility.Log("Your variables values here");
in my cs file, in which class. Sorry but I don't have much experience in C# programming. Thanks again
EhteshamRank #3,979 · 374 reputationPosted May 10, 2012, 9:54 PM EDT
You can add try.. catch for each method and add the method call in catch statement, later check the log file and get the method in which the error has occured
NelRank #2,060 · 702 reputationPosted May 11, 2012, 3:34 AM EDT
EhteshamRank #3,979 · 374 reputationPosted May 11, 2012, 3:35 AM EDT