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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
EhteshamPosted May 11, 2012, 7:35 AM
NelPosted May 11, 2012, 7:34 AM
EhteshamPosted May 11, 2012, 1:54 AM
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
NelPosted May 10, 2012, 7:27 AM
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
EhteshamPosted May 10, 2012, 5:56 AM
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
NelPosted May 10, 2012, 5:48 AM
EhteshamPosted May 10, 2012, 4:51 AM
internal static void Log(string Value)
{
using (StreamWriter WriteObj = new StreamWriter("c:\MyLogFile.txt", true))
{
WriteObj.WriteLine(Value);
}
}
Hope it helps
NelPosted May 10, 2012, 3:31 AM
EhteshamPosted May 10, 2012, 3:07 AM