Click here to Skip to main content
15,890,043 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi All,

I made an application and everything is working as planned except for one thing that I cannot figure out. The application is only working on some computers. I installed it on my Windows 8 machine and it worked. I installed it on my windows 7 machine and nothing happens. When you run the application NOTHING happens. no error, nothing..... Then I installed it on another windows 7 machine and it worked on that one. I thought it might be my computer that is faulty so I tried on yet another windows 7 machine and again it did not work. I installed it on a second windows 8 machine and it worked. So I cannot figure out what is missing on these two machines. the .Net frameworks are all up to date and everything else that my program needs is installed as well. In fact the windows 7 machine that is working is a machine that I installed a clean copy of windows for the purpose of testing my application.

SO...

Windows 7 has 1 out of 3 that works and Windows 8 has 2 out of 2. Have anyone experienced this before??
Posted
Comments
CHill60 21-May-15 11:40am    
Have you tried looking at the Event log viewer[^] to see if anything is reported?
Christopher Smit 21-May-15 12:58pm    
Okay I checked the log viewer. it shows there is an Application error and a .NET runtime error.

The application error says "Faulting Module Name: KERNALBASE.dll"

and the .NET Runtime says "Description: The process was terminated due to an Unhandled exception" the stack is showing "at System.Drawing.Font.CreateNativeFont()
at System.Drawing.Font.Initialize(System.Drawing.FontFamily, Single, System.Drawing.FontStyle, System.Drawing.GraphicsUnit, Byte, Boolean)
at System.Drawing.Font.Initialize(System.String, Single, System.Drawing.FontStyle, System.Drawing.GraphicsUnit, Byte, Boolean)
at System.Drawing.Font..ctor(System.String, Single, System.Drawing.FontStyle, System.Drawing.GraphicsUnit, Byte)
at Minc_SMS_Console.Main.InitializeComponent()
at Minc_SMS_Console.Main..ctor()
at Minc_SMS_Console.Program.Main()"

I also see another Error stating "Windows cannot verify the digital signature for this file."
virusstorm 21-May-15 14:06pm    
So the message looks like the issue might be related to the font you are using. Few things you want to check for:
1.) Make sure the font you are using is installed on all of the machines
2.) If Microsoft Office is installed on the machine that works, make sure the font isn't specific to Office.
3.) Make sure all of the computers have the language pack updates installed.

Lastly, I would wrap the call to "Main" in a try/catch block to capture the exception details and write it out to a file. You might be loosing an inner exception with more details on the event viewer.
Christopher Smit 21-May-15 14:22pm    
Now that you mention it, the systems that are working has office installed and the two that are crashing, doesn't... The font used in my application is Rockwell.. I will just change the font then.. Thank you
Richard Deeming 21-May-15 15:37pm    
Sounds like this should be a solution. :)

1 solution

If you have the source code to your application then the most effective way to find out what is happening is to log the highest level exception to disk in the main() method.
C#
try
{
}
catch(Exception ex)
{
   File.WriteAllText("error.txt", ex.ToString());
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900