Hi,
I'm having a problem with my program not being able to run on certain computers. They have the basics, such as the .Net Frameworks. Upon trying to run the program, it gives the error:
Line 15 of the Client runs the starting form, which is frmConnect. Line 29 on that form creates a new instance of a Winsock.
public WinsockClass wskMain = new WinsockClass();
The program works perfectly fine on my computer, but not on his, as well as a few others. Out of four people, only me and one other person can run it. It seems to be a problem with the Winsock. I do realize now that I shouldn't be using Winsock, but this was my first attempt at any sort of not-completely-basic project in C#, and is probably too late to manageably change at this point to Sockets instead.
You would assume that the problem is something such as they don't have the reference file, or something else like that. But this program worked perfectly fine before, they had no problem in testing it, and it had the Winsock reference (and used it) at the time. I could be wrong, but I believe it broke about the time when I converted it from version 3.5 of .net Frameworks, to version 2.0. I've tried both since then, and neither work. I've also tried using AxMSWinsockLib rather than MSWinsockLib, but that did not work either. I tried setting Isolated to True, and setting Copy Local to True for the reference in my project (as well as setting every other reference in my project to Copy Local = True for the test), and this did not work either.
I tried including the MSWINSCK.ocx file with my project, had him move it into System32 and register it properly, but this did not seem to change anything. I tried removing the reference to the Winsock library, changing back to 3.5 Frameworks, and readding it, but nothing was successful.
I am using Windows XP SP2, one of my testers is using Windows Vista, and two others are using Windows XP SP3 (one can run it, one can not).
Any help would be much appreciated.
I'm having a problem with my program not being able to run on certain computers. They have the basics, such as the .Net Frameworks. Upon trying to run the program, it gives the error:
Code:
[Window Title] Microsoft Windows [Main Instruction] EQ Client.exe has stopped working [Content] Windows can check online for a solution to the problem. [V] View problem details [Check online for a solution and close the program] [Close the program] [Debug the program]
Code:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in EQ Client.exe Additional information: Creating an instance of the COM component with CLSID {248DD896-BB45-11CF-9ABC-0080C7E7B78D} from the IClassFactory failed due to the following error: 80040112. EQ Client.exe!Multiple_Winsock.Program.Main() Line 15 + 0x13 bytes C# EQ Client.exe!Multiple_Winsock.frmConnect.frmConnect() Line 29 + 0xa bytes C#
public WinsockClass wskMain = new WinsockClass();
The program works perfectly fine on my computer, but not on his, as well as a few others. Out of four people, only me and one other person can run it. It seems to be a problem with the Winsock. I do realize now that I shouldn't be using Winsock, but this was my first attempt at any sort of not-completely-basic project in C#, and is probably too late to manageably change at this point to Sockets instead.
You would assume that the problem is something such as they don't have the reference file, or something else like that. But this program worked perfectly fine before, they had no problem in testing it, and it had the Winsock reference (and used it) at the time. I could be wrong, but I believe it broke about the time when I converted it from version 3.5 of .net Frameworks, to version 2.0. I've tried both since then, and neither work. I've also tried using AxMSWinsockLib rather than MSWinsockLib, but that did not work either. I tried setting Isolated to True, and setting Copy Local to True for the reference in my project (as well as setting every other reference in my project to Copy Local = True for the test), and this did not work either.
I tried including the MSWINSCK.ocx file with my project, had him move it into System32 and register it properly, but this did not seem to change anything. I tried removing the reference to the Winsock library, changing back to 3.5 Frameworks, and readding it, but nothing was successful.
I am using Windows XP SP2, one of my testers is using Windows Vista, and two others are using Windows XP SP3 (one can run it, one can not).
Any help would be much appreciated.
Comment